From 092449adb8488a8fcbbebf9fdfcec38deef1eb81 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Thu, 2 Jan 2025 12:29:37 +0000 Subject: [PATCH] chore: update stage0 --- stage0/stdlib/Init.c | 6 +- stage0/stdlib/Init/Grind/Lemmas.c | 6 +- stage0/stdlib/Init/Grind/Tactics.c | 191 +- stage0/stdlib/Init/Internal.c | 29 + stage0/stdlib/Init/Internal/Order.c | 33 + stage0/stdlib/Init/Internal/Order/Basic.c | 1126 + stage0/stdlib/Init/Internal/Order/Tactic.c | 120 + stage0/stdlib/Lean/Data/PersistentHashSet.c | 96 + stage0/stdlib/Lean/Elab/Calc.c | 7893 ++++--- stage0/stdlib/Lean/Elab/CheckTactic.c | 4717 ++-- stage0/stdlib/Lean/Elab/Deriving.c | 6 +- stage0/stdlib/Lean/Elab/Deriving/ToExpr.c | 16344 ++++++++++++++ stage0/stdlib/Lean/Elab/Structure.c | 2431 +- stage0/stdlib/Lean/Elab/Tactic.c | 6 +- stage0/stdlib/Lean/Elab/Tactic/Grind.c | 1731 +- stage0/stdlib/Lean/Elab/Tactic/Monotonicity.c | 12007 ++++++++++ stage0/stdlib/Lean/Elab/Tactic/NormCast.c | 189 +- stage0/stdlib/Lean/Meta/Check.c | 950 +- stage0/stdlib/Lean/Meta/Tactic/Grind.c | 1260 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c | 7266 +++--- stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c | 3633 +-- stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c | 14724 ++++++++++++ .../Lean/Meta/Tactic/Grind/EMatchTheorem.c | 18515 ++++++++++++++++ .../Lean/Meta/Tactic/Grind/ForallProp.c | 574 + .../Lean/Meta/Tactic/Grind/Internalize.c | 9526 +++++--- stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c | 4860 ++++ stage0/stdlib/Lean/Meta/Tactic/Grind/Inv.c | 1165 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c | 3559 +++ .../Lean/Meta/Tactic/Grind/MarkNestedProofs.c | 331 +- stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c | 429 + .../Lean/Meta/Tactic/Grind/Preprocessor.c | 8623 ------- stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c | 457 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c | 1678 +- .../stdlib/Lean/Meta/Tactic/Grind/Propagate.c | 75 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Run.c | 1827 -- stage0/stdlib/Lean/Meta/Tactic/Grind/Simp.c | 1479 +- .../Lean/Meta/Tactic/Grind/TheoremPatterns.c | 8928 -------- stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c | 8834 ++++++-- stage0/stdlib/Lean/ToExpr.c | 2 +- 39 files changed, 106315 insertions(+), 39311 deletions(-) create mode 100644 stage0/stdlib/Init/Internal.c create mode 100644 stage0/stdlib/Init/Internal/Order.c create mode 100644 stage0/stdlib/Init/Internal/Order/Basic.c create mode 100644 stage0/stdlib/Init/Internal/Order/Tactic.c create mode 100644 stage0/stdlib/Lean/Elab/Deriving/ToExpr.c create mode 100644 stage0/stdlib/Lean/Elab/Tactic/Monotonicity.c create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c delete mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c delete mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/Run.c delete mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/TheoremPatterns.c diff --git a/stage0/stdlib/Init.c b/stage0/stdlib/Init.c index 85020397eb..e717eaeb2c 100644 --- a/stage0/stdlib/Init.c +++ b/stage0/stdlib/Init.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init -// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax +// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax Init.Internal #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -46,6 +46,7 @@ lean_object* initialize_Init_MacroTrace(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind(uint8_t builtin, lean_object*); lean_object* initialize_Init_While(uint8_t builtin, lean_object*); lean_object* initialize_Init_Syntax(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Internal(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init(uint8_t builtin, lean_object* w) { lean_object * res; @@ -150,6 +151,9 @@ lean_dec_ref(res); res = initialize_Init_Syntax(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Internal(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 diff --git a/stage0/stdlib/Init/Grind/Lemmas.c b/stage0/stdlib/Init/Grind/Lemmas.c index c70997abd3..f0df7c37f1 100644 --- a/stage0/stdlib/Init/Grind/Lemmas.c +++ b/stage0/stdlib/Init/Grind/Lemmas.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind.Lemmas -// Imports: Init.Core Init.SimpLemmas Init.Classical Init.ByCases +// Imports: Init.Core Init.SimpLemmas Init.Classical Init.ByCases Init.Grind.Util #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -17,6 +17,7 @@ lean_object* initialize_Init_Core(uint8_t builtin, lean_object*); lean_object* initialize_Init_SimpLemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Classical(uint8_t builtin, lean_object*); lean_object* initialize_Init_ByCases(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Grind_Util(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object* w) { lean_object * res; @@ -34,6 +35,9 @@ lean_dec_ref(res); res = initialize_Init_ByCases(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Grind_Util(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 diff --git a/stage0/stdlib/Init/Grind/Tactics.c b/stage0/stdlib/Init/Grind/Tactics.c index e8d386e846..4e46c75645 100644 --- a/stage0/stdlib/Init/Grind/Tactics.c +++ b/stage0/stdlib/Init/Grind/Tactics.c @@ -14,69 +14,163 @@ extern "C" { #endif static lean_object* l_Lean_Parser_Tactic_grind___closed__7; +extern lean_object* l_Lean_Parser_Tactic_optConfig; +static lean_object* l_Lean_Grind_instInhabitedConfig___closed__1; +static lean_object* l_Lean_Parser_Tactic_grind___closed__10; static lean_object* l_Lean_Parser_Tactic_grind___closed__6; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_grind; static lean_object* l_Lean_Grind_instBEqConfig___closed__1; static lean_object* l_Lean_Parser_Tactic_grind___closed__2; LEAN_EXPORT lean_object* l_Lean_Grind_instBEqConfig; -LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18____boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_grind___closed__9; static lean_object* l_Lean_Parser_Tactic_grind___closed__1; -LEAN_EXPORT uint8_t l_Lean_Grind_instInhabitedConfig; +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Grind_instInhabitedConfig; static lean_object* l_Lean_Parser_Tactic_grind___closed__5; static lean_object* l_Lean_Parser_Tactic_grind___closed__3; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_grind___closed__4; +LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30____boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Tactic_grind___closed__8; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18_(uint8_t, uint8_t); -static uint8_t _init_l_Lean_Grind_instInhabitedConfig() { +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30_(lean_object*, lean_object*); +static lean_object* _init_l_Lean_Grind_instInhabitedConfig___closed__1() { _start: { -uint8_t x_1; +uint8_t x_1; lean_object* x_2; lean_object* x_3; x_1 = 0; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 2, x_2); +lean_ctor_set(x_3, 3, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*4, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Grind_instInhabitedConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Grind_instInhabitedConfig___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30_(lean_object* x_1, lean_object* x_2) { _start: { -if (x_1 == 0) +uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 3); +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +x_9 = lean_ctor_get(x_2, 0); +x_10 = lean_ctor_get(x_2, 1); +x_11 = lean_ctor_get(x_2, 2); +x_12 = lean_ctor_get(x_2, 3); +if (x_3 == 0) { -if (x_2 == 0) +if (x_8 == 0) { -uint8_t x_3; -x_3 = 1; -return x_3; +uint8_t x_23; +x_23 = 1; +x_13 = x_23; +goto block_22; } else { -uint8_t x_4; -x_4 = 0; -return x_4; +uint8_t x_24; +x_24 = 0; +x_13 = x_24; +goto block_22; } } else { -return x_2; +if (x_8 == 0) +{ +uint8_t x_25; +x_25 = 0; +x_13 = x_25; +goto block_22; +} +else +{ +uint8_t x_26; +x_26 = 1; +x_13 = x_26; +goto block_22; +} +} +block_22: +{ +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +else +{ +uint8_t x_15; +x_15 = lean_nat_dec_eq(x_4, x_9); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +else +{ +uint8_t x_17; +x_17 = lean_nat_dec_eq(x_5, x_10); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_eq(x_6, x_11); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = 0; +return x_20; +} +else +{ +uint8_t x_21; +x_21 = lean_nat_dec_eq(x_7, x_12); +return x_21; } } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18____boxed(lean_object* x_1, lean_object* x_2) { +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30____boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; -x_3 = lean_unbox(x_1); -lean_dec(x_1); -x_4 = lean_unbox(x_2); +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30_(x_1, x_2); lean_dec(x_2); -x_5 = l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18_(x_3, x_4); -x_6 = lean_box(x_5); -return x_6; +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; } } static lean_object* _init_l_Lean_Grind_instBEqConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_18____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_30____boxed), 2, 0); return x_1; } } @@ -135,6 +229,24 @@ return x_5; static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__6() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("andthen", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Tactic_grind___closed__6; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__8() { +_start: +{ lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = l_Lean_Parser_Tactic_grind___closed__4; x_2 = 0; @@ -144,13 +256,27 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__7() { +static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_grind___closed__7; +x_2 = l_Lean_Parser_Tactic_grind___closed__8; +x_3 = l_Lean_Parser_Tactic_optConfig; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_grind___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_grind___closed__5; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Tactic_grind___closed__6; +x_2 = lean_unsigned_to_nat(1022u); +x_3 = l_Lean_Parser_Tactic_grind___closed__9; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -162,7 +288,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_grind() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Tactic_grind___closed__7; +x_1 = l_Lean_Parser_Tactic_grind___closed__10; return x_1; } } @@ -175,7 +301,10 @@ _G_initialized = true; res = initialize_Init_Tactics(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Grind_instInhabitedConfig___closed__1 = _init_l_Lean_Grind_instInhabitedConfig___closed__1(); +lean_mark_persistent(l_Lean_Grind_instInhabitedConfig___closed__1); l_Lean_Grind_instInhabitedConfig = _init_l_Lean_Grind_instInhabitedConfig(); +lean_mark_persistent(l_Lean_Grind_instInhabitedConfig); l_Lean_Grind_instBEqConfig___closed__1 = _init_l_Lean_Grind_instBEqConfig___closed__1(); lean_mark_persistent(l_Lean_Grind_instBEqConfig___closed__1); l_Lean_Grind_instBEqConfig = _init_l_Lean_Grind_instBEqConfig(); @@ -194,6 +323,12 @@ l_Lean_Parser_Tactic_grind___closed__6 = _init_l_Lean_Parser_Tactic_grind___clos lean_mark_persistent(l_Lean_Parser_Tactic_grind___closed__6); l_Lean_Parser_Tactic_grind___closed__7 = _init_l_Lean_Parser_Tactic_grind___closed__7(); lean_mark_persistent(l_Lean_Parser_Tactic_grind___closed__7); +l_Lean_Parser_Tactic_grind___closed__8 = _init_l_Lean_Parser_Tactic_grind___closed__8(); +lean_mark_persistent(l_Lean_Parser_Tactic_grind___closed__8); +l_Lean_Parser_Tactic_grind___closed__9 = _init_l_Lean_Parser_Tactic_grind___closed__9(); +lean_mark_persistent(l_Lean_Parser_Tactic_grind___closed__9); +l_Lean_Parser_Tactic_grind___closed__10 = _init_l_Lean_Parser_Tactic_grind___closed__10(); +lean_mark_persistent(l_Lean_Parser_Tactic_grind___closed__10); l_Lean_Parser_Tactic_grind = _init_l_Lean_Parser_Tactic_grind(); lean_mark_persistent(l_Lean_Parser_Tactic_grind); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Init/Internal.c b/stage0/stdlib/Init/Internal.c new file mode 100644 index 0000000000..071ffcd9c2 --- /dev/null +++ b/stage0/stdlib/Init/Internal.c @@ -0,0 +1,29 @@ +// Lean compiler output +// Module: Init.Internal +// Imports: Init.Internal.Order +#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_object* initialize_Init_Internal_Order(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Internal(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_Init_Internal_Order(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/Init/Internal/Order.c b/stage0/stdlib/Init/Internal/Order.c new file mode 100644 index 0000000000..5285d39c0b --- /dev/null +++ b/stage0/stdlib/Init/Internal/Order.c @@ -0,0 +1,33 @@ +// Lean compiler output +// Module: Init.Internal.Order +// Imports: Init.Internal.Order.Basic Init.Internal.Order.Tactic +#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_object* initialize_Init_Internal_Order_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Internal_Order_Tactic(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Internal_Order(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_Init_Internal_Order_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Internal_Order_Tactic(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/Init/Internal/Order/Basic.c b/stage0/stdlib/Init/Internal/Order/Basic.c new file mode 100644 index 0000000000..5b8180dd85 --- /dev/null +++ b/stage0/stdlib/Init/Internal/Order/Basic.c @@ -0,0 +1,1126 @@ +// Lean compiler output +// Module: Init.Internal.Order.Basic +// Imports: Init.ByCases Init.RCases +#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_Order_instPartialOrderExceptTOfMonad(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6; +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPi___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__11; +LEAN_EXPORT lean_object* l_Lean_Order_fix(lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__11; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2; +static lean_object* l_Lean_Order_term___u2291_____closed__10; +LEAN_EXPORT lean_object* l_Lean_Order_Example_findF(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_fix___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1; +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_FlatOrder_instOrder___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Order_term_u22a5___closed__4; +static lean_object* l_Lean_Order_term_u22a5___closed__5; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__bot__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderPProd(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderExceptTOfMonad___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_FlatOrder_instOrder(lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__7; +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5; +static lean_object* l_Lean_Order_term___u2291_____closed__2; +LEAN_EXPORT lean_object* l_Lean_Order_instOrderPi___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__13; +static lean_object* l_Lean_Order_term___u2291_____closed__6; +lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13; +static lean_object* l_Lean_Order_term___u2291_____closed__4; +LEAN_EXPORT lean_object* l_Lean_Order_fix___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderExceptTOfMonad___rarg(lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6; +static lean_object* l_Lean_Order_term_u22a5___closed__3; +lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Order_bot(lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__8; +uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); +static lean_object* l_Lean_Order_term_u22a5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Order_bot___rarg(lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_Order_fun__csup___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__1; +LEAN_EXPORT lean_object* l_Lean_Order_fun__csup(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_term___u2291__; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3; +lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1; +static lean_object* l_Lean_Order_term_u22a5___closed__2; +lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9; +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPProd___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8; +static lean_object* l_Lean_Order_term___u2291_____closed__5; +LEAN_EXPORT lean_object* l_Lean_Order_term_u22a5; +static lean_object* l_Lean_Order_term___u2291_____closed__3; +static lean_object* l_Lean_Order_term___u2291_____closed__12; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2; +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14; +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPi(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__bot__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order_term___u2291_____closed__9; +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderPProd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12; +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPProd(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPProd___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instOrderPi(lean_object*, lean_object*, lean_object*); +lean_object* l_String_toSubstring_x27(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderOption(lean_object*); +static lean_object* _init_l_Lean_Order_term___u2291_____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Order", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term_⊑_", 9, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_term___u2291_____closed__1; +x_2 = l_Lean_Order_term___u2291_____closed__2; +x_3 = l_Lean_Order_term___u2291_____closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("andthen", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order_term___u2291_____closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" ⊑ ", 5, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Order_term___u2291_____closed__7; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order_term___u2291_____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Order_term___u2291_____closed__10; +x_2 = lean_unsigned_to_nat(51u); +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_term___u2291_____closed__6; +x_2 = l_Lean_Order_term___u2291_____closed__8; +x_3 = l_Lean_Order_term___u2291_____closed__11; +x_4 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_term___u2291_____closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Order_term___u2291_____closed__4; +x_2 = lean_unsigned_to_nat(50u); +x_3 = lean_unsigned_to_nat(51u); +x_4 = l_Lean_Order_term___u2291_____closed__12; +x_5 = lean_alloc_ctor(4, 4, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Order_term___u2291__() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Order_term___u2291_____closed__13; +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Parser", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("app", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___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_Order_term___u2291_____closed__1; +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1; +x_3 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("PartialOrder.rel", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("PartialOrder", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("rel", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7; +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Order_term___u2291_____closed__1; +x_2 = l_Lean_Order_term___u2291_____closed__2; +x_3 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___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_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("null", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Order_term___u2291_____closed__4; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = lean_unsigned_to_nat(2u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +lean_dec(x_1); +x_12 = lean_ctor_get(x_2, 5); +lean_inc(x_12); +x_13 = 0; +x_14 = l_Lean_SourceInfo_fromRef(x_12, x_13); +lean_dec(x_12); +x_15 = lean_ctor_get(x_2, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); +lean_dec(x_2); +x_17 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9; +x_18 = l_Lean_addMacroScope(x_16, x_17, x_15); +x_19 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6; +x_20 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12; +lean_inc(x_14); +x_21 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_19); +lean_ctor_set(x_21, 2, x_18); +lean_ctor_set(x_21, 3, x_20); +x_22 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14; +lean_inc(x_14); +x_23 = l_Lean_Syntax_node2(x_14, x_22, x_9, x_11); +x_24 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4; +x_25 = l_Lean_Syntax_node2(x_14, x_24, x_21, x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_3); +return x_26; +} +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ident", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__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_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2; +lean_inc(x_9); +x_11 = l_Lean_Syntax_isOfKind(x_9, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_9); +lean_dec(x_1); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +lean_dec(x_1); +x_16 = lean_unsigned_to_nat(2u); +lean_inc(x_15); +x_17 = l_Lean_Syntax_matchesNull(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_9); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_3); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_20 = l_Lean_Syntax_getArg(x_15, x_8); +x_21 = l_Lean_Syntax_getArg(x_15, x_14); +lean_dec(x_15); +x_22 = l_Lean_replaceRef(x_9, x_2); +lean_dec(x_9); +x_23 = 0; +x_24 = l_Lean_SourceInfo_fromRef(x_22, x_23); +lean_dec(x_22); +x_25 = l_Lean_Order_term___u2291_____closed__7; +lean_inc(x_24); +x_26 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_Order_term___u2291_____closed__4; +x_28 = l_Lean_Syntax_node3(x_24, x_27, x_20, x_26, x_21); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_3); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_bot___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +lean_dec(x_1); +x_3 = lean_apply_1(x_2, lean_box(0)); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_bot(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Order_bot___rarg), 1, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term⊥", 7, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_term___u2291_____closed__1; +x_2 = l_Lean_Order_term___u2291_____closed__2; +x_3 = l_Lean_Order_term_u22a5___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("⊥", 3, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Order_term_u22a5___closed__3; +x_2 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_term_u22a5___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Order_term_u22a5___closed__4; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_term_u22a5() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Order_term_u22a5___closed__5; +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("bot", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_term___u2291_____closed__1; +x_2 = l_Lean_Order_term___u2291_____closed__2; +x_3 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5; +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_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Order_term_u22a5___closed__2; +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_8 = lean_ctor_get(x_2, 5); +lean_inc(x_8); +x_9 = 0; +x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9); +lean_dec(x_8); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3; +x_14 = l_Lean_addMacroScope(x_12, x_13, x_11); +x_15 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2; +x_16 = l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6; +x_17 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_15); +lean_ctor_set(x_17, 2, x_14); +lean_ctor_set(x_17, 3, 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_3); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__bot__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_8 = l_Lean_replaceRef(x_1, x_2); +lean_dec(x_1); +x_9 = 0; +x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9); +lean_dec(x_8); +x_11 = l_Lean_Order_term_u22a5___closed__3; +lean_inc(x_10); +x_12 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Order_term_u22a5___closed__2; +x_14 = l_Lean_Syntax_node1(x_10, x_13, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_3); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__bot__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__bot__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_fix___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_4, lean_box(0)); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_fix(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Order_fix___rarg___boxed), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_fix___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Order_fix___rarg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instOrderPi(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instOrderPi___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Order_instOrderPi(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_fun__csup___rarg(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_apply_1(x_1, x_3); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_apply_1(x_5, lean_box(0)); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_fun__csup(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Order_fun__csup___rarg), 3, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPi___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_box(0); +x_3 = lean_alloc_closure((void*)(l_Lean_Order_fun__csup___rarg), 3, 1); +lean_closure_set(x_3, 0, x_1); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPi(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Order_instCCPOPi___rarg), 1, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderPProd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderPProd___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_Order_instPartialOrderPProd(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPProd___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_4, lean_box(0)); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_apply_1(x_6, lean_box(0)); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_5); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOPProd___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_box(0); +x_4 = lean_alloc_closure((void*)(l_Lean_Order_instCCPOPProd___rarg___lambda__1), 3, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +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_Order_instCCPOPProd(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Order_instCCPOPProd___rarg), 2, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_FlatOrder_instOrder(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_FlatOrder_instOrder___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Order_FlatOrder_instOrder(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderOption(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderExceptTOfMonad___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_apply_1(x_1, lean_box(0)); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderExceptTOfMonad(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_Order_instPartialOrderExceptTOfMonad___rarg), 1, 0); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instPartialOrderExceptTOfMonad___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_Order_instPartialOrderExceptTOfMonad(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_apply_1(x_1, lean_box(0)); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder(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 = lean_alloc_closure((void*)(l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder___rarg), 1, 0); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_instCCPOExceptTOfMonadOfPartialOrder___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_Order_instCCPOExceptTOfMonadOfPartialOrder(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Order_Example_findF(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +lean_inc(x_3); +x_4 = lean_apply_1(x_1, x_3); +x_5 = lean_unbox(x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_add(x_3, x_6); +lean_dec(x_3); +x_8 = lean_apply_1(x_2, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_3); +return x_9; +} +} +} +lean_object* initialize_Init_ByCases(uint8_t builtin, lean_object*); +lean_object* initialize_Init_RCases(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Internal_Order_Basic(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_Init_ByCases(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_RCases(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Order_term___u2291_____closed__1 = _init_l_Lean_Order_term___u2291_____closed__1(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__1); +l_Lean_Order_term___u2291_____closed__2 = _init_l_Lean_Order_term___u2291_____closed__2(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__2); +l_Lean_Order_term___u2291_____closed__3 = _init_l_Lean_Order_term___u2291_____closed__3(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__3); +l_Lean_Order_term___u2291_____closed__4 = _init_l_Lean_Order_term___u2291_____closed__4(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__4); +l_Lean_Order_term___u2291_____closed__5 = _init_l_Lean_Order_term___u2291_____closed__5(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__5); +l_Lean_Order_term___u2291_____closed__6 = _init_l_Lean_Order_term___u2291_____closed__6(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__6); +l_Lean_Order_term___u2291_____closed__7 = _init_l_Lean_Order_term___u2291_____closed__7(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__7); +l_Lean_Order_term___u2291_____closed__8 = _init_l_Lean_Order_term___u2291_____closed__8(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__8); +l_Lean_Order_term___u2291_____closed__9 = _init_l_Lean_Order_term___u2291_____closed__9(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__9); +l_Lean_Order_term___u2291_____closed__10 = _init_l_Lean_Order_term___u2291_____closed__10(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__10); +l_Lean_Order_term___u2291_____closed__11 = _init_l_Lean_Order_term___u2291_____closed__11(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__11); +l_Lean_Order_term___u2291_____closed__12 = _init_l_Lean_Order_term___u2291_____closed__12(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__12); +l_Lean_Order_term___u2291_____closed__13 = _init_l_Lean_Order_term___u2291_____closed__13(); +lean_mark_persistent(l_Lean_Order_term___u2291_____closed__13); +l_Lean_Order_term___u2291__ = _init_l_Lean_Order_term___u2291__(); +lean_mark_persistent(l_Lean_Order_term___u2291__); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__1); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__2); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__3); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__4); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__5); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__6); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__7); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__8); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__9); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__10); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__11 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__11(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__11); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__12); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__13); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term___u2291____1___closed__14); +l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__1); +l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______unexpand__Lean__Order__PartialOrder__rel__1___closed__2); +l_Lean_Order_term_u22a5___closed__1 = _init_l_Lean_Order_term_u22a5___closed__1(); +lean_mark_persistent(l_Lean_Order_term_u22a5___closed__1); +l_Lean_Order_term_u22a5___closed__2 = _init_l_Lean_Order_term_u22a5___closed__2(); +lean_mark_persistent(l_Lean_Order_term_u22a5___closed__2); +l_Lean_Order_term_u22a5___closed__3 = _init_l_Lean_Order_term_u22a5___closed__3(); +lean_mark_persistent(l_Lean_Order_term_u22a5___closed__3); +l_Lean_Order_term_u22a5___closed__4 = _init_l_Lean_Order_term_u22a5___closed__4(); +lean_mark_persistent(l_Lean_Order_term_u22a5___closed__4); +l_Lean_Order_term_u22a5___closed__5 = _init_l_Lean_Order_term_u22a5___closed__5(); +lean_mark_persistent(l_Lean_Order_term_u22a5___closed__5); +l_Lean_Order_term_u22a5 = _init_l_Lean_Order_term_u22a5(); +lean_mark_persistent(l_Lean_Order_term_u22a5); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__1); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__2); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__3); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__4); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__5); +l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6 = _init_l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6(); +lean_mark_persistent(l_Lean_Order___aux__Init__Internal__Order__Basic______macroRules__Lean__Order__term_u22a5__1___closed__6); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Internal/Order/Tactic.c b/stage0/stdlib/Init/Internal/Order/Tactic.c new file mode 100644 index 0000000000..852841c70c --- /dev/null +++ b/stage0/stdlib/Init/Internal/Order/Tactic.c @@ -0,0 +1,120 @@ +// Lean compiler output +// Module: Init.Internal.Order.Tactic +// Imports: Init.Notation +#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_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Order_monotonicity___closed__6; +LEAN_EXPORT lean_object* l_Lean_Order_monotonicity; +static lean_object* l_Lean_Order_monotonicity___closed__5; +static lean_object* l_Lean_Order_monotonicity___closed__3; +static lean_object* l_Lean_Order_monotonicity___closed__1; +static lean_object* l_Lean_Order_monotonicity___closed__2; +static lean_object* l_Lean_Order_monotonicity___closed__4; +static lean_object* _init_l_Lean_Order_monotonicity___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_monotonicity___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Order", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_monotonicity___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotonicity", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Order_monotonicity___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_monotonicity___closed__1; +x_2 = l_Lean_Order_monotonicity___closed__2; +x_3 = l_Lean_Order_monotonicity___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_monotonicity___closed__5() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Order_monotonicity___closed__3; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Order_monotonicity___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Order_monotonicity___closed__4; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Order_monotonicity___closed__5; +x_4 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Order_monotonicity() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Order_monotonicity___closed__6; +return x_1; +} +} +lean_object* initialize_Init_Notation(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Internal_Order_Tactic(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_Init_Notation(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Order_monotonicity___closed__1 = _init_l_Lean_Order_monotonicity___closed__1(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__1); +l_Lean_Order_monotonicity___closed__2 = _init_l_Lean_Order_monotonicity___closed__2(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__2); +l_Lean_Order_monotonicity___closed__3 = _init_l_Lean_Order_monotonicity___closed__3(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__3); +l_Lean_Order_monotonicity___closed__4 = _init_l_Lean_Order_monotonicity___closed__4(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__4); +l_Lean_Order_monotonicity___closed__5 = _init_l_Lean_Order_monotonicity___closed__5(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__5); +l_Lean_Order_monotonicity___closed__6 = _init_l_Lean_Order_monotonicity___closed__6(); +lean_mark_persistent(l_Lean_Order_monotonicity___closed__6); +l_Lean_Order_monotonicity = _init_l_Lean_Order_monotonicity(); +lean_mark_persistent(l_Lean_Order_monotonicity); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Data/PersistentHashSet.c b/stage0/stdlib/Lean/Data/PersistentHashSet.c index 9e6af094c5..e0cc107695 100644 --- a/stage0/stdlib/Lean/Data/PersistentHashSet.c +++ b/stage0/stdlib/Lean/Data/PersistentHashSet.c @@ -26,10 +26,12 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_insert(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_PersistentHashSet_fold___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_contains(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_instInhabited___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_PersistentHashSet_fold___spec__2(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_instInhabited___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_instEmptyCollection___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_PersistentHashSet_fold___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,8 +44,10 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_instEmptyCollection___rarg___b LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_PersistentHashSet_fold___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_isEmpty___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_PersistentHashSet_foldM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_foldM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_erase___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_toList___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_fold(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_PersistentHashSet_foldM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_fold___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -55,7 +59,9 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_PersistentHashSet_fold___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PersistentHashSet_fold___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_PersistentHashSet_fold___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_erase(lean_object*); +lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_PersistentHashSet_fold___spec__4(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_PersistentHashMap_empty(lean_object*, lean_object*, lean_object*, lean_object*); @@ -65,6 +71,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_PersistentHashSet_fold___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_isEmpty___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_empty___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashSet_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -608,6 +615,95 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1___rarg), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___rarg(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 = l_Lean_PersistentHashMap_toList___rarg(x_1, x_2, x_3); +x_5 = lean_box(0); +x_6 = l_List_mapTR_loop___at_Lean_PersistentHashSet_toList___spec__1___rarg(x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_PersistentHashSet_toList___rarg___boxed), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashSet_toList___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_PersistentHashSet_toList___rarg(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} lean_object* initialize_Lean_Data_PersistentHashMap(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Data_PersistentHashSet(uint8_t builtin, lean_object* w) { diff --git a/stage0/stdlib/Lean/Elab/Calc.c b/stage0/stdlib/Lean/Elab/Calc.c index 15068446f9..075301bc5e 100644 --- a/stage0/stdlib/Lean/Elab/Calc.c +++ b/stage0/stdlib/Lean/Elab/Calc.c @@ -173,6 +173,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCalcFirstStepView(lean_object*, lean LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_annotateFirstHoleWithType_go___spec__12(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_annotateFirstHoleWithType_go___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwCalcFailure(lean_object*); +lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_annotateFirstHoleWithType_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_annotateFirstHoleWithType_go___spec__10(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_annotateFirstHoleWithType_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_object*, lean_object*); @@ -19639,170 +19640,568 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_1); -x_16 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_15); +x_16 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_7, x_8, x_9, x_10, x_15); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_17; lean_object* x_18; uint8_t 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(x_16); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_2); -x_19 = lean_infer_type(x_2, x_7, x_8, x_9, x_10, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 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; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; -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(x_19); -x_22 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_23 = l_Array_back_x21___rarg(x_22, x_4); -x_24 = lean_ctor_get(x_23, 1); +x_22 = lean_infer_type(x_20, x_7, x_8, x_9, x_10, x_18); +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(x_23); -x_25 = l_Lean_MessageData_ofExpr(x_1); -x_26 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -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_Lean_MessageData_ofExpr(x_17); -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_26); -x_33 = l_Lean_indentD(x_32); -x_34 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__2; -x_35 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -x_37 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_MessageData_ofExpr(x_2); -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_26); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_28); -x_41 = l_Lean_MessageData_ofExpr(x_20); -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_26); -x_44 = l_Lean_indentD(x_43); -x_45 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_45, 0, x_37); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_26); -x_47 = 2; +lean_dec(x_22); +lean_inc(x_10); lean_inc(x_9); -x_48 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_24, x_46, x_47, x_7, x_8, x_9, x_10, x_21); -lean_dec(x_24); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = 1; -x_51 = lean_box(0); -x_52 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_50, x_51, x_7, x_8, x_9, x_10, x_49); -return x_52; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_21); +x_25 = lean_infer_type(x_21, x_7, x_8, x_9, x_10, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_28 = l_Lean_Meta_addPPExplicitToExposeDiff(x_23, x_26, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_29); +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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; +x_32 = lean_ctor_get(x_29, 0); +x_33 = lean_ctor_get(x_29, 1); +x_34 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_35 = l_Array_back_x21___rarg(x_34, x_4); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = l_Lean_MessageData_ofExpr(x_20); +x_38 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +lean_ctor_set_tag(x_29, 7); +lean_ctor_set(x_29, 1, x_37); +lean_ctor_set(x_29, 0, x_38); +x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_39); +lean_ctor_set(x_17, 0, x_29); +x_40 = l_Lean_MessageData_ofExpr(x_32); +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_17); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_38); +x_43 = l_Lean_indentD(x_42); +x_44 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__2; +x_45 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +x_47 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_MessageData_ofExpr(x_21); +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_38); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_39); +x_51 = l_Lean_MessageData_ofExpr(x_33); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_38); +x_54 = l_Lean_indentD(x_53); +x_55 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_55, 0, x_47); +lean_ctor_set(x_55, 1, x_54); +x_56 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_38); +x_57 = 2; +lean_inc(x_9); +x_58 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_36, x_56, x_57, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_36); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = 1; +x_61 = lean_box(0); +x_62 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_60, x_61, x_7, x_8, x_9, x_10, x_59); +return x_62; } else { -uint8_t x_53; +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; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; +x_63 = lean_ctor_get(x_29, 0); +x_64 = lean_ctor_get(x_29, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_29); +x_65 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_66 = l_Array_back_x21___rarg(x_65, x_4); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = l_Lean_MessageData_ofExpr(x_20); +x_69 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +x_70 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_71); +lean_ctor_set(x_17, 0, x_70); +x_72 = l_Lean_MessageData_ofExpr(x_63); +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_17); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_69); +x_75 = l_Lean_indentD(x_74); +x_76 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__2; +x_77 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +x_79 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_MessageData_ofExpr(x_21); +x_81 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_81, 0, x_69); +lean_ctor_set(x_81, 1, x_80); +x_82 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_71); +x_83 = l_Lean_MessageData_ofExpr(x_64); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_69); +x_86 = l_Lean_indentD(x_85); +x_87 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_69); +x_89 = 2; +lean_inc(x_9); +x_90 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_67, x_88, x_89, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_67); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = 1; +x_93 = lean_box(0); +x_94 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_92, x_93, x_7, x_8, x_9, x_10, x_91); +return x_94; +} +} +else +{ +uint8_t x_95; +lean_free_object(x_17); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_95 = !lean_is_exclusive(x_28); +if (x_95 == 0) +{ +return x_28; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_28, 0); +x_97 = lean_ctor_get(x_28, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_28); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +else +{ +uint8_t x_99; +lean_dec(x_23); +lean_free_object(x_17); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_99 = !lean_is_exclusive(x_25); +if (x_99 == 0) +{ +return x_25; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_25, 0); +x_101 = lean_ctor_get(x_25, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_25); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; +} +} +} +else +{ +uint8_t x_103; +lean_free_object(x_17); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_103 = !lean_is_exclusive(x_22); +if (x_103 == 0) +{ +return x_22; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_22, 0); +x_105 = lean_ctor_get(x_22, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_22); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_17, 0); +x_108 = lean_ctor_get(x_17, 1); +lean_inc(x_108); +lean_inc(x_107); lean_dec(x_17); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_107); +x_109 = lean_infer_type(x_107, x_7, x_8, x_9, x_10, x_18); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +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(x_109); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_108); +x_112 = lean_infer_type(x_108, x_7, x_8, x_9, x_10, x_111); +if (lean_obj_tag(x_112) == 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(x_112); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_115 = l_Lean_Meta_addPPExplicitToExposeDiff(x_110, x_113, x_7, x_8, x_9, x_10, x_114); +if (lean_obj_tag(x_115) == 0) +{ +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; uint8_t x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +x_118 = lean_ctor_get(x_116, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_116, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_120 = x_116; +} else { + lean_dec_ref(x_116); + x_120 = lean_box(0); +} +x_121 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_122 = l_Array_back_x21___rarg(x_121, x_4); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +lean_dec(x_122); +x_124 = l_Lean_MessageData_ofExpr(x_107); +x_125 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_120)) { + x_126 = lean_alloc_ctor(7, 2, 0); +} else { + x_126 = x_120; + lean_ctor_set_tag(x_126, 7); +} +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_124); +x_127 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +x_129 = l_Lean_MessageData_ofExpr(x_118); +x_130 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +x_131 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_125); +x_132 = l_Lean_indentD(x_131); +x_133 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__2; +x_134 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +x_135 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +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_MessageData_ofExpr(x_108); +x_138 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_138, 0, x_125); +lean_ctor_set(x_138, 1, x_137); +x_139 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_127); +x_140 = l_Lean_MessageData_ofExpr(x_119); +x_141 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +x_142 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_125); +x_143 = l_Lean_indentD(x_142); +x_144 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_144, 0, x_136); +lean_ctor_set(x_144, 1, x_143); +x_145 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_125); +x_146 = 2; +lean_inc(x_9); +x_147 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_123, x_145, x_146, x_7, x_8, x_9, x_10, x_117); +lean_dec(x_123); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +lean_dec(x_147); +x_149 = 1; +x_150 = lean_box(0); +x_151 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_149, x_150, x_7, x_8, x_9, x_10, x_148); +return x_151; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_108); +lean_dec(x_107); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_53 = !lean_is_exclusive(x_19); -if (x_53 == 0) -{ -return x_19; +x_152 = lean_ctor_get(x_115, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_115, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_154 = x_115; +} else { + lean_dec_ref(x_115); + x_154 = lean_box(0); } -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_19, 0); -x_55 = lean_ctor_get(x_19, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_19); -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; +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); +} else { + x_155 = x_154; } +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } else { -uint8_t x_57; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_107); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_57 = !lean_is_exclusive(x_16); -if (x_57 == 0) +x_156 = lean_ctor_get(x_112, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_112, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_158 = x_112; +} else { + lean_dec_ref(x_112); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_158; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_108); +lean_dec(x_107); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_160 = lean_ctor_get(x_109, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_109, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_162 = x_109; +} else { + lean_dec_ref(x_109); + 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_164; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_164 = !lean_is_exclusive(x_16); +if (x_164 == 0) { return x_16; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_16, 0); -x_59 = lean_ctor_get(x_16, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_16, 0); +x_166 = lean_ctor_get(x_16, 1); +lean_inc(x_166); +lean_inc(x_165); lean_dec(x_16); -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_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_61; lean_object* x_62; lean_object* x_63; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_dec(x_2); lean_dec(x_1); -x_61 = lean_ctor_get(x_12, 1); -lean_inc(x_61); +x_168 = lean_ctor_get(x_12, 1); +lean_inc(x_168); lean_dec(x_12); -x_62 = lean_box(0); -x_63 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_5, x_62, x_7, x_8, x_9, x_10, x_61); -return x_63; +x_169 = lean_box(0); +x_170 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__2(x_3, x_5, x_169, x_7, x_8, x_9, x_10, x_168); +return x_170; } } else { -uint8_t x_64; +uint8_t x_171; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -19810,23 +20209,23 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_12); -if (x_64 == 0) +x_171 = !lean_is_exclusive(x_12); +if (x_171 == 0) { return x_12; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_12, 0); -x_66 = lean_ctor_get(x_12, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_12, 0); +x_173 = lean_ctor_get(x_12, 1); +lean_inc(x_173); +lean_inc(x_172); lean_dec(x_12); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_172); +lean_ctor_set(x_174, 1, x_173); +return x_174; } } } @@ -20042,133 +20441,546 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_31); -x_60 = lean_infer_type(x_31, x_4, x_5, x_6, x_7, x_59); +x_60 = l_Lean_Meta_addPPExplicitToExposeDiff(x_31, x_47, x_4, x_5, x_6, x_7, x_59); if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_61; lean_object* x_62; uint8_t x_63; x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); +x_63 = !lean_is_exclusive(x_61); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_61, 0); +x_65 = lean_ctor_get(x_61, 1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_47); -x_63 = lean_infer_type(x_47, x_4, x_5, x_6, x_7, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t 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; -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(x_63); -x_66 = lean_array_get_size(x_1); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_nat_dec_lt(x_67, x_66); +x_66 = lean_infer_type(x_64, x_4, x_5, x_6, x_7, 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, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); lean_dec(x_66); -x_69 = l_Lean_MessageData_ofExpr(x_31); -x_70 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_65); +x_69 = lean_infer_type(x_65, x_4, x_5, x_6, x_7, x_68); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +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(x_69); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_72 = l_Lean_Meta_addPPExplicitToExposeDiff(x_67, x_70, x_4, x_5, x_6, x_7, x_71); +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, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = !lean_is_exclusive(x_73); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_76 = lean_ctor_get(x_73, 0); +x_77 = lean_ctor_get(x_73, 1); +x_78 = lean_array_get_size(x_1); +x_79 = lean_unsigned_to_nat(0u); +x_80 = lean_nat_dec_lt(x_79, x_78); +lean_dec(x_78); +x_81 = l_Lean_MessageData_ofExpr(x_64); +x_82 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +lean_ctor_set_tag(x_73, 7); +lean_ctor_set(x_73, 1, x_81); +lean_ctor_set(x_73, 0, x_82); +x_83 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +lean_ctor_set_tag(x_61, 7); +lean_ctor_set(x_61, 1, x_83); +lean_ctor_set(x_61, 0, x_73); +x_84 = l_Lean_MessageData_ofExpr(x_76); lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_69); -lean_ctor_set(x_44, 0, x_70); -x_71 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +lean_ctor_set(x_44, 1, x_84); +lean_ctor_set(x_44, 0, x_61); lean_ctor_set_tag(x_41, 7); -lean_ctor_set(x_41, 1, x_71); +lean_ctor_set(x_41, 1, x_82); lean_ctor_set(x_41, 0, x_44); -x_72 = l_Lean_MessageData_ofExpr(x_61); +x_85 = l_Lean_indentD(x_41); +x_86 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; lean_ctor_set_tag(x_33, 7); -lean_ctor_set(x_33, 1, x_72); -lean_ctor_set(x_33, 0, x_41); +lean_ctor_set(x_33, 1, x_85); +lean_ctor_set(x_33, 0, x_86); +x_87 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_70); +lean_ctor_set(x_23, 1, x_87); lean_ctor_set(x_23, 0, x_33); -x_73 = l_Lean_indentD(x_23); -x_74 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +x_88 = l_Lean_MessageData_ofExpr(x_65); lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_73); -lean_ctor_set(x_22, 0, x_74); -x_75 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set(x_22, 1, x_88); +lean_ctor_set(x_22, 0, x_82); lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_75); +lean_ctor_set(x_17, 1, x_83); lean_ctor_set(x_17, 0, x_22); -x_76 = l_Lean_MessageData_ofExpr(x_47); +x_89 = l_Lean_MessageData_ofExpr(x_77); lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_76); -lean_ctor_set(x_12, 0, x_70); -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_12); -lean_ctor_set(x_77, 1, x_71); -x_78 = l_Lean_MessageData_ofExpr(x_64); -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_70); -x_81 = l_Lean_indentD(x_80); -x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_17); -lean_ctor_set(x_82, 1, x_81); -x_83 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_70); -if (x_68 == 0) +lean_ctor_set(x_12, 1, x_89); +lean_ctor_set(x_12, 0, x_17); +x_90 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_90, 0, x_12); +lean_ctor_set(x_90, 1, x_82); +x_91 = l_Lean_indentD(x_90); +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_23); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_82); +if (x_80 == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; -x_84 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_85 = l_outOfBounds___rarg(x_84); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = 2; +lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; +x_94 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_95 = l_outOfBounds___rarg(x_94); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = 2; lean_inc(x_6); -x_88 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_86, x_83, x_87, x_4, x_5, x_6, x_7, x_65); -lean_dec(x_86); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = 1; -x_91 = lean_box(0); -x_92 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_90, x_91, x_4, x_5, x_6, x_7, x_89); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; -x_93 = lean_array_fget(x_1, x_67); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -lean_dec(x_93); -x_95 = 2; -lean_inc(x_6); -x_96 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_94, x_83, x_95, x_4, x_5, x_6, x_7, x_65); -lean_dec(x_94); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); +x_98 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_96, x_93, x_97, x_4, x_5, x_6, x_7, x_74); lean_dec(x_96); -x_98 = 1; -x_99 = lean_box(0); -x_100 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_98, x_99, x_4, x_5, x_6, x_7, x_97); -return x_100; +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = 1; +x_101 = lean_box(0); +x_102 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_100, x_101, x_4, x_5, x_6, x_7, x_99); +return x_102; +} +else +{ +lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_103 = lean_array_fget(x_1, x_79); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = 2; +lean_inc(x_6); +x_106 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_104, x_93, x_105, x_4, x_5, x_6, x_7, x_74); +lean_dec(x_104); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec(x_106); +x_108 = 1; +x_109 = lean_box(0); +x_110 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_108, x_109, x_4, x_5, x_6, x_7, x_107); +return x_110; } } else { -uint8_t x_101; +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 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; +x_111 = lean_ctor_get(x_73, 0); +x_112 = lean_ctor_get(x_73, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_73); +x_113 = lean_array_get_size(x_1); +x_114 = lean_unsigned_to_nat(0u); +x_115 = lean_nat_dec_lt(x_114, x_113); +lean_dec(x_113); +x_116 = l_Lean_MessageData_ofExpr(x_64); +x_117 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +x_118 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +lean_ctor_set_tag(x_61, 7); +lean_ctor_set(x_61, 1, x_119); +lean_ctor_set(x_61, 0, x_118); +x_120 = l_Lean_MessageData_ofExpr(x_111); +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_120); +lean_ctor_set(x_44, 0, x_61); +lean_ctor_set_tag(x_41, 7); +lean_ctor_set(x_41, 1, x_117); +lean_ctor_set(x_41, 0, x_44); +x_121 = l_Lean_indentD(x_41); +x_122 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_121); +lean_ctor_set(x_33, 0, x_122); +x_123 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_123); +lean_ctor_set(x_23, 0, x_33); +x_124 = l_Lean_MessageData_ofExpr(x_65); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_124); +lean_ctor_set(x_22, 0, x_117); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_119); +lean_ctor_set(x_17, 0, x_22); +x_125 = l_Lean_MessageData_ofExpr(x_112); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_125); +lean_ctor_set(x_12, 0, x_17); +x_126 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_126, 0, x_12); +lean_ctor_set(x_126, 1, x_117); +x_127 = l_Lean_indentD(x_126); +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_23); +lean_ctor_set(x_128, 1, x_127); +x_129 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_117); +if (x_115 == 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; uint8_t x_136; lean_object* x_137; lean_object* x_138; +x_130 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_131 = l_outOfBounds___rarg(x_130); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = 2; +lean_inc(x_6); +x_134 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_132, x_129, x_133, x_4, x_5, x_6, x_7, x_74); +lean_dec(x_132); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +x_136 = 1; +x_137 = lean_box(0); +x_138 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_136, x_137, x_4, x_5, x_6, x_7, x_135); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_146; +x_139 = lean_array_fget(x_1, x_114); +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); +lean_dec(x_139); +x_141 = 2; +lean_inc(x_6); +x_142 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_140, x_129, x_141, x_4, x_5, x_6, x_7, x_74); +lean_dec(x_140); +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +lean_dec(x_142); +x_144 = 1; +x_145 = lean_box(0); +x_146 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_144, x_145, x_4, x_5, x_6, x_7, x_143); +return x_146; +} +} +} +else +{ +uint8_t x_147; +lean_free_object(x_61); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_44); +lean_dec(x_48); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_147 = !lean_is_exclusive(x_72); +if (x_147 == 0) +{ +return x_72; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_72, 0); +x_149 = lean_ctor_get(x_72, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_72); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +else +{ +uint8_t x_151; +lean_dec(x_67); +lean_free_object(x_61); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_44); +lean_dec(x_48); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_151 = !lean_is_exclusive(x_69); +if (x_151 == 0) +{ +return x_69; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_69, 0); +x_153 = lean_ctor_get(x_69, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_69); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +return x_154; +} +} +} +else +{ +uint8_t x_155; +lean_free_object(x_61); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_44); +lean_dec(x_48); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_155 = !lean_is_exclusive(x_66); +if (x_155 == 0) +{ +return x_66; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_66, 0); +x_157 = lean_ctor_get(x_66, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_66); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_61, 0); +x_160 = lean_ctor_get(x_61, 1); +lean_inc(x_160); +lean_inc(x_159); lean_dec(x_61); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_159); +x_161 = lean_infer_type(x_159, x_4, x_5, x_6, x_7, x_62); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_160); +x_164 = lean_infer_type(x_160, x_4, x_5, x_6, x_7, x_163); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_167 = l_Lean_Meta_addPPExplicitToExposeDiff(x_162, x_165, x_4, x_5, x_6, x_7, x_166); +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; lean_object* x_174; uint8_t x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); +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); +} +x_173 = lean_array_get_size(x_1); +x_174 = lean_unsigned_to_nat(0u); +x_175 = lean_nat_dec_lt(x_174, x_173); +lean_dec(x_173); +x_176 = l_Lean_MessageData_ofExpr(x_159); +x_177 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_172)) { + x_178 = lean_alloc_ctor(7, 2, 0); +} else { + x_178 = x_172; + lean_ctor_set_tag(x_178, 7); +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +x_180 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +x_181 = l_Lean_MessageData_ofExpr(x_170); +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_181); +lean_ctor_set(x_44, 0, x_180); +lean_ctor_set_tag(x_41, 7); +lean_ctor_set(x_41, 1, x_177); +lean_ctor_set(x_41, 0, x_44); +x_182 = l_Lean_indentD(x_41); +x_183 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_182); +lean_ctor_set(x_33, 0, x_183); +x_184 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_184); +lean_ctor_set(x_23, 0, x_33); +x_185 = l_Lean_MessageData_ofExpr(x_160); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_185); +lean_ctor_set(x_22, 0, x_177); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_179); +lean_ctor_set(x_17, 0, x_22); +x_186 = l_Lean_MessageData_ofExpr(x_171); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_186); +lean_ctor_set(x_12, 0, x_17); +x_187 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_187, 0, x_12); +lean_ctor_set(x_187, 1, x_177); +x_188 = l_Lean_indentD(x_187); +x_189 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_189, 0, x_23); +lean_ctor_set(x_189, 1, x_188); +x_190 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_177); +if (x_175 == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; lean_object* x_199; +x_191 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_192 = l_outOfBounds___rarg(x_191); +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +lean_dec(x_192); +x_194 = 2; +lean_inc(x_6); +x_195 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_193, x_190, x_194, x_4, x_5, x_6, x_7, x_169); +lean_dec(x_193); +x_196 = lean_ctor_get(x_195, 1); +lean_inc(x_196); +lean_dec(x_195); +x_197 = 1; +x_198 = lean_box(0); +x_199 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_197, x_198, x_4, x_5, x_6, x_7, x_196); +return x_199; +} +else +{ +lean_object* x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; +x_200 = lean_array_fget(x_1, x_174); +x_201 = lean_ctor_get(x_200, 1); +lean_inc(x_201); +lean_dec(x_200); +x_202 = 2; +lean_inc(x_6); +x_203 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_201, x_190, x_202, x_4, x_5, x_6, x_7, x_169); +lean_dec(x_201); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +lean_dec(x_203); +x_205 = 1; +x_206 = lean_box(0); +x_207 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_205, x_206, x_4, x_5, x_6, x_7, x_204); +return x_207; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_160); +lean_dec(x_159); lean_free_object(x_44); lean_dec(x_48); -lean_dec(x_47); lean_free_object(x_41); lean_dec(x_42); lean_free_object(x_33); lean_free_object(x_23); lean_dec(x_32); -lean_dec(x_31); lean_free_object(x_22); lean_free_object(x_17); lean_free_object(x_12); @@ -20176,38 +20988,41 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_101 = !lean_is_exclusive(x_63); -if (x_101 == 0) -{ -return x_63; +x_208 = lean_ctor_get(x_167, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_167, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_210 = x_167; +} else { + lean_dec_ref(x_167); + x_210 = lean_box(0); } -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_63, 0); -x_103 = lean_ctor_get(x_63, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_63); -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; +if (lean_is_scalar(x_210)) { + x_211 = lean_alloc_ctor(1, 2, 0); +} else { + x_211 = x_210; } +lean_ctor_set(x_211, 0, x_208); +lean_ctor_set(x_211, 1, x_209); +return x_211; } } else { -uint8_t x_105; +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_162); +lean_dec(x_160); +lean_dec(x_159); lean_free_object(x_44); lean_dec(x_48); -lean_dec(x_47); lean_free_object(x_41); lean_dec(x_42); lean_free_object(x_33); lean_free_object(x_23); lean_dec(x_32); -lean_dec(x_31); lean_free_object(x_22); lean_free_object(x_17); lean_free_object(x_12); @@ -20215,29 +21030,110 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_105 = !lean_is_exclusive(x_60); -if (x_105 == 0) +x_212 = lean_ctor_get(x_164, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_164, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_214 = x_164; +} else { + lean_dec_ref(x_164); + x_214 = lean_box(0); +} +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); +} else { + x_215 = x_214; +} +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +return x_215; +} +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_160); +lean_dec(x_159); +lean_free_object(x_44); +lean_dec(x_48); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_216 = lean_ctor_get(x_161, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_161, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_218 = x_161; +} else { + lean_dec_ref(x_161); + x_218 = lean_box(0); +} +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(1, 2, 0); +} else { + x_219 = x_218; +} +lean_ctor_set(x_219, 0, x_216); +lean_ctor_set(x_219, 1, x_217); +return x_219; +} +} +} +else +{ +uint8_t x_220; +lean_free_object(x_44); +lean_dec(x_48); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_220 = !lean_is_exclusive(x_60); +if (x_220 == 0) { return x_60; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_60, 0); -x_107 = lean_ctor_get(x_60, 1); -lean_inc(x_107); -lean_inc(x_106); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_60, 0); +x_222 = lean_ctor_get(x_60, 1); +lean_inc(x_222); +lean_inc(x_221); lean_dec(x_60); -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; +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_221); +lean_ctor_set(x_223, 1, x_222); +return x_223; } } } else { -lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; +lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_free_object(x_44); lean_dec(x_47); lean_free_object(x_41); @@ -20247,18 +21143,18 @@ lean_dec(x_31); lean_free_object(x_22); lean_free_object(x_17); lean_free_object(x_12); -x_109 = lean_ctor_get(x_56, 1); -lean_inc(x_109); +x_224 = lean_ctor_get(x_56, 1); +lean_inc(x_224); lean_dec(x_56); -x_110 = 0; -x_111 = lean_box(0); -x_112 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_110, x_111, x_4, x_5, x_6, x_7, x_109); -return x_112; +x_225 = 0; +x_226 = lean_box(0); +x_227 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_48, x_42, x_1, x_225, x_226, x_4, x_5, x_6, x_7, x_224); +return x_227; } } else { -uint8_t x_113; +uint8_t x_228; lean_free_object(x_44); lean_dec(x_48); lean_dec(x_47); @@ -20275,30 +21171,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_113 = !lean_is_exclusive(x_56); -if (x_113 == 0) +x_228 = !lean_is_exclusive(x_56); +if (x_228 == 0) { return x_56; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_56, 0); -x_115 = lean_ctor_get(x_56, 1); -lean_inc(x_115); -lean_inc(x_114); +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_56, 0); +x_230 = lean_ctor_get(x_56, 1); +lean_inc(x_230); +lean_inc(x_229); lean_dec(x_56); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +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_117; +uint8_t x_232; lean_free_object(x_44); lean_dec(x_48); lean_dec(x_47); @@ -20318,713 +21214,463 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_117 = !lean_is_exclusive(x_49); -if (x_117 == 0) +x_232 = !lean_is_exclusive(x_49); +if (x_232 == 0) { return x_49; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_49, 0); -x_119 = lean_ctor_get(x_49, 1); -lean_inc(x_119); -lean_inc(x_118); +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_49, 0); +x_234 = lean_ctor_get(x_49, 1); +lean_inc(x_234); +lean_inc(x_233); lean_dec(x_49); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +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; } } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_41, 0); -x_122 = lean_ctor_get(x_44, 0); -x_123 = lean_ctor_get(x_44, 1); -lean_inc(x_123); -lean_inc(x_122); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_236 = lean_ctor_get(x_41, 0); +x_237 = lean_ctor_get(x_44, 0); +x_238 = lean_ctor_get(x_44, 1); +lean_inc(x_238); +lean_inc(x_237); lean_dec(x_44); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_124 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_121, x_4, x_5, x_6, x_7, x_39); -if (lean_obj_tag(x_124) == 0) +x_239 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_236, x_4, x_5, x_6, x_7, x_39); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_125; uint8_t x_126; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_unbox(x_125); -lean_dec(x_125); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_123); -lean_dec(x_122); -lean_free_object(x_41); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_127 = lean_ctor_get(x_124, 1); -lean_inc(x_127); -lean_dec(x_124); -x_128 = lean_box(0); -x_129 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_128, x_4, x_5, x_6, x_7, x_127); -return x_129; -} -else -{ -lean_object* x_130; lean_object* x_131; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_2); -x_130 = lean_ctor_get(x_124, 1); -lean_inc(x_130); -lean_dec(x_124); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_122); -lean_inc(x_31); -x_131 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_122, x_4, x_5, x_6, x_7, x_130); -if (lean_obj_tag(x_131) == 0) -{ -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) -{ -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -lean_dec(x_131); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_31); -x_135 = lean_infer_type(x_31, x_4, x_5, x_6, x_7, x_134); -if (lean_obj_tag(x_135) == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_122); -x_138 = lean_infer_type(x_122, x_4, x_5, x_6, x_7, x_137); -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; 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; -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_141 = lean_array_get_size(x_1); -x_142 = lean_unsigned_to_nat(0u); -x_143 = lean_nat_dec_lt(x_142, x_141); -lean_dec(x_141); -x_144 = l_Lean_MessageData_ofExpr(x_31); -x_145 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -x_146 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -lean_ctor_set_tag(x_41, 7); -lean_ctor_set(x_41, 1, x_147); -lean_ctor_set(x_41, 0, x_146); -x_148 = l_Lean_MessageData_ofExpr(x_136); -lean_ctor_set_tag(x_33, 7); -lean_ctor_set(x_33, 1, x_148); -lean_ctor_set(x_33, 0, x_41); -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_145); -lean_ctor_set(x_23, 0, x_33); -x_149 = l_Lean_indentD(x_23); -x_150 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_149); -lean_ctor_set(x_22, 0, x_150); -x_151 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_151); -lean_ctor_set(x_17, 0, x_22); -x_152 = l_Lean_MessageData_ofExpr(x_122); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_152); -lean_ctor_set(x_12, 0, x_145); -x_153 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_153, 0, x_12); -lean_ctor_set(x_153, 1, x_147); -x_154 = l_Lean_MessageData_ofExpr(x_139); -x_155 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -x_156 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_145); -x_157 = l_Lean_indentD(x_156); -x_158 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_158, 0, x_17); -lean_ctor_set(x_158, 1, x_157); -x_159 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_145); -if (x_143 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; -x_160 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_161 = l_outOfBounds___rarg(x_160); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -lean_dec(x_161); -x_163 = 2; -lean_inc(x_6); -x_164 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_162, x_159, x_163, x_4, x_5, x_6, x_7, x_140); -lean_dec(x_162); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec(x_164); -x_166 = 1; -x_167 = lean_box(0); -x_168 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_123, x_42, x_1, x_166, x_167, x_4, x_5, x_6, x_7, x_165); -return x_168; -} -else -{ -lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; -x_169 = lean_array_fget(x_1, x_142); -x_170 = lean_ctor_get(x_169, 1); -lean_inc(x_170); -lean_dec(x_169); -x_171 = 2; -lean_inc(x_6); -x_172 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_170, x_159, x_171, x_4, x_5, x_6, x_7, x_140); -lean_dec(x_170); -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -lean_dec(x_172); -x_174 = 1; -x_175 = lean_box(0); -x_176 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_123, x_42, x_1, x_174, x_175, x_4, x_5, x_6, x_7, x_173); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_136); -lean_dec(x_123); -lean_dec(x_122); -lean_free_object(x_41); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_177 = lean_ctor_get(x_138, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_138, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_179 = x_138; -} else { - lean_dec_ref(x_138); - 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_object* x_184; -lean_dec(x_123); -lean_dec(x_122); -lean_free_object(x_41); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_181 = lean_ctor_get(x_135, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_135, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_183 = x_135; -} else { - lean_dec_ref(x_135); - x_183 = lean_box(0); -} -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(1, 2, 0); -} else { - x_184 = x_183; -} -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_182); -return x_184; -} -} -else -{ -lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_122); -lean_free_object(x_41); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_185 = lean_ctor_get(x_131, 1); -lean_inc(x_185); -lean_dec(x_131); -x_186 = 0; -x_187 = lean_box(0); -x_188 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_123, x_42, x_1, x_186, x_187, x_4, x_5, x_6, x_7, x_185); -return x_188; -} -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_123); -lean_dec(x_122); -lean_free_object(x_41); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_189 = lean_ctor_get(x_131, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_131, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_191 = x_131; -} else { - lean_dec_ref(x_131); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_123); -lean_dec(x_122); -lean_free_object(x_41); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_dec(x_16); -lean_free_object(x_12); -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_193 = lean_ctor_get(x_124, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_124, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_195 = x_124; -} else { - lean_dec_ref(x_124); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; -} -} -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_197 = lean_ctor_get(x_41, 1); -x_198 = lean_ctor_get(x_41, 0); -lean_inc(x_197); -lean_inc(x_198); -lean_dec(x_41); -x_199 = lean_ctor_get(x_197, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_197, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_201 = x_197; -} else { - lean_dec_ref(x_197); - x_201 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_202 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_198, x_4, x_5, x_6, x_7, x_39); -if (lean_obj_tag(x_202) == 0) -{ -lean_object* x_203; uint8_t x_204; -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; lean_object* x_206; lean_object* x_207; -lean_dec(x_201); -lean_dec(x_200); -lean_dec(x_199); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_205 = lean_ctor_get(x_202, 1); -lean_inc(x_205); -lean_dec(x_202); -x_206 = lean_box(0); -x_207 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_206, x_4, x_5, x_6, x_7, x_205); -return x_207; -} -else -{ -lean_object* x_208; lean_object* x_209; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_2); -x_208 = lean_ctor_get(x_202, 1); -lean_inc(x_208); -lean_dec(x_202); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_199); -lean_inc(x_31); -x_209 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_199, x_4, x_5, x_6, x_7, x_208); -if (lean_obj_tag(x_209) == 0) -{ -lean_object* x_210; uint8_t x_211; -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -x_211 = lean_unbox(x_210); -lean_dec(x_210); -if (x_211 == 0) -{ -lean_object* x_212; lean_object* x_213; -x_212 = lean_ctor_get(x_209, 1); -lean_inc(x_212); -lean_dec(x_209); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_31); -x_213 = lean_infer_type(x_31, x_4, x_5, x_6, x_7, x_212); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_199); -x_216 = lean_infer_type(x_199, x_4, x_5, x_6, x_7, x_215); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_219 = lean_array_get_size(x_1); -x_220 = lean_unsigned_to_nat(0u); -x_221 = lean_nat_dec_lt(x_220, x_219); -lean_dec(x_219); -x_222 = l_Lean_MessageData_ofExpr(x_31); -x_223 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_201)) { - x_224 = lean_alloc_ctor(7, 2, 0); -} else { - x_224 = x_201; - lean_ctor_set_tag(x_224, 7); -} -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -x_225 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -x_226 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -x_227 = l_Lean_MessageData_ofExpr(x_214); -lean_ctor_set_tag(x_33, 7); -lean_ctor_set(x_33, 1, x_227); -lean_ctor_set(x_33, 0, x_226); -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_223); -lean_ctor_set(x_23, 0, x_33); -x_228 = l_Lean_indentD(x_23); -x_229 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_228); -lean_ctor_set(x_22, 0, x_229); -x_230 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_230); -lean_ctor_set(x_17, 0, x_22); -x_231 = l_Lean_MessageData_ofExpr(x_199); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_231); -lean_ctor_set(x_12, 0, x_223); -x_232 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_232, 0, x_12); -lean_ctor_set(x_232, 1, x_225); -x_233 = l_Lean_MessageData_ofExpr(x_217); -x_234 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -x_235 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_223); -x_236 = l_Lean_indentD(x_235); -x_237 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_237, 0, x_17); -lean_ctor_set(x_237, 1, x_236); -x_238 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_223); -if (x_221 == 0) -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; -x_239 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_240 = l_outOfBounds___rarg(x_239); -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_unbox(x_240); lean_dec(x_240); -x_242 = 2; -lean_inc(x_6); -x_243 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_241, x_238, x_242, x_4, x_5, x_6, x_7, x_218); -lean_dec(x_241); -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -lean_dec(x_243); -x_245 = 1; -x_246 = lean_box(0); -x_247 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_200, x_42, x_1, x_245, x_246, x_4, x_5, x_6, x_7, x_244); -return x_247; +if (x_241 == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_238); +lean_dec(x_237); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +x_242 = lean_ctor_get(x_239, 1); +lean_inc(x_242); +lean_dec(x_239); +x_243 = lean_box(0); +x_244 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_243, x_4, x_5, x_6, x_7, x_242); +return x_244; } else { -lean_object* x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; lean_object* x_254; lean_object* x_255; -x_248 = lean_array_fget(x_1, x_220); -x_249 = lean_ctor_get(x_248, 1); +lean_object* x_245; lean_object* x_246; +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_2); +x_245 = lean_ctor_get(x_239, 1); +lean_inc(x_245); +lean_dec(x_239); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_237); +lean_inc(x_31); +x_246 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_237, x_4, x_5, x_6, x_7, x_245); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; uint8_t x_248; +x_247 = lean_ctor_get(x_246, 0); +lean_inc(x_247); +x_248 = lean_unbox(x_247); +lean_dec(x_247); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; +x_249 = lean_ctor_get(x_246, 1); lean_inc(x_249); -lean_dec(x_248); -x_250 = 2; +lean_dec(x_246); +lean_inc(x_7); lean_inc(x_6); -x_251 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_249, x_238, x_250, x_4, x_5, x_6, x_7, x_218); -lean_dec(x_249); -x_252 = lean_ctor_get(x_251, 1); +lean_inc(x_5); +lean_inc(x_4); +x_250 = l_Lean_Meta_addPPExplicitToExposeDiff(x_31, x_237, x_4, x_5, x_6, x_7, x_249); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); lean_inc(x_252); -lean_dec(x_251); -x_253 = 1; -x_254 = lean_box(0); -x_255 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_200, x_42, x_1, x_253, x_254, x_4, x_5, x_6, x_7, x_252); -return x_255; +lean_dec(x_250); +x_253 = lean_ctor_get(x_251, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_251, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_255 = x_251; +} else { + lean_dec_ref(x_251); + x_255 = lean_box(0); } -} -else +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_253); +x_256 = lean_infer_type(x_253, x_4, x_5, x_6, x_7, x_252); +if (lean_obj_tag(x_256) == 0) { -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_214); -lean_dec(x_201); -lean_dec(x_200); -lean_dec(x_199); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_256 = lean_ctor_get(x_216, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_216, 1); +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_256, 0); lean_inc(x_257); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_258 = x_216; -} else { - lean_dec_ref(x_216); - x_258 = lean_box(0); -} -if (lean_is_scalar(x_258)) { - x_259 = lean_alloc_ctor(1, 2, 0); -} else { - x_259 = x_258; -} -lean_ctor_set(x_259, 0, x_256); -lean_ctor_set(x_259, 1, x_257); -return x_259; -} -} -else +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_254); +x_259 = lean_infer_type(x_254, x_4, x_5, x_6, x_7, x_258); +if (lean_obj_tag(x_259) == 0) { -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -lean_dec(x_201); -lean_dec(x_200); -lean_dec(x_199); -lean_dec(x_42); -lean_free_object(x_33); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_260 = lean_ctor_get(x_213, 0); +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = lean_ctor_get(x_259, 0); lean_inc(x_260); -x_261 = lean_ctor_get(x_213, 1); +x_261 = lean_ctor_get(x_259, 1); lean_inc(x_261); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_262 = x_213; +lean_dec(x_259); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_262 = l_Lean_Meta_addPPExplicitToExposeDiff(x_257, x_260, x_4, x_5, x_6, x_7, x_261); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec(x_262); +x_265 = lean_ctor_get(x_263, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_263, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_267 = x_263; } else { - lean_dec_ref(x_213); - x_262 = lean_box(0); + lean_dec_ref(x_263); + x_267 = lean_box(0); } -if (lean_is_scalar(x_262)) { - x_263 = lean_alloc_ctor(1, 2, 0); +x_268 = lean_array_get_size(x_1); +x_269 = lean_unsigned_to_nat(0u); +x_270 = lean_nat_dec_lt(x_269, x_268); +lean_dec(x_268); +x_271 = l_Lean_MessageData_ofExpr(x_253); +x_272 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_267)) { + x_273 = lean_alloc_ctor(7, 2, 0); } else { - x_263 = x_262; + x_273 = x_267; + lean_ctor_set_tag(x_273, 7); } -lean_ctor_set(x_263, 0, x_260); -lean_ctor_set(x_263, 1, x_261); -return x_263; +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_271); +x_274 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_255)) { + x_275 = lean_alloc_ctor(7, 2, 0); +} else { + x_275 = x_255; + lean_ctor_set_tag(x_275, 7); +} +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +x_276 = l_Lean_MessageData_ofExpr(x_265); +x_277 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_277, 0, x_275); +lean_ctor_set(x_277, 1, x_276); +lean_ctor_set_tag(x_41, 7); +lean_ctor_set(x_41, 1, x_272); +lean_ctor_set(x_41, 0, x_277); +x_278 = l_Lean_indentD(x_41); +x_279 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_278); +lean_ctor_set(x_33, 0, x_279); +x_280 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_280); +lean_ctor_set(x_23, 0, x_33); +x_281 = l_Lean_MessageData_ofExpr(x_254); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_281); +lean_ctor_set(x_22, 0, x_272); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_274); +lean_ctor_set(x_17, 0, x_22); +x_282 = l_Lean_MessageData_ofExpr(x_266); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_282); +lean_ctor_set(x_12, 0, x_17); +x_283 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_283, 0, x_12); +lean_ctor_set(x_283, 1, x_272); +x_284 = l_Lean_indentD(x_283); +x_285 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_285, 0, x_23); +lean_ctor_set(x_285, 1, x_284); +x_286 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_272); +if (x_270 == 0) +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; lean_object* x_294; lean_object* x_295; +x_287 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_288 = l_outOfBounds___rarg(x_287); +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +lean_dec(x_288); +x_290 = 2; +lean_inc(x_6); +x_291 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_289, x_286, x_290, x_4, x_5, x_6, x_7, x_264); +lean_dec(x_289); +x_292 = lean_ctor_get(x_291, 1); +lean_inc(x_292); +lean_dec(x_291); +x_293 = 1; +x_294 = lean_box(0); +x_295 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_238, x_42, x_1, x_293, x_294, x_4, x_5, x_6, x_7, x_292); +return x_295; +} +else +{ +lean_object* x_296; lean_object* x_297; uint8_t x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; lean_object* x_302; lean_object* x_303; +x_296 = lean_array_fget(x_1, x_269); +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); +x_298 = 2; +lean_inc(x_6); +x_299 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_297, x_286, x_298, x_4, x_5, x_6, x_7, x_264); +lean_dec(x_297); +x_300 = lean_ctor_get(x_299, 1); +lean_inc(x_300); +lean_dec(x_299); +x_301 = 1; +x_302 = lean_box(0); +x_303 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_238, x_42, x_1, x_301, x_302, x_4, x_5, x_6, x_7, x_300); +return x_303; } } else { -lean_object* x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; -lean_dec(x_201); -lean_dec(x_199); +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_255); +lean_dec(x_254); +lean_dec(x_253); +lean_dec(x_238); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_304 = lean_ctor_get(x_262, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_262, 1); +lean_inc(x_305); +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_306 = x_262; +} else { + lean_dec_ref(x_262); + x_306 = lean_box(0); +} +if (lean_is_scalar(x_306)) { + x_307 = lean_alloc_ctor(1, 2, 0); +} else { + x_307 = x_306; +} +lean_ctor_set(x_307, 0, x_304); +lean_ctor_set(x_307, 1, x_305); +return x_307; +} +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +lean_dec(x_257); +lean_dec(x_255); +lean_dec(x_254); +lean_dec(x_253); +lean_dec(x_238); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_308 = lean_ctor_get(x_259, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_259, 1); +lean_inc(x_309); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + x_310 = x_259; +} else { + lean_dec_ref(x_259); + x_310 = lean_box(0); +} +if (lean_is_scalar(x_310)) { + x_311 = lean_alloc_ctor(1, 2, 0); +} else { + x_311 = x_310; +} +lean_ctor_set(x_311, 0, x_308); +lean_ctor_set(x_311, 1, x_309); +return x_311; +} +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +lean_dec(x_255); +lean_dec(x_254); +lean_dec(x_253); +lean_dec(x_238); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_312 = lean_ctor_get(x_256, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_256, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_314 = x_256; +} else { + lean_dec_ref(x_256); + x_314 = lean_box(0); +} +if (lean_is_scalar(x_314)) { + x_315 = lean_alloc_ctor(1, 2, 0); +} else { + x_315 = x_314; +} +lean_ctor_set(x_315, 0, x_312); +lean_ctor_set(x_315, 1, x_313); +return x_315; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_238); +lean_free_object(x_41); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_316 = lean_ctor_get(x_250, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_250, 1); +lean_inc(x_317); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_318 = x_250; +} else { + lean_dec_ref(x_250); + x_318 = lean_box(0); +} +if (lean_is_scalar(x_318)) { + x_319 = lean_alloc_ctor(1, 2, 0); +} else { + x_319 = x_318; +} +lean_ctor_set(x_319, 0, x_316); +lean_ctor_set(x_319, 1, x_317); +return x_319; +} +} +else +{ +lean_object* x_320; uint8_t x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_237); +lean_free_object(x_41); lean_free_object(x_33); lean_free_object(x_23); lean_dec(x_31); lean_free_object(x_22); lean_free_object(x_17); lean_free_object(x_12); -x_264 = lean_ctor_get(x_209, 1); -lean_inc(x_264); -lean_dec(x_209); -x_265 = 0; -x_266 = lean_box(0); -x_267 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_200, x_42, x_1, x_265, x_266, x_4, x_5, x_6, x_7, x_264); -return x_267; +x_320 = lean_ctor_get(x_246, 1); +lean_inc(x_320); +lean_dec(x_246); +x_321 = 0; +x_322 = lean_box(0); +x_323 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_238, x_42, x_1, x_321, x_322, x_4, x_5, x_6, x_7, x_320); +return x_323; } } else { -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -lean_dec(x_201); -lean_dec(x_200); -lean_dec(x_199); +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_238); +lean_dec(x_237); +lean_free_object(x_41); lean_dec(x_42); lean_free_object(x_33); lean_free_object(x_23); @@ -21037,35 +21683,35 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_268 = lean_ctor_get(x_209, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_209, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_270 = x_209; +x_324 = lean_ctor_get(x_246, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_246, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_326 = x_246; } else { - lean_dec_ref(x_209); - x_270 = lean_box(0); + lean_dec_ref(x_246); + x_326 = lean_box(0); } -if (lean_is_scalar(x_270)) { - x_271 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); } else { - x_271 = x_270; + x_327 = x_326; } -lean_ctor_set(x_271, 0, x_268); -lean_ctor_set(x_271, 1, x_269); -return x_271; +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; } } } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec(x_201); -lean_dec(x_200); -lean_dec(x_199); +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_238); +lean_dec(x_237); +lean_free_object(x_41); lean_dec(x_42); lean_free_object(x_33); lean_free_object(x_23); @@ -21081,965 +21727,732 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_272 = lean_ctor_get(x_202, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_202, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_274 = x_202; +x_328 = lean_ctor_get(x_239, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_239, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_330 = x_239; } else { - lean_dec_ref(x_202); - x_274 = lean_box(0); + lean_dec_ref(x_239); + x_330 = lean_box(0); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_330)) { + x_331 = lean_alloc_ctor(1, 2, 0); } else { - x_275 = x_274; + x_331 = x_330; } -lean_ctor_set(x_275, 0, x_272); -lean_ctor_set(x_275, 1, x_273); -return x_275; +lean_ctor_set(x_331, 0, x_328); +lean_ctor_set(x_331, 1, x_329); +return x_331; } } } else { -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_276 = lean_ctor_get(x_33, 1); -lean_inc(x_276); +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_332 = lean_ctor_get(x_41, 1); +x_333 = lean_ctor_get(x_41, 0); +lean_inc(x_332); +lean_inc(x_333); +lean_dec(x_41); +x_334 = lean_ctor_get(x_332, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_332, 1); +lean_inc(x_335); +if (lean_is_exclusive(x_332)) { + lean_ctor_release(x_332, 0); + lean_ctor_release(x_332, 1); + x_336 = x_332; +} else { + lean_dec_ref(x_332); + x_336 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_337 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_333, x_4, x_5, x_6, x_7, x_39); +if (lean_obj_tag(x_337) == 0) +{ +lean_object* x_338; uint8_t x_339; +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +x_339 = lean_unbox(x_338); +lean_dec(x_338); +if (x_339 == 0) +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_334); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +x_340 = lean_ctor_get(x_337, 1); +lean_inc(x_340); +lean_dec(x_337); +x_341 = lean_box(0); +x_342 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_341, x_4, x_5, x_6, x_7, x_340); +return x_342; +} +else +{ +lean_object* x_343; lean_object* x_344; +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_2); +x_343 = lean_ctor_get(x_337, 1); +lean_inc(x_343); +lean_dec(x_337); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_334); +lean_inc(x_31); +x_344 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_334, x_4, x_5, x_6, x_7, x_343); +if (lean_obj_tag(x_344) == 0) +{ +lean_object* x_345; uint8_t x_346; +x_345 = lean_ctor_get(x_344, 0); +lean_inc(x_345); +x_346 = lean_unbox(x_345); +lean_dec(x_345); +if (x_346 == 0) +{ +lean_object* x_347; lean_object* x_348; +x_347 = lean_ctor_get(x_344, 1); +lean_inc(x_347); +lean_dec(x_344); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_348 = l_Lean_Meta_addPPExplicitToExposeDiff(x_31, x_334, x_4, x_5, x_6, x_7, x_347); +if (lean_obj_tag(x_348) == 0) +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; +x_349 = lean_ctor_get(x_348, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_348, 1); +lean_inc(x_350); +lean_dec(x_348); +x_351 = lean_ctor_get(x_349, 0); +lean_inc(x_351); +x_352 = lean_ctor_get(x_349, 1); +lean_inc(x_352); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_353 = x_349; +} else { + lean_dec_ref(x_349); + x_353 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_351); +x_354 = lean_infer_type(x_351, x_4, x_5, x_6, x_7, x_350); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +lean_dec(x_354); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_352); +x_357 = lean_infer_type(x_352, x_4, x_5, x_6, x_7, x_356); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_358 = lean_ctor_get(x_357, 0); +lean_inc(x_358); +x_359 = lean_ctor_get(x_357, 1); +lean_inc(x_359); +lean_dec(x_357); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_360 = l_Lean_Meta_addPPExplicitToExposeDiff(x_355, x_358, x_4, x_5, x_6, x_7, x_359); +if (lean_obj_tag(x_360) == 0) +{ +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +x_361 = lean_ctor_get(x_360, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_360, 1); +lean_inc(x_362); +lean_dec(x_360); +x_363 = lean_ctor_get(x_361, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_361, 1); +lean_inc(x_364); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + x_365 = x_361; +} else { + lean_dec_ref(x_361); + x_365 = lean_box(0); +} +x_366 = lean_array_get_size(x_1); +x_367 = lean_unsigned_to_nat(0u); +x_368 = lean_nat_dec_lt(x_367, x_366); +lean_dec(x_366); +x_369 = l_Lean_MessageData_ofExpr(x_351); +x_370 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_365)) { + x_371 = lean_alloc_ctor(7, 2, 0); +} else { + x_371 = x_365; + lean_ctor_set_tag(x_371, 7); +} +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_369); +x_372 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_353)) { + x_373 = lean_alloc_ctor(7, 2, 0); +} else { + x_373 = x_353; + lean_ctor_set_tag(x_373, 7); +} +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_372); +x_374 = l_Lean_MessageData_ofExpr(x_363); +if (lean_is_scalar(x_336)) { + x_375 = lean_alloc_ctor(7, 2, 0); +} else { + x_375 = x_336; + lean_ctor_set_tag(x_375, 7); +} +lean_ctor_set(x_375, 0, x_373); +lean_ctor_set(x_375, 1, x_374); +x_376 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_376, 0, x_375); +lean_ctor_set(x_376, 1, x_370); +x_377 = l_Lean_indentD(x_376); +x_378 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_377); +lean_ctor_set(x_33, 0, x_378); +x_379 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_379); +lean_ctor_set(x_23, 0, x_33); +x_380 = l_Lean_MessageData_ofExpr(x_352); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_380); +lean_ctor_set(x_22, 0, x_370); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_372); +lean_ctor_set(x_17, 0, x_22); +x_381 = l_Lean_MessageData_ofExpr(x_364); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_381); +lean_ctor_set(x_12, 0, x_17); +x_382 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_382, 0, x_12); +lean_ctor_set(x_382, 1, x_370); +x_383 = l_Lean_indentD(x_382); +x_384 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_384, 0, x_23); +lean_ctor_set(x_384, 1, x_383); +x_385 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_385, 0, x_384); +lean_ctor_set(x_385, 1, x_370); +if (x_368 == 0) +{ +lean_object* x_386; lean_object* x_387; lean_object* x_388; uint8_t x_389; lean_object* x_390; lean_object* x_391; uint8_t x_392; lean_object* x_393; lean_object* x_394; +x_386 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_387 = l_outOfBounds___rarg(x_386); +x_388 = lean_ctor_get(x_387, 1); +lean_inc(x_388); +lean_dec(x_387); +x_389 = 2; +lean_inc(x_6); +x_390 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_388, x_385, x_389, x_4, x_5, x_6, x_7, x_362); +lean_dec(x_388); +x_391 = lean_ctor_get(x_390, 1); +lean_inc(x_391); +lean_dec(x_390); +x_392 = 1; +x_393 = lean_box(0); +x_394 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_335, x_42, x_1, x_392, x_393, x_4, x_5, x_6, x_7, x_391); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; uint8_t x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; +x_395 = lean_array_fget(x_1, x_367); +x_396 = lean_ctor_get(x_395, 1); +lean_inc(x_396); +lean_dec(x_395); +x_397 = 2; +lean_inc(x_6); +x_398 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_396, x_385, x_397, x_4, x_5, x_6, x_7, x_362); +lean_dec(x_396); +x_399 = lean_ctor_get(x_398, 1); +lean_inc(x_399); +lean_dec(x_398); +x_400 = 1; +x_401 = lean_box(0); +x_402 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_335, x_42, x_1, x_400, x_401, x_4, x_5, x_6, x_7, x_399); +return x_402; +} +} +else +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_403 = lean_ctor_get(x_360, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_360, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_360)) { + lean_ctor_release(x_360, 0); + lean_ctor_release(x_360, 1); + x_405 = x_360; +} else { + lean_dec_ref(x_360); + x_405 = lean_box(0); +} +if (lean_is_scalar(x_405)) { + x_406 = lean_alloc_ctor(1, 2, 0); +} else { + x_406 = x_405; +} +lean_ctor_set(x_406, 0, x_403); +lean_ctor_set(x_406, 1, x_404); +return x_406; +} +} +else +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +lean_dec(x_355); +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_407 = lean_ctor_get(x_357, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_357, 1); +lean_inc(x_408); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_409 = x_357; +} else { + lean_dec_ref(x_357); + x_409 = lean_box(0); +} +if (lean_is_scalar(x_409)) { + x_410 = lean_alloc_ctor(1, 2, 0); +} else { + x_410 = x_409; +} +lean_ctor_set(x_410, 0, x_407); +lean_ctor_set(x_410, 1, x_408); +return x_410; +} +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_411 = lean_ctor_get(x_354, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_354, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_354)) { + lean_ctor_release(x_354, 0); + lean_ctor_release(x_354, 1); + x_413 = x_354; +} else { + lean_dec_ref(x_354); + x_413 = lean_box(0); +} +if (lean_is_scalar(x_413)) { + x_414 = lean_alloc_ctor(1, 2, 0); +} else { + x_414 = x_413; +} +lean_ctor_set(x_414, 0, x_411); +lean_ctor_set(x_414, 1, x_412); +return x_414; +} +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_415 = lean_ctor_get(x_348, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_348, 1); +lean_inc(x_416); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + lean_ctor_release(x_348, 1); + x_417 = x_348; +} else { + lean_dec_ref(x_348); + x_417 = lean_box(0); +} +if (lean_is_scalar(x_417)) { + x_418 = lean_alloc_ctor(1, 2, 0); +} else { + x_418 = x_417; +} +lean_ctor_set(x_418, 0, x_415); +lean_ctor_set(x_418, 1, x_416); +return x_418; +} +} +else +{ +lean_object* x_419; uint8_t x_420; lean_object* x_421; lean_object* x_422; +lean_dec(x_336); +lean_dec(x_334); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +x_419 = lean_ctor_get(x_344, 1); +lean_inc(x_419); +lean_dec(x_344); +x_420 = 0; +x_421 = lean_box(0); +x_422 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_335, x_42, x_1, x_420, x_421, x_4, x_5, x_6, x_7, x_419); +return x_422; +} +} +else +{ +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_334); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_423 = lean_ctor_get(x_344, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_344, 1); +lean_inc(x_424); +if (lean_is_exclusive(x_344)) { + lean_ctor_release(x_344, 0); + lean_ctor_release(x_344, 1); + x_425 = x_344; +} else { + lean_dec_ref(x_344); + x_425 = lean_box(0); +} +if (lean_is_scalar(x_425)) { + x_426 = lean_alloc_ctor(1, 2, 0); +} else { + x_426 = x_425; +} +lean_ctor_set(x_426, 0, x_423); +lean_ctor_set(x_426, 1, x_424); +return x_426; +} +} +} +else +{ +lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +lean_dec(x_336); +lean_dec(x_335); +lean_dec(x_334); +lean_dec(x_42); +lean_free_object(x_33); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_dec(x_16); +lean_free_object(x_12); +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_427 = lean_ctor_get(x_337, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_337, 1); +lean_inc(x_428); +if (lean_is_exclusive(x_337)) { + lean_ctor_release(x_337, 0); + lean_ctor_release(x_337, 1); + x_429 = x_337; +} else { + lean_dec_ref(x_337); + x_429 = lean_box(0); +} +if (lean_is_scalar(x_429)) { + x_430 = lean_alloc_ctor(1, 2, 0); +} else { + x_430 = x_429; +} +lean_ctor_set(x_430, 0, x_427); +lean_ctor_set(x_430, 1, x_428); +return x_430; +} +} +} +else +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_431 = lean_ctor_get(x_33, 1); +lean_inc(x_431); lean_dec(x_33); -x_277 = lean_ctor_get(x_34, 0); -lean_inc(x_277); +x_432 = lean_ctor_get(x_34, 0); +lean_inc(x_432); lean_dec(x_34); lean_inc(x_3); lean_inc(x_16); lean_inc(x_2); -x_278 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); -lean_closure_set(x_278, 0, x_2); -lean_closure_set(x_278, 1, x_16); -lean_closure_set(x_278, 2, x_3); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -x_280 = lean_ctor_get(x_277, 0); -lean_inc(x_280); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_281 = x_277; -} else { - lean_dec_ref(x_277); - x_281 = lean_box(0); -} -x_282 = lean_ctor_get(x_279, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_279, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_284 = x_279; -} else { - lean_dec_ref(x_279); - x_284 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_285 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_280, x_4, x_5, x_6, x_7, x_276); -if (lean_obj_tag(x_285) == 0) -{ -lean_object* x_286; uint8_t x_287; -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -x_287 = lean_unbox(x_286); -lean_dec(x_286); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_284); -lean_dec(x_283); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_278); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_288 = lean_ctor_get(x_285, 1); -lean_inc(x_288); -lean_dec(x_285); -x_289 = lean_box(0); -x_290 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_289, x_4, x_5, x_6, x_7, x_288); -return x_290; -} -else -{ -lean_object* x_291; lean_object* x_292; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_2); -x_291 = lean_ctor_get(x_285, 1); -lean_inc(x_291); -lean_dec(x_285); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_282); -lean_inc(x_31); -x_292 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_282, x_4, x_5, x_6, x_7, x_291); -if (lean_obj_tag(x_292) == 0) -{ -lean_object* x_293; uint8_t x_294; -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_unbox(x_293); -lean_dec(x_293); -if (x_294 == 0) -{ -lean_object* x_295; lean_object* x_296; -x_295 = lean_ctor_get(x_292, 1); -lean_inc(x_295); -lean_dec(x_292); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_31); -x_296 = lean_infer_type(x_31, x_4, x_5, x_6, x_7, x_295); -if (lean_obj_tag(x_296) == 0) -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_296, 1); -lean_inc(x_298); -lean_dec(x_296); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_282); -x_299 = lean_infer_type(x_282, x_4, x_5, x_6, x_7, x_298); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -x_302 = lean_array_get_size(x_1); -x_303 = lean_unsigned_to_nat(0u); -x_304 = lean_nat_dec_lt(x_303, x_302); -lean_dec(x_302); -x_305 = l_Lean_MessageData_ofExpr(x_31); -x_306 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_284)) { - x_307 = lean_alloc_ctor(7, 2, 0); -} else { - x_307 = x_284; - lean_ctor_set_tag(x_307, 7); -} -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_305); -x_308 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -if (lean_is_scalar(x_281)) { - x_309 = lean_alloc_ctor(7, 2, 0); -} else { - x_309 = x_281; - lean_ctor_set_tag(x_309, 7); -} -lean_ctor_set(x_309, 0, x_307); -lean_ctor_set(x_309, 1, x_308); -x_310 = l_Lean_MessageData_ofExpr(x_297); -x_311 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_311, 0, x_309); -lean_ctor_set(x_311, 1, x_310); -lean_ctor_set_tag(x_23, 7); -lean_ctor_set(x_23, 1, x_306); -lean_ctor_set(x_23, 0, x_311); -x_312 = l_Lean_indentD(x_23); -x_313 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_312); -lean_ctor_set(x_22, 0, x_313); -x_314 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_314); -lean_ctor_set(x_17, 0, x_22); -x_315 = l_Lean_MessageData_ofExpr(x_282); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_315); -lean_ctor_set(x_12, 0, x_306); -x_316 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_316, 0, x_12); -lean_ctor_set(x_316, 1, x_308); -x_317 = l_Lean_MessageData_ofExpr(x_300); -x_318 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set(x_318, 1, x_317); -x_319 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_306); -x_320 = l_Lean_indentD(x_319); -x_321 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_321, 0, x_17); -lean_ctor_set(x_321, 1, x_320); -x_322 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_306); -if (x_304 == 0) -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; lean_object* x_330; lean_object* x_331; -x_323 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_324 = l_outOfBounds___rarg(x_323); -x_325 = lean_ctor_get(x_324, 1); -lean_inc(x_325); -lean_dec(x_324); -x_326 = 2; -lean_inc(x_6); -x_327 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_325, x_322, x_326, x_4, x_5, x_6, x_7, x_301); -lean_dec(x_325); -x_328 = lean_ctor_get(x_327, 1); -lean_inc(x_328); -lean_dec(x_327); -x_329 = 1; -x_330 = lean_box(0); -x_331 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_283, x_278, x_1, x_329, x_330, x_4, x_5, x_6, x_7, x_328); -return x_331; -} -else -{ -lean_object* x_332; lean_object* x_333; uint8_t x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; lean_object* x_338; lean_object* x_339; -x_332 = lean_array_fget(x_1, x_303); -x_333 = lean_ctor_get(x_332, 1); -lean_inc(x_333); -lean_dec(x_332); -x_334 = 2; -lean_inc(x_6); -x_335 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_333, x_322, x_334, x_4, x_5, x_6, x_7, x_301); -lean_dec(x_333); -x_336 = lean_ctor_get(x_335, 1); -lean_inc(x_336); -lean_dec(x_335); -x_337 = 1; -x_338 = lean_box(0); -x_339 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_283, x_278, x_1, x_337, x_338, x_4, x_5, x_6, x_7, x_336); -return x_339; -} -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; -lean_dec(x_297); -lean_dec(x_284); -lean_dec(x_283); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_278); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_340 = lean_ctor_get(x_299, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_299, 1); -lean_inc(x_341); -if (lean_is_exclusive(x_299)) { - lean_ctor_release(x_299, 0); - lean_ctor_release(x_299, 1); - x_342 = x_299; -} else { - lean_dec_ref(x_299); - x_342 = lean_box(0); -} -if (lean_is_scalar(x_342)) { - x_343 = lean_alloc_ctor(1, 2, 0); -} else { - x_343 = x_342; -} -lean_ctor_set(x_343, 0, x_340); -lean_ctor_set(x_343, 1, x_341); -return x_343; -} -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -lean_dec(x_284); -lean_dec(x_283); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_278); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_344 = lean_ctor_get(x_296, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_296, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_296)) { - lean_ctor_release(x_296, 0); - lean_ctor_release(x_296, 1); - x_346 = x_296; -} else { - lean_dec_ref(x_296); - x_346 = lean_box(0); -} -if (lean_is_scalar(x_346)) { - x_347 = lean_alloc_ctor(1, 2, 0); -} else { - x_347 = x_346; -} -lean_ctor_set(x_347, 0, x_344); -lean_ctor_set(x_347, 1, x_345); -return x_347; -} -} -else -{ -lean_object* x_348; uint8_t x_349; lean_object* x_350; lean_object* x_351; -lean_dec(x_284); -lean_dec(x_282); -lean_dec(x_281); -lean_free_object(x_23); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_348 = lean_ctor_get(x_292, 1); -lean_inc(x_348); -lean_dec(x_292); -x_349 = 0; -x_350 = lean_box(0); -x_351 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_283, x_278, x_1, x_349, x_350, x_4, x_5, x_6, x_7, x_348); -return x_351; -} -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; -lean_dec(x_284); -lean_dec(x_283); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_278); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_352 = lean_ctor_get(x_292, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_292, 1); -lean_inc(x_353); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_354 = x_292; -} else { - lean_dec_ref(x_292); - x_354 = lean_box(0); -} -if (lean_is_scalar(x_354)) { - x_355 = lean_alloc_ctor(1, 2, 0); -} else { - x_355 = x_354; -} -lean_ctor_set(x_355, 0, x_352); -lean_ctor_set(x_355, 1, x_353); -return x_355; -} -} -} -else -{ -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -lean_dec(x_284); -lean_dec(x_283); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_278); -lean_free_object(x_23); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_22); -lean_free_object(x_17); -lean_dec(x_16); -lean_free_object(x_12); -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_356 = lean_ctor_get(x_285, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_285, 1); -lean_inc(x_357); -if (lean_is_exclusive(x_285)) { - lean_ctor_release(x_285, 0); - lean_ctor_release(x_285, 1); - x_358 = x_285; -} else { - lean_dec_ref(x_285); - x_358 = lean_box(0); -} -if (lean_is_scalar(x_358)) { - x_359 = lean_alloc_ctor(1, 2, 0); -} else { - x_359 = x_358; -} -lean_ctor_set(x_359, 0, x_356); -lean_ctor_set(x_359, 1, x_357); -return x_359; -} -} -} -} -else -{ -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_360 = lean_ctor_get(x_23, 0); -x_361 = lean_ctor_get(x_23, 1); -lean_inc(x_361); -lean_inc(x_360); -lean_dec(x_23); -x_362 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_25); -x_363 = lean_ctor_get(x_362, 0); -lean_inc(x_363); -if (lean_obj_tag(x_363) == 0) -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; -lean_dec(x_361); -lean_dec(x_360); -lean_free_object(x_22); -lean_dec(x_28); -lean_free_object(x_17); -lean_free_object(x_12); -x_364 = lean_ctor_get(x_362, 1); -lean_inc(x_364); -lean_dec(x_362); -x_365 = lean_box(0); -x_366 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_365, x_4, x_5, x_6, x_7, x_364); -return x_366; -} -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; -x_367 = lean_ctor_get(x_362, 1); -lean_inc(x_367); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - x_368 = x_362; -} else { - lean_dec_ref(x_362); - x_368 = lean_box(0); -} -x_369 = lean_ctor_get(x_363, 0); -lean_inc(x_369); -lean_dec(x_363); -lean_inc(x_3); -lean_inc(x_16); -lean_inc(x_2); -x_370 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); -lean_closure_set(x_370, 0, x_2); -lean_closure_set(x_370, 1, x_16); -lean_closure_set(x_370, 2, x_3); -x_371 = lean_ctor_get(x_369, 1); -lean_inc(x_371); -x_372 = lean_ctor_get(x_369, 0); -lean_inc(x_372); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - lean_ctor_release(x_369, 1); - x_373 = x_369; -} else { - lean_dec_ref(x_369); - x_373 = lean_box(0); -} -x_374 = lean_ctor_get(x_371, 0); -lean_inc(x_374); -x_375 = lean_ctor_get(x_371, 1); -lean_inc(x_375); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - x_376 = x_371; -} else { - lean_dec_ref(x_371); - x_376 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_377 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_372, x_4, x_5, x_6, x_7, x_367); -if (lean_obj_tag(x_377) == 0) -{ -lean_object* x_378; uint8_t x_379; -x_378 = lean_ctor_get(x_377, 0); -lean_inc(x_378); -x_379 = lean_unbox(x_378); -lean_dec(x_378); -if (x_379 == 0) -{ -lean_object* x_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_361); -lean_dec(x_360); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_380 = lean_ctor_get(x_377, 1); -lean_inc(x_380); -lean_dec(x_377); -x_381 = lean_box(0); -x_382 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_381, x_4, x_5, x_6, x_7, x_380); -return x_382; -} -else -{ -lean_object* x_383; lean_object* x_384; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_2); -x_383 = lean_ctor_get(x_377, 1); -lean_inc(x_383); -lean_dec(x_377); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_374); -lean_inc(x_360); -x_384 = l_Lean_Meta_isExprDefEqGuarded(x_360, x_374, x_4, x_5, x_6, x_7, x_383); -if (lean_obj_tag(x_384) == 0) -{ -lean_object* x_385; uint8_t x_386; -x_385 = lean_ctor_get(x_384, 0); -lean_inc(x_385); -x_386 = lean_unbox(x_385); -lean_dec(x_385); -if (x_386 == 0) -{ -lean_object* x_387; lean_object* x_388; -x_387 = lean_ctor_get(x_384, 1); -lean_inc(x_387); -lean_dec(x_384); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_360); -x_388 = lean_infer_type(x_360, x_4, x_5, x_6, x_7, x_387); -if (lean_obj_tag(x_388) == 0) -{ -lean_object* x_389; lean_object* x_390; lean_object* x_391; -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -lean_dec(x_388); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_374); -x_391 = lean_infer_type(x_374, x_4, x_5, x_6, x_7, x_390); -if (lean_obj_tag(x_391) == 0) -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_392 = lean_ctor_get(x_391, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_391, 1); -lean_inc(x_393); -lean_dec(x_391); -x_394 = lean_array_get_size(x_1); -x_395 = lean_unsigned_to_nat(0u); -x_396 = lean_nat_dec_lt(x_395, x_394); -lean_dec(x_394); -x_397 = l_Lean_MessageData_ofExpr(x_360); -x_398 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_376)) { - x_399 = lean_alloc_ctor(7, 2, 0); -} else { - x_399 = x_376; - lean_ctor_set_tag(x_399, 7); -} -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_397); -x_400 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -if (lean_is_scalar(x_373)) { - x_401 = lean_alloc_ctor(7, 2, 0); -} else { - x_401 = x_373; - lean_ctor_set_tag(x_401, 7); -} -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_400); -x_402 = l_Lean_MessageData_ofExpr(x_389); -if (lean_is_scalar(x_368)) { - x_403 = lean_alloc_ctor(7, 2, 0); -} else { - x_403 = x_368; - lean_ctor_set_tag(x_403, 7); -} -lean_ctor_set(x_403, 0, x_401); -lean_ctor_set(x_403, 1, x_402); -x_404 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_398); -x_405 = l_Lean_indentD(x_404); -x_406 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_405); -lean_ctor_set(x_22, 0, x_406); -x_407 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_407); -lean_ctor_set(x_17, 0, x_22); -x_408 = l_Lean_MessageData_ofExpr(x_374); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_408); -lean_ctor_set(x_12, 0, x_398); -x_409 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_409, 0, x_12); -lean_ctor_set(x_409, 1, x_400); -x_410 = l_Lean_MessageData_ofExpr(x_392); -x_411 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_411, 0, x_409); -lean_ctor_set(x_411, 1, x_410); -x_412 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_398); -x_413 = l_Lean_indentD(x_412); -x_414 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_414, 0, x_17); -lean_ctor_set(x_414, 1, x_413); -x_415 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_415, 0, x_414); -lean_ctor_set(x_415, 1, x_398); -if (x_396 == 0) -{ -lean_object* x_416; lean_object* x_417; lean_object* x_418; uint8_t x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; lean_object* x_424; -x_416 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_417 = l_outOfBounds___rarg(x_416); -x_418 = lean_ctor_get(x_417, 1); -lean_inc(x_418); -lean_dec(x_417); -x_419 = 2; -lean_inc(x_6); -x_420 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_418, x_415, x_419, x_4, x_5, x_6, x_7, x_393); -lean_dec(x_418); -x_421 = lean_ctor_get(x_420, 1); -lean_inc(x_421); -lean_dec(x_420); -x_422 = 1; -x_423 = lean_box(0); -x_424 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_361, x_375, x_370, x_1, x_422, x_423, x_4, x_5, x_6, x_7, x_421); -return x_424; -} -else -{ -lean_object* x_425; lean_object* x_426; uint8_t x_427; lean_object* x_428; lean_object* x_429; uint8_t x_430; lean_object* x_431; lean_object* x_432; -x_425 = lean_array_fget(x_1, x_395); -x_426 = lean_ctor_get(x_425, 1); -lean_inc(x_426); -lean_dec(x_425); -x_427 = 2; -lean_inc(x_6); -x_428 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_426, x_415, x_427, x_4, x_5, x_6, x_7, x_393); -lean_dec(x_426); -x_429 = lean_ctor_get(x_428, 1); -lean_inc(x_429); -lean_dec(x_428); -x_430 = 1; -x_431 = lean_box(0); -x_432 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_361, x_375, x_370, x_1, x_430, x_431, x_4, x_5, x_6, x_7, x_429); -return x_432; -} -} -else -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -lean_dec(x_389); -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_361); -lean_dec(x_360); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_433 = lean_ctor_get(x_391, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_391, 1); +x_433 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); +lean_closure_set(x_433, 0, x_2); +lean_closure_set(x_433, 1, x_16); +lean_closure_set(x_433, 2, x_3); +x_434 = lean_ctor_get(x_432, 1); lean_inc(x_434); -if (lean_is_exclusive(x_391)) { - lean_ctor_release(x_391, 0); - lean_ctor_release(x_391, 1); - x_435 = x_391; +x_435 = lean_ctor_get(x_432, 0); +lean_inc(x_435); +if (lean_is_exclusive(x_432)) { + lean_ctor_release(x_432, 0); + lean_ctor_release(x_432, 1); + x_436 = x_432; } else { - lean_dec_ref(x_391); - x_435 = lean_box(0); + lean_dec_ref(x_432); + x_436 = lean_box(0); } -if (lean_is_scalar(x_435)) { - x_436 = lean_alloc_ctor(1, 2, 0); -} else { - x_436 = x_435; -} -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; -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_361); -lean_dec(x_360); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_437 = lean_ctor_get(x_388, 0); +x_437 = lean_ctor_get(x_434, 0); lean_inc(x_437); -x_438 = lean_ctor_get(x_388, 1); +x_438 = lean_ctor_get(x_434, 1); lean_inc(x_438); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - x_439 = x_388; +if (lean_is_exclusive(x_434)) { + lean_ctor_release(x_434, 0); + lean_ctor_release(x_434, 1); + x_439 = x_434; } else { - lean_dec_ref(x_388); + lean_dec_ref(x_434); x_439 = lean_box(0); } -if (lean_is_scalar(x_439)) { - x_440 = lean_alloc_ctor(1, 2, 0); -} else { - x_440 = x_439; -} -lean_ctor_set(x_440, 0, x_437); -lean_ctor_set(x_440, 1, x_438); -return x_440; -} -} -else +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_440 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_435, x_4, x_5, x_6, x_7, x_431); +if (lean_obj_tag(x_440) == 0) { -lean_object* x_441; uint8_t x_442; lean_object* x_443; lean_object* x_444; -lean_dec(x_376); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_368); -lean_dec(x_360); -lean_free_object(x_22); -lean_free_object(x_17); -lean_free_object(x_12); -x_441 = lean_ctor_get(x_384, 1); +lean_object* x_441; uint8_t x_442; +x_441 = lean_ctor_get(x_440, 0); lean_inc(x_441); -lean_dec(x_384); -x_442 = 0; -x_443 = lean_box(0); -x_444 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_361, x_375, x_370, x_1, x_442, x_443, x_4, x_5, x_6, x_7, x_441); -return x_444; -} -} -else +x_442 = lean_unbox(x_441); +lean_dec(x_441); +if (x_442 == 0) { -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_361); -lean_dec(x_360); +lean_object* x_443; lean_object* x_444; lean_object* x_445; +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_437); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); lean_free_object(x_22); lean_free_object(x_17); lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_445 = lean_ctor_get(x_384, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_384, 1); -lean_inc(x_446); -if (lean_is_exclusive(x_384)) { - lean_ctor_release(x_384, 0); - lean_ctor_release(x_384, 1); - x_447 = x_384; -} else { - lean_dec_ref(x_384); - x_447 = lean_box(0); -} -if (lean_is_scalar(x_447)) { - x_448 = lean_alloc_ctor(1, 2, 0); -} else { - x_448 = x_447; -} -lean_ctor_set(x_448, 0, x_445); -lean_ctor_set(x_448, 1, x_446); -return x_448; -} -} +x_443 = lean_ctor_get(x_440, 1); +lean_inc(x_443); +lean_dec(x_440); +x_444 = lean_box(0); +x_445 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_444, x_4, x_5, x_6, x_7, x_443); +return x_445; } else { -lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; -lean_dec(x_376); -lean_dec(x_375); -lean_dec(x_374); -lean_dec(x_373); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_361); -lean_dec(x_360); -lean_free_object(x_22); -lean_free_object(x_17); +lean_object* x_446; lean_object* x_447; lean_dec(x_16); -lean_free_object(x_12); -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_449 = lean_ctor_get(x_377, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_377, 1); -lean_inc(x_450); -if (lean_is_exclusive(x_377)) { - lean_ctor_release(x_377, 0); - lean_ctor_release(x_377, 1); - x_451 = x_377; -} else { - lean_dec_ref(x_377); - x_451 = lean_box(0); -} -if (lean_is_scalar(x_451)) { - x_452 = lean_alloc_ctor(1, 2, 0); -} else { - x_452 = x_451; -} -lean_ctor_set(x_452, 0, x_449); -lean_ctor_set(x_452, 1, x_450); -return x_452; -} -} -} -} -else +x_446 = lean_ctor_get(x_440, 1); +lean_inc(x_446); +lean_dec(x_440); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_437); +lean_inc(x_31); +x_447 = l_Lean_Meta_isExprDefEqGuarded(x_31, x_437, x_4, x_5, x_6, x_7, x_446); +if (lean_obj_tag(x_447) == 0) { -lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_453 = lean_ctor_get(x_22, 0); +lean_object* x_448; uint8_t x_449; +x_448 = lean_ctor_get(x_447, 0); +lean_inc(x_448); +x_449 = lean_unbox(x_448); +lean_dec(x_448); +if (x_449 == 0) +{ +lean_object* x_450; lean_object* x_451; +x_450 = lean_ctor_get(x_447, 1); +lean_inc(x_450); +lean_dec(x_447); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_451 = l_Lean_Meta_addPPExplicitToExposeDiff(x_31, x_437, x_4, x_5, x_6, x_7, x_450); +if (lean_obj_tag(x_451) == 0) +{ +lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +x_452 = lean_ctor_get(x_451, 0); +lean_inc(x_452); +x_453 = lean_ctor_get(x_451, 1); lean_inc(x_453); -lean_dec(x_22); -x_454 = lean_ctor_get(x_23, 0); +lean_dec(x_451); +x_454 = lean_ctor_get(x_452, 0); lean_inc(x_454); -x_455 = lean_ctor_get(x_23, 1); +x_455 = lean_ctor_get(x_452, 1); lean_inc(x_455); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_456 = x_23; +if (lean_is_exclusive(x_452)) { + lean_ctor_release(x_452, 0); + lean_ctor_release(x_452, 1); + x_456 = x_452; } else { - lean_dec_ref(x_23); + lean_dec_ref(x_452); x_456 = lean_box(0); } -x_457 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_25); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_454); +x_457 = lean_infer_type(x_454, x_4, x_5, x_6, x_7, x_453); +if (lean_obj_tag(x_457) == 0) +{ +lean_object* x_458; lean_object* x_459; lean_object* x_460; x_458 = lean_ctor_get(x_457, 0); lean_inc(x_458); -if (lean_obj_tag(x_458) == 0) -{ -lean_object* x_459; lean_object* x_460; lean_object* x_461; -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_dec(x_453); -lean_free_object(x_17); -lean_free_object(x_12); x_459 = lean_ctor_get(x_457, 1); lean_inc(x_459); lean_dec(x_457); -x_460 = lean_box(0); -x_461 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_460, x_4, x_5, x_6, x_7, x_459); -return x_461; -} -else +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_455); +x_460 = lean_infer_type(x_455, x_4, x_5, x_6, x_7, x_459); +if (lean_obj_tag(x_460) == 0) { -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; -x_462 = lean_ctor_get(x_457, 1); +lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +x_462 = lean_ctor_get(x_460, 1); lean_inc(x_462); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - x_463 = x_457; -} else { - lean_dec_ref(x_457); - x_463 = lean_box(0); -} -x_464 = lean_ctor_get(x_458, 0); +lean_dec(x_460); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_463 = l_Lean_Meta_addPPExplicitToExposeDiff(x_458, x_461, x_4, x_5, x_6, x_7, x_462); +if (lean_obj_tag(x_463) == 0) +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_464 = lean_ctor_get(x_463, 0); lean_inc(x_464); -lean_dec(x_458); -lean_inc(x_3); -lean_inc(x_16); -lean_inc(x_2); -x_465 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); -lean_closure_set(x_465, 0, x_2); -lean_closure_set(x_465, 1, x_16); -lean_closure_set(x_465, 2, x_3); -x_466 = lean_ctor_get(x_464, 1); +x_465 = lean_ctor_get(x_463, 1); +lean_inc(x_465); +lean_dec(x_463); +x_466 = lean_ctor_get(x_464, 0); lean_inc(x_466); -x_467 = lean_ctor_get(x_464, 0); +x_467 = lean_ctor_get(x_464, 1); lean_inc(x_467); if (lean_is_exclusive(x_464)) { lean_ctor_release(x_464, 0); @@ -22049,733 +22462,825 @@ if (lean_is_exclusive(x_464)) { lean_dec_ref(x_464); x_468 = lean_box(0); } -x_469 = lean_ctor_get(x_466, 0); -lean_inc(x_469); -x_470 = lean_ctor_get(x_466, 1); -lean_inc(x_470); -if (lean_is_exclusive(x_466)) { - lean_ctor_release(x_466, 0); - lean_ctor_release(x_466, 1); - x_471 = x_466; -} else { - lean_dec_ref(x_466); - x_471 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_472 = l_Lean_Meta_isExprDefEqGuarded(x_453, x_467, x_4, x_5, x_6, x_7, x_462); -if (lean_obj_tag(x_472) == 0) -{ -lean_object* x_473; uint8_t x_474; -x_473 = lean_ctor_get(x_472, 0); -lean_inc(x_473); -x_474 = lean_unbox(x_473); -lean_dec(x_473); -if (x_474 == 0) -{ -lean_object* x_475; lean_object* x_476; lean_object* x_477; -lean_dec(x_471); -lean_dec(x_470); +x_469 = lean_array_get_size(x_1); +x_470 = lean_unsigned_to_nat(0u); +x_471 = lean_nat_dec_lt(x_470, x_469); lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_free_object(x_17); -lean_free_object(x_12); -x_475 = lean_ctor_get(x_472, 1); -lean_inc(x_475); -lean_dec(x_472); -x_476 = lean_box(0); -x_477 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_476, x_4, x_5, x_6, x_7, x_475); -return x_477; +x_472 = l_Lean_MessageData_ofExpr(x_454); +x_473 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_468)) { + x_474 = lean_alloc_ctor(7, 2, 0); +} else { + x_474 = x_468; + lean_ctor_set_tag(x_474, 7); +} +lean_ctor_set(x_474, 0, x_473); +lean_ctor_set(x_474, 1, x_472); +x_475 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_456)) { + x_476 = lean_alloc_ctor(7, 2, 0); +} else { + x_476 = x_456; + lean_ctor_set_tag(x_476, 7); +} +lean_ctor_set(x_476, 0, x_474); +lean_ctor_set(x_476, 1, x_475); +x_477 = l_Lean_MessageData_ofExpr(x_466); +if (lean_is_scalar(x_439)) { + x_478 = lean_alloc_ctor(7, 2, 0); +} else { + x_478 = x_439; + lean_ctor_set_tag(x_478, 7); +} +lean_ctor_set(x_478, 0, x_476); +lean_ctor_set(x_478, 1, x_477); +if (lean_is_scalar(x_436)) { + x_479 = lean_alloc_ctor(7, 2, 0); +} else { + x_479 = x_436; + lean_ctor_set_tag(x_479, 7); +} +lean_ctor_set(x_479, 0, x_478); +lean_ctor_set(x_479, 1, x_473); +x_480 = l_Lean_indentD(x_479); +x_481 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +x_482 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_482, 0, x_481); +lean_ctor_set(x_482, 1, x_480); +x_483 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_483); +lean_ctor_set(x_23, 0, x_482); +x_484 = l_Lean_MessageData_ofExpr(x_455); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_484); +lean_ctor_set(x_22, 0, x_473); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_475); +lean_ctor_set(x_17, 0, x_22); +x_485 = l_Lean_MessageData_ofExpr(x_467); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_485); +lean_ctor_set(x_12, 0, x_17); +x_486 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_486, 0, x_12); +lean_ctor_set(x_486, 1, x_473); +x_487 = l_Lean_indentD(x_486); +x_488 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_488, 0, x_23); +lean_ctor_set(x_488, 1, x_487); +x_489 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_489, 0, x_488); +lean_ctor_set(x_489, 1, x_473); +if (x_471 == 0) +{ +lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; +x_490 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_491 = l_outOfBounds___rarg(x_490); +x_492 = lean_ctor_get(x_491, 1); +lean_inc(x_492); +lean_dec(x_491); +x_493 = 2; +lean_inc(x_6); +x_494 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_492, x_489, x_493, x_4, x_5, x_6, x_7, x_465); +lean_dec(x_492); +x_495 = lean_ctor_get(x_494, 1); +lean_inc(x_495); +lean_dec(x_494); +x_496 = 1; +x_497 = lean_box(0); +x_498 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_438, x_433, x_1, x_496, x_497, x_4, x_5, x_6, x_7, x_495); +return x_498; } else { -lean_object* x_478; lean_object* x_479; +lean_object* x_499; lean_object* x_500; uint8_t x_501; lean_object* x_502; lean_object* x_503; uint8_t x_504; lean_object* x_505; lean_object* x_506; +x_499 = lean_array_fget(x_1, x_470); +x_500 = lean_ctor_get(x_499, 1); +lean_inc(x_500); +lean_dec(x_499); +x_501 = 2; +lean_inc(x_6); +x_502 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_500, x_489, x_501, x_4, x_5, x_6, x_7, x_465); +lean_dec(x_500); +x_503 = lean_ctor_get(x_502, 1); +lean_inc(x_503); +lean_dec(x_502); +x_504 = 1; +x_505 = lean_box(0); +x_506 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_438, x_433, x_1, x_504, x_505, x_4, x_5, x_6, x_7, x_503); +return x_506; +} +} +else +{ +lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +lean_dec(x_456); +lean_dec(x_455); +lean_dec(x_454); +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_507 = lean_ctor_get(x_463, 0); +lean_inc(x_507); +x_508 = lean_ctor_get(x_463, 1); +lean_inc(x_508); +if (lean_is_exclusive(x_463)) { + lean_ctor_release(x_463, 0); + lean_ctor_release(x_463, 1); + x_509 = x_463; +} else { + lean_dec_ref(x_463); + x_509 = lean_box(0); +} +if (lean_is_scalar(x_509)) { + x_510 = lean_alloc_ctor(1, 2, 0); +} else { + x_510 = x_509; +} +lean_ctor_set(x_510, 0, x_507); +lean_ctor_set(x_510, 1, x_508); +return x_510; +} +} +else +{ +lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; +lean_dec(x_458); +lean_dec(x_456); +lean_dec(x_455); +lean_dec(x_454); +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_511 = lean_ctor_get(x_460, 0); +lean_inc(x_511); +x_512 = lean_ctor_get(x_460, 1); +lean_inc(x_512); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + x_513 = x_460; +} else { + lean_dec_ref(x_460); + x_513 = lean_box(0); +} +if (lean_is_scalar(x_513)) { + x_514 = lean_alloc_ctor(1, 2, 0); +} else { + x_514 = x_513; +} +lean_ctor_set(x_514, 0, x_511); +lean_ctor_set(x_514, 1, x_512); +return x_514; +} +} +else +{ +lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; +lean_dec(x_456); +lean_dec(x_455); +lean_dec(x_454); +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_515 = lean_ctor_get(x_457, 0); +lean_inc(x_515); +x_516 = lean_ctor_get(x_457, 1); +lean_inc(x_516); +if (lean_is_exclusive(x_457)) { + lean_ctor_release(x_457, 0); + lean_ctor_release(x_457, 1); + x_517 = x_457; +} else { + lean_dec_ref(x_457); + x_517 = lean_box(0); +} +if (lean_is_scalar(x_517)) { + x_518 = lean_alloc_ctor(1, 2, 0); +} else { + x_518 = x_517; +} +lean_ctor_set(x_518, 0, x_515); +lean_ctor_set(x_518, 1, x_516); +return x_518; +} +} +else +{ +lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_519 = lean_ctor_get(x_451, 0); +lean_inc(x_519); +x_520 = lean_ctor_get(x_451, 1); +lean_inc(x_520); +if (lean_is_exclusive(x_451)) { + lean_ctor_release(x_451, 0); + lean_ctor_release(x_451, 1); + x_521 = x_451; +} else { + lean_dec_ref(x_451); + x_521 = lean_box(0); +} +if (lean_is_scalar(x_521)) { + x_522 = lean_alloc_ctor(1, 2, 0); +} else { + x_522 = x_521; +} +lean_ctor_set(x_522, 0, x_519); +lean_ctor_set(x_522, 1, x_520); +return x_522; +} +} +else +{ +lean_object* x_523; uint8_t x_524; lean_object* x_525; lean_object* x_526; +lean_dec(x_439); +lean_dec(x_437); +lean_dec(x_436); +lean_free_object(x_23); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +x_523 = lean_ctor_get(x_447, 1); +lean_inc(x_523); +lean_dec(x_447); +x_524 = 0; +x_525 = lean_box(0); +x_526 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_32, x_438, x_433, x_1, x_524, x_525, x_4, x_5, x_6, x_7, x_523); +return x_526; +} +} +else +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_437); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_527 = lean_ctor_get(x_447, 0); +lean_inc(x_527); +x_528 = lean_ctor_get(x_447, 1); +lean_inc(x_528); +if (lean_is_exclusive(x_447)) { + lean_ctor_release(x_447, 0); + lean_ctor_release(x_447, 1); + x_529 = x_447; +} else { + lean_dec_ref(x_447); + x_529 = lean_box(0); +} +if (lean_is_scalar(x_529)) { + x_530 = lean_alloc_ctor(1, 2, 0); +} else { + x_530 = x_529; +} +lean_ctor_set(x_530, 0, x_527); +lean_ctor_set(x_530, 1, x_528); +return x_530; +} +} +} +else +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; +lean_dec(x_439); +lean_dec(x_438); +lean_dec(x_437); +lean_dec(x_436); +lean_dec(x_433); +lean_free_object(x_23); +lean_dec(x_32); +lean_dec(x_31); +lean_free_object(x_22); +lean_free_object(x_17); lean_dec(x_16); +lean_free_object(x_12); +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_478 = lean_ctor_get(x_472, 1); -lean_inc(x_478); -lean_dec(x_472); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_469); -lean_inc(x_454); -x_479 = l_Lean_Meta_isExprDefEqGuarded(x_454, x_469, x_4, x_5, x_6, x_7, x_478); -if (lean_obj_tag(x_479) == 0) -{ -lean_object* x_480; uint8_t x_481; -x_480 = lean_ctor_get(x_479, 0); -lean_inc(x_480); -x_481 = lean_unbox(x_480); -lean_dec(x_480); -if (x_481 == 0) -{ -lean_object* x_482; lean_object* x_483; -x_482 = lean_ctor_get(x_479, 1); -lean_inc(x_482); -lean_dec(x_479); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_454); -x_483 = lean_infer_type(x_454, x_4, x_5, x_6, x_7, x_482); -if (lean_obj_tag(x_483) == 0) -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_484 = lean_ctor_get(x_483, 0); -lean_inc(x_484); -x_485 = lean_ctor_get(x_483, 1); -lean_inc(x_485); -lean_dec(x_483); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_469); -x_486 = lean_infer_type(x_469, x_4, x_5, x_6, x_7, x_485); -if (lean_obj_tag(x_486) == 0) -{ -lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; uint8_t x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_487 = lean_ctor_get(x_486, 0); -lean_inc(x_487); -x_488 = lean_ctor_get(x_486, 1); -lean_inc(x_488); -lean_dec(x_486); -x_489 = lean_array_get_size(x_1); -x_490 = lean_unsigned_to_nat(0u); -x_491 = lean_nat_dec_lt(x_490, x_489); -lean_dec(x_489); -x_492 = l_Lean_MessageData_ofExpr(x_454); -x_493 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_471)) { - x_494 = lean_alloc_ctor(7, 2, 0); +x_531 = lean_ctor_get(x_440, 0); +lean_inc(x_531); +x_532 = lean_ctor_get(x_440, 1); +lean_inc(x_532); +if (lean_is_exclusive(x_440)) { + lean_ctor_release(x_440, 0); + lean_ctor_release(x_440, 1); + x_533 = x_440; } else { - x_494 = x_471; - lean_ctor_set_tag(x_494, 7); + lean_dec_ref(x_440); + x_533 = lean_box(0); } -lean_ctor_set(x_494, 0, x_493); -lean_ctor_set(x_494, 1, x_492); -x_495 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -if (lean_is_scalar(x_468)) { - x_496 = lean_alloc_ctor(7, 2, 0); +if (lean_is_scalar(x_533)) { + x_534 = lean_alloc_ctor(1, 2, 0); } else { - x_496 = x_468; - lean_ctor_set_tag(x_496, 7); + x_534 = x_533; } -lean_ctor_set(x_496, 0, x_494); -lean_ctor_set(x_496, 1, x_495); -x_497 = l_Lean_MessageData_ofExpr(x_484); -if (lean_is_scalar(x_463)) { - x_498 = lean_alloc_ctor(7, 2, 0); -} else { - x_498 = x_463; - lean_ctor_set_tag(x_498, 7); +lean_ctor_set(x_534, 0, x_531); +lean_ctor_set(x_534, 1, x_532); +return x_534; } -lean_ctor_set(x_498, 0, x_496); -lean_ctor_set(x_498, 1, x_497); -if (lean_is_scalar(x_456)) { - x_499 = lean_alloc_ctor(7, 2, 0); -} else { - x_499 = x_456; - lean_ctor_set_tag(x_499, 7); } -lean_ctor_set(x_499, 0, x_498); -lean_ctor_set(x_499, 1, x_493); -x_500 = l_Lean_indentD(x_499); -x_501 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -x_502 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_502, 0, x_501); -lean_ctor_set(x_502, 1, x_500); -x_503 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_503); -lean_ctor_set(x_17, 0, x_502); -x_504 = l_Lean_MessageData_ofExpr(x_469); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_504); -lean_ctor_set(x_12, 0, x_493); -x_505 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_505, 0, x_12); -lean_ctor_set(x_505, 1, x_495); -x_506 = l_Lean_MessageData_ofExpr(x_487); -x_507 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_507, 0, x_505); -lean_ctor_set(x_507, 1, x_506); -x_508 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_508, 0, x_507); -lean_ctor_set(x_508, 1, x_493); -x_509 = l_Lean_indentD(x_508); -x_510 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_510, 0, x_17); -lean_ctor_set(x_510, 1, x_509); -x_511 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_511, 0, x_510); -lean_ctor_set(x_511, 1, x_493); -if (x_491 == 0) -{ -lean_object* x_512; lean_object* x_513; lean_object* x_514; uint8_t x_515; lean_object* x_516; lean_object* x_517; uint8_t x_518; lean_object* x_519; lean_object* x_520; -x_512 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_513 = l_outOfBounds___rarg(x_512); -x_514 = lean_ctor_get(x_513, 1); -lean_inc(x_514); -lean_dec(x_513); -x_515 = 2; -lean_inc(x_6); -x_516 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_514, x_511, x_515, x_4, x_5, x_6, x_7, x_488); -lean_dec(x_514); -x_517 = lean_ctor_get(x_516, 1); -lean_inc(x_517); -lean_dec(x_516); -x_518 = 1; -x_519 = lean_box(0); -x_520 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_455, x_470, x_465, x_1, x_518, x_519, x_4, x_5, x_6, x_7, x_517); -return x_520; -} -else -{ -lean_object* x_521; lean_object* x_522; uint8_t x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; lean_object* x_528; -x_521 = lean_array_fget(x_1, x_490); -x_522 = lean_ctor_get(x_521, 1); -lean_inc(x_522); -lean_dec(x_521); -x_523 = 2; -lean_inc(x_6); -x_524 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_522, x_511, x_523, x_4, x_5, x_6, x_7, x_488); -lean_dec(x_522); -x_525 = lean_ctor_get(x_524, 1); -lean_inc(x_525); -lean_dec(x_524); -x_526 = 1; -x_527 = lean_box(0); -x_528 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_455, x_470, x_465, x_1, x_526, x_527, x_4, x_5, x_6, x_7, x_525); -return x_528; } } else { -lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; -lean_dec(x_484); -lean_dec(x_471); -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; +x_535 = lean_ctor_get(x_23, 0); +x_536 = lean_ctor_get(x_23, 1); +lean_inc(x_536); +lean_inc(x_535); +lean_dec(x_23); +x_537 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_25); +x_538 = lean_ctor_get(x_537, 0); +lean_inc(x_538); +if (lean_obj_tag(x_538) == 0) +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; +lean_dec(x_536); +lean_dec(x_535); +lean_free_object(x_22); +lean_dec(x_28); lean_free_object(x_17); lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_529 = lean_ctor_get(x_486, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_486, 1); -lean_inc(x_530); -if (lean_is_exclusive(x_486)) { - lean_ctor_release(x_486, 0); - lean_ctor_release(x_486, 1); - x_531 = x_486; -} else { - lean_dec_ref(x_486); - x_531 = lean_box(0); -} -if (lean_is_scalar(x_531)) { - x_532 = lean_alloc_ctor(1, 2, 0); -} else { - x_532 = x_531; -} -lean_ctor_set(x_532, 0, x_529); -lean_ctor_set(x_532, 1, x_530); -return x_532; -} +x_539 = lean_ctor_get(x_537, 1); +lean_inc(x_539); +lean_dec(x_537); +x_540 = lean_box(0); +x_541 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_540, x_4, x_5, x_6, x_7, x_539); +return x_541; } else { -lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; -lean_dec(x_471); -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_533 = lean_ctor_get(x_483, 0); -lean_inc(x_533); -x_534 = lean_ctor_get(x_483, 1); -lean_inc(x_534); -if (lean_is_exclusive(x_483)) { - lean_ctor_release(x_483, 0); - lean_ctor_release(x_483, 1); - x_535 = x_483; -} else { - lean_dec_ref(x_483); - x_535 = lean_box(0); -} -if (lean_is_scalar(x_535)) { - x_536 = lean_alloc_ctor(1, 2, 0); -} else { - x_536 = x_535; -} -lean_ctor_set(x_536, 0, x_533); -lean_ctor_set(x_536, 1, x_534); -return x_536; -} -} -else -{ -lean_object* x_537; uint8_t x_538; lean_object* x_539; lean_object* x_540; -lean_dec(x_471); -lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_454); -lean_free_object(x_17); -lean_free_object(x_12); -x_537 = lean_ctor_get(x_479, 1); -lean_inc(x_537); -lean_dec(x_479); -x_538 = 0; -x_539 = lean_box(0); -x_540 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_455, x_470, x_465, x_1, x_538, x_539, x_4, x_5, x_6, x_7, x_537); -return x_540; -} -} -else -{ -lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; -lean_dec(x_471); -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_free_object(x_17); -lean_free_object(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_541 = lean_ctor_get(x_479, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_479, 1); +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; +x_542 = lean_ctor_get(x_537, 1); lean_inc(x_542); -if (lean_is_exclusive(x_479)) { - lean_ctor_release(x_479, 0); - lean_ctor_release(x_479, 1); - x_543 = x_479; +if (lean_is_exclusive(x_537)) { + lean_ctor_release(x_537, 0); + lean_ctor_release(x_537, 1); + x_543 = x_537; } else { - lean_dec_ref(x_479); + lean_dec_ref(x_537); x_543 = lean_box(0); } -if (lean_is_scalar(x_543)) { - x_544 = lean_alloc_ctor(1, 2, 0); -} else { - x_544 = x_543; -} -lean_ctor_set(x_544, 0, x_541); -lean_ctor_set(x_544, 1, x_542); -return x_544; -} -} -} -else -{ -lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; -lean_dec(x_471); -lean_dec(x_470); -lean_dec(x_469); -lean_dec(x_468); -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_free_object(x_17); -lean_dec(x_16); -lean_free_object(x_12); -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_545 = lean_ctor_get(x_472, 0); -lean_inc(x_545); -x_546 = lean_ctor_get(x_472, 1); -lean_inc(x_546); -if (lean_is_exclusive(x_472)) { - lean_ctor_release(x_472, 0); - lean_ctor_release(x_472, 1); - x_547 = x_472; -} else { - lean_dec_ref(x_472); - x_547 = lean_box(0); -} -if (lean_is_scalar(x_547)) { - x_548 = lean_alloc_ctor(1, 2, 0); -} else { - x_548 = x_547; -} -lean_ctor_set(x_548, 0, x_545); -lean_ctor_set(x_548, 1, x_546); -return x_548; -} -} -} -} -else -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_549 = lean_ctor_get(x_17, 1); -lean_inc(x_549); -lean_dec(x_17); -x_550 = lean_ctor_get(x_22, 0); -lean_inc(x_550); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_551 = x_22; -} else { - lean_dec_ref(x_22); - x_551 = lean_box(0); -} -x_552 = lean_ctor_get(x_23, 0); -lean_inc(x_552); -x_553 = lean_ctor_get(x_23, 1); -lean_inc(x_553); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_554 = x_23; -} else { - lean_dec_ref(x_23); - x_554 = lean_box(0); -} -x_555 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_549); -x_556 = lean_ctor_get(x_555, 0); -lean_inc(x_556); -if (lean_obj_tag(x_556) == 0) -{ -lean_object* x_557; lean_object* x_558; lean_object* x_559; -lean_dec(x_554); -lean_dec(x_553); -lean_dec(x_552); -lean_dec(x_551); -lean_dec(x_550); -lean_free_object(x_12); -x_557 = lean_ctor_get(x_555, 1); -lean_inc(x_557); -lean_dec(x_555); -x_558 = lean_box(0); -x_559 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_558, x_4, x_5, x_6, x_7, x_557); -return x_559; -} -else -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; -x_560 = lean_ctor_get(x_555, 1); -lean_inc(x_560); -if (lean_is_exclusive(x_555)) { - lean_ctor_release(x_555, 0); - lean_ctor_release(x_555, 1); - x_561 = x_555; -} else { - lean_dec_ref(x_555); - x_561 = lean_box(0); -} -x_562 = lean_ctor_get(x_556, 0); -lean_inc(x_562); -lean_dec(x_556); +x_544 = lean_ctor_get(x_538, 0); +lean_inc(x_544); +lean_dec(x_538); lean_inc(x_3); lean_inc(x_16); lean_inc(x_2); -x_563 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); -lean_closure_set(x_563, 0, x_2); -lean_closure_set(x_563, 1, x_16); -lean_closure_set(x_563, 2, x_3); -x_564 = lean_ctor_get(x_562, 1); -lean_inc(x_564); -x_565 = lean_ctor_get(x_562, 0); -lean_inc(x_565); -if (lean_is_exclusive(x_562)) { - lean_ctor_release(x_562, 0); - lean_ctor_release(x_562, 1); - x_566 = x_562; +x_545 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); +lean_closure_set(x_545, 0, x_2); +lean_closure_set(x_545, 1, x_16); +lean_closure_set(x_545, 2, x_3); +x_546 = lean_ctor_get(x_544, 1); +lean_inc(x_546); +x_547 = lean_ctor_get(x_544, 0); +lean_inc(x_547); +if (lean_is_exclusive(x_544)) { + lean_ctor_release(x_544, 0); + lean_ctor_release(x_544, 1); + x_548 = x_544; } else { - lean_dec_ref(x_562); - x_566 = lean_box(0); + lean_dec_ref(x_544); + x_548 = lean_box(0); } -x_567 = lean_ctor_get(x_564, 0); -lean_inc(x_567); -x_568 = lean_ctor_get(x_564, 1); -lean_inc(x_568); -if (lean_is_exclusive(x_564)) { - lean_ctor_release(x_564, 0); - lean_ctor_release(x_564, 1); - x_569 = x_564; +x_549 = lean_ctor_get(x_546, 0); +lean_inc(x_549); +x_550 = lean_ctor_get(x_546, 1); +lean_inc(x_550); +if (lean_is_exclusive(x_546)) { + lean_ctor_release(x_546, 0); + lean_ctor_release(x_546, 1); + x_551 = x_546; } else { - lean_dec_ref(x_564); - x_569 = lean_box(0); + lean_dec_ref(x_546); + x_551 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_570 = l_Lean_Meta_isExprDefEqGuarded(x_550, x_565, x_4, x_5, x_6, x_7, x_560); -if (lean_obj_tag(x_570) == 0) +x_552 = l_Lean_Meta_isExprDefEqGuarded(x_28, x_547, x_4, x_5, x_6, x_7, x_542); +if (lean_obj_tag(x_552) == 0) { -lean_object* x_571; uint8_t x_572; -x_571 = lean_ctor_get(x_570, 0); -lean_inc(x_571); -x_572 = lean_unbox(x_571); -lean_dec(x_571); -if (x_572 == 0) -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_567); -lean_dec(x_566); -lean_dec(x_563); -lean_dec(x_561); -lean_dec(x_554); +lean_object* x_553; uint8_t x_554; +x_553 = lean_ctor_get(x_552, 0); +lean_inc(x_553); +x_554 = lean_unbox(x_553); lean_dec(x_553); -lean_dec(x_552); +if (x_554 == 0) +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_549); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_dec(x_535); +lean_free_object(x_22); +lean_free_object(x_17); lean_free_object(x_12); -x_573 = lean_ctor_get(x_570, 1); -lean_inc(x_573); -lean_dec(x_570); -x_574 = lean_box(0); -x_575 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_574, x_4, x_5, x_6, x_7, x_573); -return x_575; +x_555 = lean_ctor_get(x_552, 1); +lean_inc(x_555); +lean_dec(x_552); +x_556 = lean_box(0); +x_557 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_556, x_4, x_5, x_6, x_7, x_555); +return x_557; } else { -lean_object* x_576; lean_object* x_577; +lean_object* x_558; lean_object* x_559; lean_dec(x_16); lean_dec(x_3); lean_dec(x_2); -x_576 = lean_ctor_get(x_570, 1); -lean_inc(x_576); -lean_dec(x_570); +x_558 = lean_ctor_get(x_552, 1); +lean_inc(x_558); +lean_dec(x_552); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); +lean_inc(x_549); +lean_inc(x_535); +x_559 = l_Lean_Meta_isExprDefEqGuarded(x_535, x_549, x_4, x_5, x_6, x_7, x_558); +if (lean_obj_tag(x_559) == 0) +{ +lean_object* x_560; uint8_t x_561; +x_560 = lean_ctor_get(x_559, 0); +lean_inc(x_560); +x_561 = lean_unbox(x_560); +lean_dec(x_560); +if (x_561 == 0) +{ +lean_object* x_562; lean_object* x_563; +x_562 = lean_ctor_get(x_559, 1); +lean_inc(x_562); +lean_dec(x_559); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_563 = l_Lean_Meta_addPPExplicitToExposeDiff(x_535, x_549, x_4, x_5, x_6, x_7, x_562); +if (lean_obj_tag(x_563) == 0) +{ +lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; +x_564 = lean_ctor_get(x_563, 0); +lean_inc(x_564); +x_565 = lean_ctor_get(x_563, 1); +lean_inc(x_565); +lean_dec(x_563); +x_566 = lean_ctor_get(x_564, 0); +lean_inc(x_566); +x_567 = lean_ctor_get(x_564, 1); lean_inc(x_567); -lean_inc(x_552); -x_577 = l_Lean_Meta_isExprDefEqGuarded(x_552, x_567, x_4, x_5, x_6, x_7, x_576); -if (lean_obj_tag(x_577) == 0) -{ -lean_object* x_578; uint8_t x_579; -x_578 = lean_ctor_get(x_577, 0); -lean_inc(x_578); -x_579 = lean_unbox(x_578); -lean_dec(x_578); -if (x_579 == 0) -{ -lean_object* x_580; lean_object* x_581; -x_580 = lean_ctor_get(x_577, 1); -lean_inc(x_580); -lean_dec(x_577); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_552); -x_581 = lean_infer_type(x_552, x_4, x_5, x_6, x_7, x_580); -if (lean_obj_tag(x_581) == 0) -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; -x_582 = lean_ctor_get(x_581, 0); -lean_inc(x_582); -x_583 = lean_ctor_get(x_581, 1); -lean_inc(x_583); -lean_dec(x_581); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_567); -x_584 = lean_infer_type(x_567, x_4, x_5, x_6, x_7, x_583); -if (lean_obj_tag(x_584) == 0) -{ -lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; uint8_t x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; -x_585 = lean_ctor_get(x_584, 0); -lean_inc(x_585); -x_586 = lean_ctor_get(x_584, 1); -lean_inc(x_586); -lean_dec(x_584); -x_587 = lean_array_get_size(x_1); -x_588 = lean_unsigned_to_nat(0u); -x_589 = lean_nat_dec_lt(x_588, x_587); -lean_dec(x_587); -x_590 = l_Lean_MessageData_ofExpr(x_552); -x_591 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_569)) { - x_592 = lean_alloc_ctor(7, 2, 0); +if (lean_is_exclusive(x_564)) { + lean_ctor_release(x_564, 0); + lean_ctor_release(x_564, 1); + x_568 = x_564; } else { - x_592 = x_569; - lean_ctor_set_tag(x_592, 7); + lean_dec_ref(x_564); + x_568 = lean_box(0); } -lean_ctor_set(x_592, 0, x_591); -lean_ctor_set(x_592, 1, x_590); -x_593 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -if (lean_is_scalar(x_566)) { +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_566); +x_569 = lean_infer_type(x_566, x_4, x_5, x_6, x_7, x_565); +if (lean_obj_tag(x_569) == 0) +{ +lean_object* x_570; lean_object* x_571; lean_object* x_572; +x_570 = lean_ctor_get(x_569, 0); +lean_inc(x_570); +x_571 = lean_ctor_get(x_569, 1); +lean_inc(x_571); +lean_dec(x_569); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_567); +x_572 = lean_infer_type(x_567, x_4, x_5, x_6, x_7, x_571); +if (lean_obj_tag(x_572) == 0) +{ +lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_573 = lean_ctor_get(x_572, 0); +lean_inc(x_573); +x_574 = lean_ctor_get(x_572, 1); +lean_inc(x_574); +lean_dec(x_572); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_575 = l_Lean_Meta_addPPExplicitToExposeDiff(x_570, x_573, x_4, x_5, x_6, x_7, x_574); +if (lean_obj_tag(x_575) == 0) +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; uint8_t x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; +x_576 = lean_ctor_get(x_575, 0); +lean_inc(x_576); +x_577 = lean_ctor_get(x_575, 1); +lean_inc(x_577); +lean_dec(x_575); +x_578 = lean_ctor_get(x_576, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_576, 1); +lean_inc(x_579); +if (lean_is_exclusive(x_576)) { + lean_ctor_release(x_576, 0); + lean_ctor_release(x_576, 1); + x_580 = x_576; +} else { + lean_dec_ref(x_576); + x_580 = lean_box(0); +} +x_581 = lean_array_get_size(x_1); +x_582 = lean_unsigned_to_nat(0u); +x_583 = lean_nat_dec_lt(x_582, x_581); +lean_dec(x_581); +x_584 = l_Lean_MessageData_ofExpr(x_566); +x_585 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_580)) { + x_586 = lean_alloc_ctor(7, 2, 0); +} else { + x_586 = x_580; + lean_ctor_set_tag(x_586, 7); +} +lean_ctor_set(x_586, 0, x_585); +lean_ctor_set(x_586, 1, x_584); +x_587 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_568)) { + x_588 = lean_alloc_ctor(7, 2, 0); +} else { + x_588 = x_568; + lean_ctor_set_tag(x_588, 7); +} +lean_ctor_set(x_588, 0, x_586); +lean_ctor_set(x_588, 1, x_587); +x_589 = l_Lean_MessageData_ofExpr(x_578); +if (lean_is_scalar(x_551)) { + x_590 = lean_alloc_ctor(7, 2, 0); +} else { + x_590 = x_551; + lean_ctor_set_tag(x_590, 7); +} +lean_ctor_set(x_590, 0, x_588); +lean_ctor_set(x_590, 1, x_589); +if (lean_is_scalar(x_548)) { + x_591 = lean_alloc_ctor(7, 2, 0); +} else { + x_591 = x_548; + lean_ctor_set_tag(x_591, 7); +} +lean_ctor_set(x_591, 0, x_590); +lean_ctor_set(x_591, 1, x_585); +x_592 = l_Lean_indentD(x_591); +x_593 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +if (lean_is_scalar(x_543)) { x_594 = lean_alloc_ctor(7, 2, 0); } else { - x_594 = x_566; + x_594 = x_543; lean_ctor_set_tag(x_594, 7); } -lean_ctor_set(x_594, 0, x_592); -lean_ctor_set(x_594, 1, x_593); -x_595 = l_Lean_MessageData_ofExpr(x_582); -if (lean_is_scalar(x_561)) { - x_596 = lean_alloc_ctor(7, 2, 0); -} else { - x_596 = x_561; - lean_ctor_set_tag(x_596, 7); -} +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_592); +x_595 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +x_596 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_596, 0, x_594); lean_ctor_set(x_596, 1, x_595); -if (lean_is_scalar(x_554)) { - x_597 = lean_alloc_ctor(7, 2, 0); -} else { - x_597 = x_554; - lean_ctor_set_tag(x_597, 7); -} -lean_ctor_set(x_597, 0, x_596); -lean_ctor_set(x_597, 1, x_591); -x_598 = l_Lean_indentD(x_597); -x_599 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -if (lean_is_scalar(x_551)) { - x_600 = lean_alloc_ctor(7, 2, 0); -} else { - x_600 = x_551; - lean_ctor_set_tag(x_600, 7); -} -lean_ctor_set(x_600, 0, x_599); -lean_ctor_set(x_600, 1, x_598); -x_601 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -x_602 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_602, 0, x_600); -lean_ctor_set(x_602, 1, x_601); -x_603 = l_Lean_MessageData_ofExpr(x_567); +x_597 = l_Lean_MessageData_ofExpr(x_567); +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_597); +lean_ctor_set(x_22, 0, x_585); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_587); +lean_ctor_set(x_17, 0, x_22); +x_598 = l_Lean_MessageData_ofExpr(x_579); lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_603); -lean_ctor_set(x_12, 0, x_591); -x_604 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_604, 0, x_12); -lean_ctor_set(x_604, 1, x_593); -x_605 = l_Lean_MessageData_ofExpr(x_585); -x_606 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_606, 0, x_604); -lean_ctor_set(x_606, 1, x_605); -x_607 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_607, 0, x_606); -lean_ctor_set(x_607, 1, x_591); -x_608 = l_Lean_indentD(x_607); -x_609 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_609, 0, x_602); -lean_ctor_set(x_609, 1, x_608); -x_610 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_610, 0, x_609); -lean_ctor_set(x_610, 1, x_591); -if (x_589 == 0) +lean_ctor_set(x_12, 1, x_598); +lean_ctor_set(x_12, 0, x_17); +x_599 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_599, 0, x_12); +lean_ctor_set(x_599, 1, x_585); +x_600 = l_Lean_indentD(x_599); +x_601 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_601, 0, x_596); +lean_ctor_set(x_601, 1, x_600); +x_602 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_602, 0, x_601); +lean_ctor_set(x_602, 1, x_585); +if (x_583 == 0) { -lean_object* x_611; lean_object* x_612; lean_object* x_613; uint8_t x_614; lean_object* x_615; lean_object* x_616; uint8_t x_617; lean_object* x_618; lean_object* x_619; -x_611 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_612 = l_outOfBounds___rarg(x_611); +lean_object* x_603; lean_object* x_604; lean_object* x_605; uint8_t x_606; lean_object* x_607; lean_object* x_608; uint8_t x_609; lean_object* x_610; lean_object* x_611; +x_603 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_604 = l_outOfBounds___rarg(x_603); +x_605 = lean_ctor_get(x_604, 1); +lean_inc(x_605); +lean_dec(x_604); +x_606 = 2; +lean_inc(x_6); +x_607 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_605, x_602, x_606, x_4, x_5, x_6, x_7, x_577); +lean_dec(x_605); +x_608 = lean_ctor_get(x_607, 1); +lean_inc(x_608); +lean_dec(x_607); +x_609 = 1; +x_610 = lean_box(0); +x_611 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_536, x_550, x_545, x_1, x_609, x_610, x_4, x_5, x_6, x_7, x_608); +return x_611; +} +else +{ +lean_object* x_612; lean_object* x_613; uint8_t x_614; lean_object* x_615; lean_object* x_616; uint8_t x_617; lean_object* x_618; lean_object* x_619; +x_612 = lean_array_fget(x_1, x_582); x_613 = lean_ctor_get(x_612, 1); lean_inc(x_613); lean_dec(x_612); x_614 = 2; lean_inc(x_6); -x_615 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_613, x_610, x_614, x_4, x_5, x_6, x_7, x_586); +x_615 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_613, x_602, x_614, x_4, x_5, x_6, x_7, x_577); lean_dec(x_613); x_616 = lean_ctor_get(x_615, 1); lean_inc(x_616); lean_dec(x_615); x_617 = 1; x_618 = lean_box(0); -x_619 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_553, x_568, x_563, x_1, x_617, x_618, x_4, x_5, x_6, x_7, x_616); +x_619 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_536, x_550, x_545, x_1, x_617, x_618, x_4, x_5, x_6, x_7, x_616); return x_619; } +} else { -lean_object* x_620; lean_object* x_621; uint8_t x_622; lean_object* x_623; lean_object* x_624; uint8_t x_625; lean_object* x_626; lean_object* x_627; -x_620 = lean_array_fget(x_1, x_588); -x_621 = lean_ctor_get(x_620, 1); +lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; +lean_dec(x_568); +lean_dec(x_567); +lean_dec(x_566); +lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_620 = lean_ctor_get(x_575, 0); +lean_inc(x_620); +x_621 = lean_ctor_get(x_575, 1); lean_inc(x_621); -lean_dec(x_620); -x_622 = 2; -lean_inc(x_6); -x_623 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_621, x_610, x_622, x_4, x_5, x_6, x_7, x_586); -lean_dec(x_621); -x_624 = lean_ctor_get(x_623, 1); +if (lean_is_exclusive(x_575)) { + lean_ctor_release(x_575, 0); + lean_ctor_release(x_575, 1); + x_622 = x_575; +} else { + lean_dec_ref(x_575); + x_622 = lean_box(0); +} +if (lean_is_scalar(x_622)) { + x_623 = lean_alloc_ctor(1, 2, 0); +} else { + x_623 = x_622; +} +lean_ctor_set(x_623, 0, x_620); +lean_ctor_set(x_623, 1, x_621); +return x_623; +} +} +else +{ +lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; +lean_dec(x_570); +lean_dec(x_568); +lean_dec(x_567); +lean_dec(x_566); +lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_free_object(x_22); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_624 = lean_ctor_get(x_572, 0); lean_inc(x_624); -lean_dec(x_623); -x_625 = 1; -x_626 = lean_box(0); -x_627 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_553, x_568, x_563, x_1, x_625, x_626, x_4, x_5, x_6, x_7, x_624); +x_625 = lean_ctor_get(x_572, 1); +lean_inc(x_625); +if (lean_is_exclusive(x_572)) { + lean_ctor_release(x_572, 0); + lean_ctor_release(x_572, 1); + x_626 = x_572; +} else { + lean_dec_ref(x_572); + x_626 = lean_box(0); +} +if (lean_is_scalar(x_626)) { + x_627 = lean_alloc_ctor(1, 2, 0); +} else { + x_627 = x_626; +} +lean_ctor_set(x_627, 0, x_624); +lean_ctor_set(x_627, 1, x_625); return x_627; } } else { lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; -lean_dec(x_582); -lean_dec(x_569); lean_dec(x_568); lean_dec(x_567); lean_dec(x_566); -lean_dec(x_563); -lean_dec(x_561); -lean_dec(x_554); -lean_dec(x_553); -lean_dec(x_552); lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_free_object(x_22); +lean_free_object(x_17); lean_free_object(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_628 = lean_ctor_get(x_584, 0); +x_628 = lean_ctor_get(x_569, 0); lean_inc(x_628); -x_629 = lean_ctor_get(x_584, 1); +x_629 = lean_ctor_get(x_569, 1); lean_inc(x_629); -if (lean_is_exclusive(x_584)) { - lean_ctor_release(x_584, 0); - lean_ctor_release(x_584, 1); - x_630 = x_584; +if (lean_is_exclusive(x_569)) { + lean_ctor_release(x_569, 0); + lean_ctor_release(x_569, 1); + x_630 = x_569; } else { - lean_dec_ref(x_584); + lean_dec_ref(x_569); x_630 = lean_box(0); } if (lean_is_scalar(x_630)) { @@ -22791,31 +23296,29 @@ return x_631; else { lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_567); -lean_dec(x_566); -lean_dec(x_563); -lean_dec(x_561); -lean_dec(x_554); -lean_dec(x_553); -lean_dec(x_552); lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_free_object(x_22); +lean_free_object(x_17); lean_free_object(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_632 = lean_ctor_get(x_581, 0); +x_632 = lean_ctor_get(x_563, 0); lean_inc(x_632); -x_633 = lean_ctor_get(x_581, 1); +x_633 = lean_ctor_get(x_563, 1); lean_inc(x_633); -if (lean_is_exclusive(x_581)) { - lean_ctor_release(x_581, 0); - lean_ctor_release(x_581, 1); - x_634 = x_581; +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_634 = x_563; } else { - lean_dec_ref(x_581); + lean_dec_ref(x_563); x_634 = lean_box(0); } if (lean_is_scalar(x_634)) { @@ -22831,51 +23334,51 @@ return x_635; else { lean_object* x_636; uint8_t x_637; lean_object* x_638; lean_object* x_639; -lean_dec(x_569); -lean_dec(x_567); -lean_dec(x_566); -lean_dec(x_561); -lean_dec(x_554); -lean_dec(x_552); lean_dec(x_551); +lean_dec(x_549); +lean_dec(x_548); +lean_dec(x_543); +lean_dec(x_535); +lean_free_object(x_22); +lean_free_object(x_17); lean_free_object(x_12); -x_636 = lean_ctor_get(x_577, 1); +x_636 = lean_ctor_get(x_559, 1); lean_inc(x_636); -lean_dec(x_577); +lean_dec(x_559); x_637 = 0; x_638 = lean_box(0); -x_639 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_553, x_568, x_563, x_1, x_637, x_638, x_4, x_5, x_6, x_7, x_636); +x_639 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_536, x_550, x_545, x_1, x_637, x_638, x_4, x_5, x_6, x_7, x_636); return x_639; } } else { lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_567); -lean_dec(x_566); -lean_dec(x_563); -lean_dec(x_561); -lean_dec(x_554); -lean_dec(x_553); -lean_dec(x_552); lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_549); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_dec(x_535); +lean_free_object(x_22); +lean_free_object(x_17); lean_free_object(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_640 = lean_ctor_get(x_577, 0); +x_640 = lean_ctor_get(x_559, 0); lean_inc(x_640); -x_641 = lean_ctor_get(x_577, 1); +x_641 = lean_ctor_get(x_559, 1); lean_inc(x_641); -if (lean_is_exclusive(x_577)) { - lean_ctor_release(x_577, 0); - lean_ctor_release(x_577, 1); - x_642 = x_577; +if (lean_is_exclusive(x_559)) { + lean_ctor_release(x_559, 0); + lean_ctor_release(x_559, 1); + x_642 = x_559; } else { - lean_dec_ref(x_577); + lean_dec_ref(x_559); x_642 = lean_box(0); } if (lean_is_scalar(x_642)) { @@ -22892,16 +23395,16 @@ return x_643; else { lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; -lean_dec(x_569); -lean_dec(x_568); -lean_dec(x_567); -lean_dec(x_566); -lean_dec(x_563); -lean_dec(x_561); -lean_dec(x_554); -lean_dec(x_553); -lean_dec(x_552); lean_dec(x_551); +lean_dec(x_550); +lean_dec(x_549); +lean_dec(x_548); +lean_dec(x_545); +lean_dec(x_543); +lean_dec(x_536); +lean_dec(x_535); +lean_free_object(x_22); +lean_free_object(x_17); lean_dec(x_16); lean_free_object(x_12); lean_dec(x_7); @@ -22910,16 +23413,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_644 = lean_ctor_get(x_570, 0); +x_644 = lean_ctor_get(x_552, 0); lean_inc(x_644); -x_645 = lean_ctor_get(x_570, 1); +x_645 = lean_ctor_get(x_552, 1); lean_inc(x_645); -if (lean_is_exclusive(x_570)) { - lean_ctor_release(x_570, 0); - lean_ctor_release(x_570, 1); - x_646 = x_570; +if (lean_is_exclusive(x_552)) { + lean_ctor_release(x_552, 0); + lean_ctor_release(x_552, 1); + x_646 = x_552; } else { - lean_dec_ref(x_570); + lean_dec_ref(x_552); x_646 = lean_box(0); } if (lean_is_scalar(x_646)) { @@ -22934,531 +23437,1241 @@ return x_647; } } } -} else { -lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_648 = lean_ctor_get(x_12, 0); -x_649 = lean_ctor_get(x_12, 1); -lean_inc(x_649); +lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; +x_648 = lean_ctor_get(x_22, 0); lean_inc(x_648); -lean_dec(x_12); -x_650 = l_Lean_Expr_headBeta(x_648); -x_651 = l_Lean_Elab_Term_getCalcRelation_x3f(x_650, x_4, x_5, x_6, x_7, x_649); -x_652 = lean_ctor_get(x_651, 0); -lean_inc(x_652); -if (lean_obj_tag(x_652) == 0) -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; -lean_dec(x_650); -lean_dec(x_3); -lean_dec(x_2); -x_653 = lean_ctor_get(x_651, 1); -lean_inc(x_653); -lean_dec(x_651); -x_654 = l_Lean_Elab_Term_throwCalcFailure___rarg___closed__2; -x_655 = l_panic___at_Lean_Elab_Term_throwCalcFailure___spec__1___rarg(x_654, x_4, x_5, x_6, x_7, x_653); -return x_655; -} -else -{ -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; -x_656 = lean_ctor_get(x_652, 0); -lean_inc(x_656); -lean_dec(x_652); -x_657 = lean_ctor_get(x_656, 1); -lean_inc(x_657); -x_658 = lean_ctor_get(x_651, 1); -lean_inc(x_658); -if (lean_is_exclusive(x_651)) { - lean_ctor_release(x_651, 0); - lean_ctor_release(x_651, 1); - x_659 = x_651; -} else { - lean_dec_ref(x_651); - x_659 = lean_box(0); -} -x_660 = lean_ctor_get(x_656, 0); -lean_inc(x_660); -if (lean_is_exclusive(x_656)) { - lean_ctor_release(x_656, 0); - lean_ctor_release(x_656, 1); - x_661 = x_656; -} else { - lean_dec_ref(x_656); - x_661 = lean_box(0); -} -x_662 = lean_ctor_get(x_657, 0); -lean_inc(x_662); -x_663 = lean_ctor_get(x_657, 1); -lean_inc(x_663); -if (lean_is_exclusive(x_657)) { - lean_ctor_release(x_657, 0); - lean_ctor_release(x_657, 1); - x_664 = x_657; -} else { - lean_dec_ref(x_657); - x_664 = lean_box(0); -} -x_665 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_658); -x_666 = lean_ctor_get(x_665, 0); -lean_inc(x_666); -if (lean_obj_tag(x_666) == 0) -{ -lean_object* x_667; lean_object* x_668; lean_object* x_669; -lean_dec(x_664); -lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_660); -lean_dec(x_659); -x_667 = lean_ctor_get(x_665, 1); -lean_inc(x_667); -lean_dec(x_665); -x_668 = lean_box(0); -x_669 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_650, x_3, x_668, x_4, x_5, x_6, x_7, x_667); -return x_669; -} -else -{ -lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_670 = lean_ctor_get(x_665, 1); -lean_inc(x_670); -if (lean_is_exclusive(x_665)) { - lean_ctor_release(x_665, 0); - lean_ctor_release(x_665, 1); - x_671 = x_665; -} else { - lean_dec_ref(x_665); - x_671 = lean_box(0); -} -x_672 = lean_ctor_get(x_666, 0); -lean_inc(x_672); -lean_dec(x_666); -lean_inc(x_3); +lean_dec(x_22); +x_649 = lean_ctor_get(x_23, 0); +lean_inc(x_649); +x_650 = lean_ctor_get(x_23, 1); lean_inc(x_650); -lean_inc(x_2); -x_673 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); -lean_closure_set(x_673, 0, x_2); -lean_closure_set(x_673, 1, x_650); -lean_closure_set(x_673, 2, x_3); -x_674 = lean_ctor_get(x_672, 1); -lean_inc(x_674); -x_675 = lean_ctor_get(x_672, 0); -lean_inc(x_675); -if (lean_is_exclusive(x_672)) { - lean_ctor_release(x_672, 0); - lean_ctor_release(x_672, 1); - x_676 = x_672; +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_651 = x_23; } else { - lean_dec_ref(x_672); - x_676 = lean_box(0); + lean_dec_ref(x_23); + x_651 = lean_box(0); } -x_677 = lean_ctor_get(x_674, 0); -lean_inc(x_677); -x_678 = lean_ctor_get(x_674, 1); -lean_inc(x_678); -if (lean_is_exclusive(x_674)) { - lean_ctor_release(x_674, 0); - lean_ctor_release(x_674, 1); - x_679 = x_674; -} else { - lean_dec_ref(x_674); - x_679 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_680 = l_Lean_Meta_isExprDefEqGuarded(x_660, x_675, x_4, x_5, x_6, x_7, x_670); -if (lean_obj_tag(x_680) == 0) +x_652 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_25); +x_653 = lean_ctor_get(x_652, 0); +lean_inc(x_653); +if (lean_obj_tag(x_653) == 0) { -lean_object* x_681; uint8_t x_682; -x_681 = lean_ctor_get(x_680, 0); -lean_inc(x_681); -x_682 = lean_unbox(x_681); -lean_dec(x_681); -if (x_682 == 0) -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_673); -lean_dec(x_671); -lean_dec(x_664); -lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); -x_683 = lean_ctor_get(x_680, 1); -lean_inc(x_683); -lean_dec(x_680); -x_684 = lean_box(0); -x_685 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_650, x_3, x_684, x_4, x_5, x_6, x_7, x_683); -return x_685; +lean_object* x_654; lean_object* x_655; lean_object* x_656; +lean_dec(x_651); +lean_dec(x_650); +lean_dec(x_649); +lean_dec(x_648); +lean_free_object(x_17); +lean_free_object(x_12); +x_654 = lean_ctor_get(x_652, 1); +lean_inc(x_654); +lean_dec(x_652); +x_655 = lean_box(0); +x_656 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_655, x_4, x_5, x_6, x_7, x_654); +return x_656; } else { -lean_object* x_686; lean_object* x_687; -lean_dec(x_650); -lean_dec(x_3); -lean_dec(x_2); -x_686 = lean_ctor_get(x_680, 1); -lean_inc(x_686); -lean_dec(x_680); +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; +x_657 = lean_ctor_get(x_652, 1); +lean_inc(x_657); +if (lean_is_exclusive(x_652)) { + lean_ctor_release(x_652, 0); + lean_ctor_release(x_652, 1); + x_658 = x_652; +} else { + lean_dec_ref(x_652); + x_658 = lean_box(0); +} +x_659 = lean_ctor_get(x_653, 0); +lean_inc(x_659); +lean_dec(x_653); +lean_inc(x_3); +lean_inc(x_16); +lean_inc(x_2); +x_660 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); +lean_closure_set(x_660, 0, x_2); +lean_closure_set(x_660, 1, x_16); +lean_closure_set(x_660, 2, x_3); +x_661 = lean_ctor_get(x_659, 1); +lean_inc(x_661); +x_662 = lean_ctor_get(x_659, 0); +lean_inc(x_662); +if (lean_is_exclusive(x_659)) { + lean_ctor_release(x_659, 0); + lean_ctor_release(x_659, 1); + x_663 = x_659; +} else { + lean_dec_ref(x_659); + x_663 = lean_box(0); +} +x_664 = lean_ctor_get(x_661, 0); +lean_inc(x_664); +x_665 = lean_ctor_get(x_661, 1); +lean_inc(x_665); +if (lean_is_exclusive(x_661)) { + lean_ctor_release(x_661, 0); + lean_ctor_release(x_661, 1); + x_666 = x_661; +} else { + lean_dec_ref(x_661); + x_666 = lean_box(0); +} lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); +x_667 = l_Lean_Meta_isExprDefEqGuarded(x_648, x_662, x_4, x_5, x_6, x_7, x_657); +if (lean_obj_tag(x_667) == 0) +{ +lean_object* x_668; uint8_t x_669; +x_668 = lean_ctor_get(x_667, 0); +lean_inc(x_668); +x_669 = lean_unbox(x_668); +lean_dec(x_668); +if (x_669 == 0) +{ +lean_object* x_670; lean_object* x_671; lean_object* x_672; +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_664); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_dec(x_649); +lean_free_object(x_17); +lean_free_object(x_12); +x_670 = lean_ctor_get(x_667, 1); +lean_inc(x_670); +lean_dec(x_667); +x_671 = lean_box(0); +x_672 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_671, x_4, x_5, x_6, x_7, x_670); +return x_672; +} +else +{ +lean_object* x_673; lean_object* x_674; +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_2); +x_673 = lean_ctor_get(x_667, 1); +lean_inc(x_673); +lean_dec(x_667); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_664); +lean_inc(x_649); +x_674 = l_Lean_Meta_isExprDefEqGuarded(x_649, x_664, x_4, x_5, x_6, x_7, x_673); +if (lean_obj_tag(x_674) == 0) +{ +lean_object* x_675; uint8_t x_676; +x_675 = lean_ctor_get(x_674, 0); +lean_inc(x_675); +x_676 = lean_unbox(x_675); +lean_dec(x_675); +if (x_676 == 0) +{ +lean_object* x_677; lean_object* x_678; +x_677 = lean_ctor_get(x_674, 1); lean_inc(x_677); -lean_inc(x_662); -x_687 = l_Lean_Meta_isExprDefEqGuarded(x_662, x_677, x_4, x_5, x_6, x_7, x_686); +lean_dec(x_674); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_678 = l_Lean_Meta_addPPExplicitToExposeDiff(x_649, x_664, x_4, x_5, x_6, x_7, x_677); +if (lean_obj_tag(x_678) == 0) +{ +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; +x_679 = lean_ctor_get(x_678, 0); +lean_inc(x_679); +x_680 = lean_ctor_get(x_678, 1); +lean_inc(x_680); +lean_dec(x_678); +x_681 = lean_ctor_get(x_679, 0); +lean_inc(x_681); +x_682 = lean_ctor_get(x_679, 1); +lean_inc(x_682); +if (lean_is_exclusive(x_679)) { + lean_ctor_release(x_679, 0); + lean_ctor_release(x_679, 1); + x_683 = x_679; +} else { + lean_dec_ref(x_679); + x_683 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_681); +x_684 = lean_infer_type(x_681, x_4, x_5, x_6, x_7, x_680); +if (lean_obj_tag(x_684) == 0) +{ +lean_object* x_685; lean_object* x_686; lean_object* x_687; +x_685 = lean_ctor_get(x_684, 0); +lean_inc(x_685); +x_686 = lean_ctor_get(x_684, 1); +lean_inc(x_686); +lean_dec(x_684); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_682); +x_687 = lean_infer_type(x_682, x_4, x_5, x_6, x_7, x_686); if (lean_obj_tag(x_687) == 0) { -lean_object* x_688; uint8_t x_689; +lean_object* x_688; lean_object* x_689; lean_object* x_690; x_688 = lean_ctor_get(x_687, 0); lean_inc(x_688); -x_689 = lean_unbox(x_688); -lean_dec(x_688); -if (x_689 == 0) -{ -lean_object* x_690; lean_object* x_691; -x_690 = lean_ctor_get(x_687, 1); -lean_inc(x_690); +x_689 = lean_ctor_get(x_687, 1); +lean_inc(x_689); lean_dec(x_687); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_662); -x_691 = lean_infer_type(x_662, x_4, x_5, x_6, x_7, x_690); -if (lean_obj_tag(x_691) == 0) +x_690 = l_Lean_Meta_addPPExplicitToExposeDiff(x_685, x_688, x_4, x_5, x_6, x_7, x_689); +if (lean_obj_tag(x_690) == 0) { -lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_692 = lean_ctor_get(x_691, 0); +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; uint8_t x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +x_691 = lean_ctor_get(x_690, 0); +lean_inc(x_691); +x_692 = lean_ctor_get(x_690, 1); lean_inc(x_692); -x_693 = lean_ctor_get(x_691, 1); +lean_dec(x_690); +x_693 = lean_ctor_get(x_691, 0); lean_inc(x_693); -lean_dec(x_691); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_677); -x_694 = lean_infer_type(x_677, x_4, x_5, x_6, x_7, x_693); -if (lean_obj_tag(x_694) == 0) -{ -lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; uint8_t x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_695 = lean_ctor_get(x_694, 0); -lean_inc(x_695); -x_696 = lean_ctor_get(x_694, 1); -lean_inc(x_696); -lean_dec(x_694); -x_697 = lean_array_get_size(x_1); -x_698 = lean_unsigned_to_nat(0u); -x_699 = lean_nat_dec_lt(x_698, x_697); -lean_dec(x_697); -x_700 = l_Lean_MessageData_ofExpr(x_662); -x_701 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; -if (lean_is_scalar(x_679)) { - x_702 = lean_alloc_ctor(7, 2, 0); -} else { - x_702 = x_679; - lean_ctor_set_tag(x_702, 7); -} -lean_ctor_set(x_702, 0, x_701); -lean_ctor_set(x_702, 1, x_700); -x_703 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; -if (lean_is_scalar(x_676)) { - x_704 = lean_alloc_ctor(7, 2, 0); -} else { - x_704 = x_676; - lean_ctor_set_tag(x_704, 7); -} -lean_ctor_set(x_704, 0, x_702); -lean_ctor_set(x_704, 1, x_703); -x_705 = l_Lean_MessageData_ofExpr(x_692); -if (lean_is_scalar(x_671)) { - x_706 = lean_alloc_ctor(7, 2, 0); -} else { - x_706 = x_671; - lean_ctor_set_tag(x_706, 7); -} -lean_ctor_set(x_706, 0, x_704); -lean_ctor_set(x_706, 1, x_705); -if (lean_is_scalar(x_664)) { - x_707 = lean_alloc_ctor(7, 2, 0); -} else { - x_707 = x_664; - lean_ctor_set_tag(x_707, 7); -} -lean_ctor_set(x_707, 0, x_706); -lean_ctor_set(x_707, 1, x_701); -x_708 = l_Lean_indentD(x_707); -x_709 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; -if (lean_is_scalar(x_661)) { - x_710 = lean_alloc_ctor(7, 2, 0); -} else { - x_710 = x_661; - lean_ctor_set_tag(x_710, 7); -} -lean_ctor_set(x_710, 0, x_709); -lean_ctor_set(x_710, 1, x_708); -x_711 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; -if (lean_is_scalar(x_659)) { - x_712 = lean_alloc_ctor(7, 2, 0); -} else { - x_712 = x_659; - lean_ctor_set_tag(x_712, 7); -} -lean_ctor_set(x_712, 0, x_710); -lean_ctor_set(x_712, 1, x_711); -x_713 = l_Lean_MessageData_ofExpr(x_677); -x_714 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_714, 0, x_701); -lean_ctor_set(x_714, 1, x_713); -x_715 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_715, 0, x_714); -lean_ctor_set(x_715, 1, x_703); -x_716 = l_Lean_MessageData_ofExpr(x_695); -x_717 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_717, 0, x_715); -lean_ctor_set(x_717, 1, x_716); -x_718 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_718, 0, x_717); -lean_ctor_set(x_718, 1, x_701); -x_719 = l_Lean_indentD(x_718); -x_720 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_720, 0, x_712); -lean_ctor_set(x_720, 1, x_719); -x_721 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_721, 0, x_720); -lean_ctor_set(x_721, 1, x_701); -if (x_699 == 0) -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; uint8_t x_725; lean_object* x_726; lean_object* x_727; uint8_t x_728; lean_object* x_729; lean_object* x_730; -x_722 = l_Lean_Elab_Term_instInhabitedCalcStepView; -x_723 = l_outOfBounds___rarg(x_722); -x_724 = lean_ctor_get(x_723, 1); -lean_inc(x_724); -lean_dec(x_723); -x_725 = 2; -lean_inc(x_6); -x_726 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_724, x_721, x_725, x_4, x_5, x_6, x_7, x_696); -lean_dec(x_724); -x_727 = lean_ctor_get(x_726, 1); -lean_inc(x_727); -lean_dec(x_726); -x_728 = 1; -x_729 = lean_box(0); -x_730 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_663, x_678, x_673, x_1, x_728, x_729, x_4, x_5, x_6, x_7, x_727); -return x_730; -} -else -{ -lean_object* x_731; lean_object* x_732; uint8_t x_733; lean_object* x_734; lean_object* x_735; uint8_t x_736; lean_object* x_737; lean_object* x_738; -x_731 = lean_array_fget(x_1, x_698); -x_732 = lean_ctor_get(x_731, 1); -lean_inc(x_732); -lean_dec(x_731); -x_733 = 2; -lean_inc(x_6); -x_734 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_732, x_721, x_733, x_4, x_5, x_6, x_7, x_696); -lean_dec(x_732); -x_735 = lean_ctor_get(x_734, 1); -lean_inc(x_735); -lean_dec(x_734); -x_736 = 1; -x_737 = lean_box(0); -x_738 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_663, x_678, x_673, x_1, x_736, x_737, x_4, x_5, x_6, x_7, x_735); -return x_738; -} -} -else -{ -lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; -lean_dec(x_692); -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_673); -lean_dec(x_671); -lean_dec(x_664); -lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_739 = lean_ctor_get(x_694, 0); -lean_inc(x_739); -x_740 = lean_ctor_get(x_694, 1); -lean_inc(x_740); -if (lean_is_exclusive(x_694)) { - lean_ctor_release(x_694, 0); - lean_ctor_release(x_694, 1); - x_741 = x_694; -} else { - lean_dec_ref(x_694); - x_741 = lean_box(0); -} -if (lean_is_scalar(x_741)) { - x_742 = lean_alloc_ctor(1, 2, 0); -} else { - x_742 = x_741; -} -lean_ctor_set(x_742, 0, x_739); -lean_ctor_set(x_742, 1, x_740); -return x_742; -} -} -else -{ -lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_673); -lean_dec(x_671); -lean_dec(x_664); -lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_743 = lean_ctor_get(x_691, 0); -lean_inc(x_743); -x_744 = lean_ctor_get(x_691, 1); -lean_inc(x_744); +x_694 = lean_ctor_get(x_691, 1); +lean_inc(x_694); if (lean_is_exclusive(x_691)) { lean_ctor_release(x_691, 0); lean_ctor_release(x_691, 1); - x_745 = x_691; + x_695 = x_691; } else { lean_dec_ref(x_691); - x_745 = lean_box(0); + x_695 = lean_box(0); } -if (lean_is_scalar(x_745)) { - x_746 = lean_alloc_ctor(1, 2, 0); +x_696 = lean_array_get_size(x_1); +x_697 = lean_unsigned_to_nat(0u); +x_698 = lean_nat_dec_lt(x_697, x_696); +lean_dec(x_696); +x_699 = l_Lean_MessageData_ofExpr(x_681); +x_700 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_695)) { + x_701 = lean_alloc_ctor(7, 2, 0); } else { - x_746 = x_745; + x_701 = x_695; + lean_ctor_set_tag(x_701, 7); } -lean_ctor_set(x_746, 0, x_743); -lean_ctor_set(x_746, 1, x_744); -return x_746; +lean_ctor_set(x_701, 0, x_700); +lean_ctor_set(x_701, 1, x_699); +x_702 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_683)) { + x_703 = lean_alloc_ctor(7, 2, 0); +} else { + x_703 = x_683; + lean_ctor_set_tag(x_703, 7); +} +lean_ctor_set(x_703, 0, x_701); +lean_ctor_set(x_703, 1, x_702); +x_704 = l_Lean_MessageData_ofExpr(x_693); +if (lean_is_scalar(x_666)) { + x_705 = lean_alloc_ctor(7, 2, 0); +} else { + x_705 = x_666; + lean_ctor_set_tag(x_705, 7); +} +lean_ctor_set(x_705, 0, x_703); +lean_ctor_set(x_705, 1, x_704); +if (lean_is_scalar(x_663)) { + x_706 = lean_alloc_ctor(7, 2, 0); +} else { + x_706 = x_663; + lean_ctor_set_tag(x_706, 7); +} +lean_ctor_set(x_706, 0, x_705); +lean_ctor_set(x_706, 1, x_700); +x_707 = l_Lean_indentD(x_706); +x_708 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +if (lean_is_scalar(x_658)) { + x_709 = lean_alloc_ctor(7, 2, 0); +} else { + x_709 = x_658; + lean_ctor_set_tag(x_709, 7); +} +lean_ctor_set(x_709, 0, x_708); +lean_ctor_set(x_709, 1, x_707); +x_710 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +if (lean_is_scalar(x_651)) { + x_711 = lean_alloc_ctor(7, 2, 0); +} else { + x_711 = x_651; + lean_ctor_set_tag(x_711, 7); +} +lean_ctor_set(x_711, 0, x_709); +lean_ctor_set(x_711, 1, x_710); +x_712 = l_Lean_MessageData_ofExpr(x_682); +x_713 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_713, 0, x_700); +lean_ctor_set(x_713, 1, x_712); +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_702); +lean_ctor_set(x_17, 0, x_713); +x_714 = l_Lean_MessageData_ofExpr(x_694); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_714); +lean_ctor_set(x_12, 0, x_17); +x_715 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_715, 0, x_12); +lean_ctor_set(x_715, 1, x_700); +x_716 = l_Lean_indentD(x_715); +x_717 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_717, 0, x_711); +lean_ctor_set(x_717, 1, x_716); +x_718 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_718, 0, x_717); +lean_ctor_set(x_718, 1, x_700); +if (x_698 == 0) +{ +lean_object* x_719; lean_object* x_720; lean_object* x_721; uint8_t x_722; lean_object* x_723; lean_object* x_724; uint8_t x_725; lean_object* x_726; lean_object* x_727; +x_719 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_720 = l_outOfBounds___rarg(x_719); +x_721 = lean_ctor_get(x_720, 1); +lean_inc(x_721); +lean_dec(x_720); +x_722 = 2; +lean_inc(x_6); +x_723 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_721, x_718, x_722, x_4, x_5, x_6, x_7, x_692); +lean_dec(x_721); +x_724 = lean_ctor_get(x_723, 1); +lean_inc(x_724); +lean_dec(x_723); +x_725 = 1; +x_726 = lean_box(0); +x_727 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_650, x_665, x_660, x_1, x_725, x_726, x_4, x_5, x_6, x_7, x_724); +return x_727; +} +else +{ +lean_object* x_728; lean_object* x_729; uint8_t x_730; lean_object* x_731; lean_object* x_732; uint8_t x_733; lean_object* x_734; lean_object* x_735; +x_728 = lean_array_fget(x_1, x_697); +x_729 = lean_ctor_get(x_728, 1); +lean_inc(x_729); +lean_dec(x_728); +x_730 = 2; +lean_inc(x_6); +x_731 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_729, x_718, x_730, x_4, x_5, x_6, x_7, x_692); +lean_dec(x_729); +x_732 = lean_ctor_get(x_731, 1); +lean_inc(x_732); +lean_dec(x_731); +x_733 = 1; +x_734 = lean_box(0); +x_735 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_650, x_665, x_660, x_1, x_733, x_734, x_4, x_5, x_6, x_7, x_732); +return x_735; } } else { -lean_object* x_747; uint8_t x_748; lean_object* x_749; lean_object* x_750; -lean_dec(x_679); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_671); -lean_dec(x_664); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); -x_747 = lean_ctor_get(x_687, 1); -lean_inc(x_747); -lean_dec(x_687); -x_748 = 0; -x_749 = lean_box(0); -x_750 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_663, x_678, x_673, x_1, x_748, x_749, x_4, x_5, x_6, x_7, x_747); -return x_750; -} -} -else -{ -lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_673); -lean_dec(x_671); -lean_dec(x_664); +lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_681); +lean_dec(x_666); +lean_dec(x_665); lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_free_object(x_17); +lean_free_object(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_751 = lean_ctor_get(x_687, 0); -lean_inc(x_751); -x_752 = lean_ctor_get(x_687, 1); -lean_inc(x_752); +x_736 = lean_ctor_get(x_690, 0); +lean_inc(x_736); +x_737 = lean_ctor_get(x_690, 1); +lean_inc(x_737); +if (lean_is_exclusive(x_690)) { + lean_ctor_release(x_690, 0); + lean_ctor_release(x_690, 1); + x_738 = x_690; +} else { + lean_dec_ref(x_690); + x_738 = lean_box(0); +} +if (lean_is_scalar(x_738)) { + x_739 = lean_alloc_ctor(1, 2, 0); +} else { + x_739 = x_738; +} +lean_ctor_set(x_739, 0, x_736); +lean_ctor_set(x_739, 1, x_737); +return x_739; +} +} +else +{ +lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +lean_dec(x_685); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_681); +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_740 = lean_ctor_get(x_687, 0); +lean_inc(x_740); +x_741 = lean_ctor_get(x_687, 1); +lean_inc(x_741); if (lean_is_exclusive(x_687)) { lean_ctor_release(x_687, 0); lean_ctor_release(x_687, 1); - x_753 = x_687; + x_742 = x_687; } else { lean_dec_ref(x_687); - x_753 = lean_box(0); + x_742 = lean_box(0); } -if (lean_is_scalar(x_753)) { - x_754 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_742)) { + x_743 = lean_alloc_ctor(1, 2, 0); } else { - x_754 = x_753; -} -lean_ctor_set(x_754, 0, x_751); -lean_ctor_set(x_754, 1, x_752); -return x_754; + x_743 = x_742; } +lean_ctor_set(x_743, 0, x_740); +lean_ctor_set(x_743, 1, x_741); +return x_743; } } else { -lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; -lean_dec(x_679); -lean_dec(x_678); -lean_dec(x_677); -lean_dec(x_676); -lean_dec(x_673); -lean_dec(x_671); +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_681); +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_744 = lean_ctor_get(x_684, 0); +lean_inc(x_744); +x_745 = lean_ctor_get(x_684, 1); +lean_inc(x_745); +if (lean_is_exclusive(x_684)) { + lean_ctor_release(x_684, 0); + lean_ctor_release(x_684, 1); + x_746 = x_684; +} else { + lean_dec_ref(x_684); + x_746 = lean_box(0); +} +if (lean_is_scalar(x_746)) { + x_747 = lean_alloc_ctor(1, 2, 0); +} else { + x_747 = x_746; +} +lean_ctor_set(x_747, 0, x_744); +lean_ctor_set(x_747, 1, x_745); +return x_747; +} +} +else +{ +lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_748 = lean_ctor_get(x_678, 0); +lean_inc(x_748); +x_749 = lean_ctor_get(x_678, 1); +lean_inc(x_749); +if (lean_is_exclusive(x_678)) { + lean_ctor_release(x_678, 0); + lean_ctor_release(x_678, 1); + x_750 = x_678; +} else { + lean_dec_ref(x_678); + x_750 = lean_box(0); +} +if (lean_is_scalar(x_750)) { + x_751 = lean_alloc_ctor(1, 2, 0); +} else { + x_751 = x_750; +} +lean_ctor_set(x_751, 0, x_748); +lean_ctor_set(x_751, 1, x_749); +return x_751; +} +} +else +{ +lean_object* x_752; uint8_t x_753; lean_object* x_754; lean_object* x_755; +lean_dec(x_666); lean_dec(x_664); lean_dec(x_663); -lean_dec(x_662); -lean_dec(x_661); -lean_dec(x_659); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_649); +lean_free_object(x_17); +lean_free_object(x_12); +x_752 = lean_ctor_get(x_674, 1); +lean_inc(x_752); +lean_dec(x_674); +x_753 = 0; +x_754 = lean_box(0); +x_755 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_650, x_665, x_660, x_1, x_753, x_754, x_4, x_5, x_6, x_7, x_752); +return x_755; +} +} +else +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_664); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); lean_dec(x_650); +lean_dec(x_649); +lean_free_object(x_17); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_756 = lean_ctor_get(x_674, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_674, 1); +lean_inc(x_757); +if (lean_is_exclusive(x_674)) { + lean_ctor_release(x_674, 0); + lean_ctor_release(x_674, 1); + x_758 = x_674; +} else { + lean_dec_ref(x_674); + x_758 = lean_box(0); +} +if (lean_is_scalar(x_758)) { + x_759 = lean_alloc_ctor(1, 2, 0); +} else { + x_759 = x_758; +} +lean_ctor_set(x_759, 0, x_756); +lean_ctor_set(x_759, 1, x_757); +return x_759; +} +} +} +else +{ +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; +lean_dec(x_666); +lean_dec(x_665); +lean_dec(x_664); +lean_dec(x_663); +lean_dec(x_660); +lean_dec(x_658); +lean_dec(x_651); +lean_dec(x_650); +lean_dec(x_649); +lean_free_object(x_17); +lean_dec(x_16); +lean_free_object(x_12); 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_755 = lean_ctor_get(x_680, 0); -lean_inc(x_755); -x_756 = lean_ctor_get(x_680, 1); -lean_inc(x_756); -if (lean_is_exclusive(x_680)) { - lean_ctor_release(x_680, 0); - lean_ctor_release(x_680, 1); - x_757 = x_680; +x_760 = lean_ctor_get(x_667, 0); +lean_inc(x_760); +x_761 = lean_ctor_get(x_667, 1); +lean_inc(x_761); +if (lean_is_exclusive(x_667)) { + lean_ctor_release(x_667, 0); + lean_ctor_release(x_667, 1); + x_762 = x_667; } else { - lean_dec_ref(x_680); - x_757 = lean_box(0); + lean_dec_ref(x_667); + x_762 = lean_box(0); } -if (lean_is_scalar(x_757)) { - x_758 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_762)) { + x_763 = lean_alloc_ctor(1, 2, 0); } else { - x_758 = x_757; + x_763 = x_762; } -lean_ctor_set(x_758, 0, x_755); -lean_ctor_set(x_758, 1, x_756); -return x_758; +lean_ctor_set(x_763, 0, x_760); +lean_ctor_set(x_763, 1, x_761); +return x_763; +} +} +} +} +else +{ +lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; +x_764 = lean_ctor_get(x_17, 1); +lean_inc(x_764); +lean_dec(x_17); +x_765 = lean_ctor_get(x_22, 0); +lean_inc(x_765); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_766 = x_22; +} else { + lean_dec_ref(x_22); + x_766 = lean_box(0); +} +x_767 = lean_ctor_get(x_23, 0); +lean_inc(x_767); +x_768 = lean_ctor_get(x_23, 1); +lean_inc(x_768); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_769 = x_23; +} else { + lean_dec_ref(x_23); + x_769 = lean_box(0); +} +x_770 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_764); +x_771 = lean_ctor_get(x_770, 0); +lean_inc(x_771); +if (lean_obj_tag(x_771) == 0) +{ +lean_object* x_772; lean_object* x_773; lean_object* x_774; +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_767); +lean_dec(x_766); +lean_dec(x_765); +lean_free_object(x_12); +x_772 = lean_ctor_get(x_770, 1); +lean_inc(x_772); +lean_dec(x_770); +x_773 = lean_box(0); +x_774 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_773, x_4, x_5, x_6, x_7, x_772); +return x_774; +} +else +{ +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; lean_object* x_785; +x_775 = lean_ctor_get(x_770, 1); +lean_inc(x_775); +if (lean_is_exclusive(x_770)) { + lean_ctor_release(x_770, 0); + lean_ctor_release(x_770, 1); + x_776 = x_770; +} else { + lean_dec_ref(x_770); + x_776 = lean_box(0); +} +x_777 = lean_ctor_get(x_771, 0); +lean_inc(x_777); +lean_dec(x_771); +lean_inc(x_3); +lean_inc(x_16); +lean_inc(x_2); +x_778 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); +lean_closure_set(x_778, 0, x_2); +lean_closure_set(x_778, 1, x_16); +lean_closure_set(x_778, 2, x_3); +x_779 = lean_ctor_get(x_777, 1); +lean_inc(x_779); +x_780 = lean_ctor_get(x_777, 0); +lean_inc(x_780); +if (lean_is_exclusive(x_777)) { + lean_ctor_release(x_777, 0); + lean_ctor_release(x_777, 1); + x_781 = x_777; +} else { + lean_dec_ref(x_777); + x_781 = lean_box(0); +} +x_782 = lean_ctor_get(x_779, 0); +lean_inc(x_782); +x_783 = lean_ctor_get(x_779, 1); +lean_inc(x_783); +if (lean_is_exclusive(x_779)) { + lean_ctor_release(x_779, 0); + lean_ctor_release(x_779, 1); + x_784 = x_779; +} else { + lean_dec_ref(x_779); + x_784 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_785 = l_Lean_Meta_isExprDefEqGuarded(x_765, x_780, x_4, x_5, x_6, x_7, x_775); +if (lean_obj_tag(x_785) == 0) +{ +lean_object* x_786; uint8_t x_787; +x_786 = lean_ctor_get(x_785, 0); +lean_inc(x_786); +x_787 = lean_unbox(x_786); +lean_dec(x_786); +if (x_787 == 0) +{ +lean_object* x_788; lean_object* x_789; lean_object* x_790; +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_782); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_767); +lean_dec(x_766); +lean_free_object(x_12); +x_788 = lean_ctor_get(x_785, 1); +lean_inc(x_788); +lean_dec(x_785); +x_789 = lean_box(0); +x_790 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_16, x_3, x_789, x_4, x_5, x_6, x_7, x_788); +return x_790; +} +else +{ +lean_object* x_791; lean_object* x_792; +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_2); +x_791 = lean_ctor_get(x_785, 1); +lean_inc(x_791); +lean_dec(x_785); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_782); +lean_inc(x_767); +x_792 = l_Lean_Meta_isExprDefEqGuarded(x_767, x_782, x_4, x_5, x_6, x_7, x_791); +if (lean_obj_tag(x_792) == 0) +{ +lean_object* x_793; uint8_t x_794; +x_793 = lean_ctor_get(x_792, 0); +lean_inc(x_793); +x_794 = lean_unbox(x_793); +lean_dec(x_793); +if (x_794 == 0) +{ +lean_object* x_795; lean_object* x_796; +x_795 = lean_ctor_get(x_792, 1); +lean_inc(x_795); +lean_dec(x_792); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_796 = l_Lean_Meta_addPPExplicitToExposeDiff(x_767, x_782, x_4, x_5, x_6, x_7, x_795); +if (lean_obj_tag(x_796) == 0) +{ +lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; +x_797 = lean_ctor_get(x_796, 0); +lean_inc(x_797); +x_798 = lean_ctor_get(x_796, 1); +lean_inc(x_798); +lean_dec(x_796); +x_799 = lean_ctor_get(x_797, 0); +lean_inc(x_799); +x_800 = lean_ctor_get(x_797, 1); +lean_inc(x_800); +if (lean_is_exclusive(x_797)) { + lean_ctor_release(x_797, 0); + lean_ctor_release(x_797, 1); + x_801 = x_797; +} else { + lean_dec_ref(x_797); + x_801 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_799); +x_802 = lean_infer_type(x_799, x_4, x_5, x_6, x_7, x_798); +if (lean_obj_tag(x_802) == 0) +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; +x_803 = lean_ctor_get(x_802, 0); +lean_inc(x_803); +x_804 = lean_ctor_get(x_802, 1); +lean_inc(x_804); +lean_dec(x_802); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_800); +x_805 = lean_infer_type(x_800, x_4, x_5, x_6, x_7, x_804); +if (lean_obj_tag(x_805) == 0) +{ +lean_object* x_806; lean_object* x_807; lean_object* x_808; +x_806 = lean_ctor_get(x_805, 0); +lean_inc(x_806); +x_807 = lean_ctor_get(x_805, 1); +lean_inc(x_807); +lean_dec(x_805); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_808 = l_Lean_Meta_addPPExplicitToExposeDiff(x_803, x_806, x_4, x_5, x_6, x_7, x_807); +if (lean_obj_tag(x_808) == 0) +{ +lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; uint8_t x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; +x_809 = lean_ctor_get(x_808, 0); +lean_inc(x_809); +x_810 = lean_ctor_get(x_808, 1); +lean_inc(x_810); +lean_dec(x_808); +x_811 = lean_ctor_get(x_809, 0); +lean_inc(x_811); +x_812 = lean_ctor_get(x_809, 1); +lean_inc(x_812); +if (lean_is_exclusive(x_809)) { + lean_ctor_release(x_809, 0); + lean_ctor_release(x_809, 1); + x_813 = x_809; +} else { + lean_dec_ref(x_809); + x_813 = lean_box(0); +} +x_814 = lean_array_get_size(x_1); +x_815 = lean_unsigned_to_nat(0u); +x_816 = lean_nat_dec_lt(x_815, x_814); +lean_dec(x_814); +x_817 = l_Lean_MessageData_ofExpr(x_799); +x_818 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_813)) { + x_819 = lean_alloc_ctor(7, 2, 0); +} else { + x_819 = x_813; + lean_ctor_set_tag(x_819, 7); +} +lean_ctor_set(x_819, 0, x_818); +lean_ctor_set(x_819, 1, x_817); +x_820 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_801)) { + x_821 = lean_alloc_ctor(7, 2, 0); +} else { + x_821 = x_801; + lean_ctor_set_tag(x_821, 7); +} +lean_ctor_set(x_821, 0, x_819); +lean_ctor_set(x_821, 1, x_820); +x_822 = l_Lean_MessageData_ofExpr(x_811); +if (lean_is_scalar(x_784)) { + x_823 = lean_alloc_ctor(7, 2, 0); +} else { + x_823 = x_784; + lean_ctor_set_tag(x_823, 7); +} +lean_ctor_set(x_823, 0, x_821); +lean_ctor_set(x_823, 1, x_822); +if (lean_is_scalar(x_781)) { + x_824 = lean_alloc_ctor(7, 2, 0); +} else { + x_824 = x_781; + lean_ctor_set_tag(x_824, 7); +} +lean_ctor_set(x_824, 0, x_823); +lean_ctor_set(x_824, 1, x_818); +x_825 = l_Lean_indentD(x_824); +x_826 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +if (lean_is_scalar(x_776)) { + x_827 = lean_alloc_ctor(7, 2, 0); +} else { + x_827 = x_776; + lean_ctor_set_tag(x_827, 7); +} +lean_ctor_set(x_827, 0, x_826); +lean_ctor_set(x_827, 1, x_825); +x_828 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +if (lean_is_scalar(x_769)) { + x_829 = lean_alloc_ctor(7, 2, 0); +} else { + x_829 = x_769; + lean_ctor_set_tag(x_829, 7); +} +lean_ctor_set(x_829, 0, x_827); +lean_ctor_set(x_829, 1, x_828); +x_830 = l_Lean_MessageData_ofExpr(x_800); +if (lean_is_scalar(x_766)) { + x_831 = lean_alloc_ctor(7, 2, 0); +} else { + x_831 = x_766; + lean_ctor_set_tag(x_831, 7); +} +lean_ctor_set(x_831, 0, x_818); +lean_ctor_set(x_831, 1, x_830); +x_832 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_832, 0, x_831); +lean_ctor_set(x_832, 1, x_820); +x_833 = l_Lean_MessageData_ofExpr(x_812); +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_833); +lean_ctor_set(x_12, 0, x_832); +x_834 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_834, 0, x_12); +lean_ctor_set(x_834, 1, x_818); +x_835 = l_Lean_indentD(x_834); +x_836 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_836, 0, x_829); +lean_ctor_set(x_836, 1, x_835); +x_837 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_837, 0, x_836); +lean_ctor_set(x_837, 1, x_818); +if (x_816 == 0) +{ +lean_object* x_838; lean_object* x_839; lean_object* x_840; uint8_t x_841; lean_object* x_842; lean_object* x_843; uint8_t x_844; lean_object* x_845; lean_object* x_846; +x_838 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_839 = l_outOfBounds___rarg(x_838); +x_840 = lean_ctor_get(x_839, 1); +lean_inc(x_840); +lean_dec(x_839); +x_841 = 2; +lean_inc(x_6); +x_842 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_840, x_837, x_841, x_4, x_5, x_6, x_7, x_810); +lean_dec(x_840); +x_843 = lean_ctor_get(x_842, 1); +lean_inc(x_843); +lean_dec(x_842); +x_844 = 1; +x_845 = lean_box(0); +x_846 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_768, x_783, x_778, x_1, x_844, x_845, x_4, x_5, x_6, x_7, x_843); +return x_846; +} +else +{ +lean_object* x_847; lean_object* x_848; uint8_t x_849; lean_object* x_850; lean_object* x_851; uint8_t x_852; lean_object* x_853; lean_object* x_854; +x_847 = lean_array_fget(x_1, x_815); +x_848 = lean_ctor_get(x_847, 1); +lean_inc(x_848); +lean_dec(x_847); +x_849 = 2; +lean_inc(x_6); +x_850 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_848, x_837, x_849, x_4, x_5, x_6, x_7, x_810); +lean_dec(x_848); +x_851 = lean_ctor_get(x_850, 1); +lean_inc(x_851); +lean_dec(x_850); +x_852 = 1; +x_853 = lean_box(0); +x_854 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_768, x_783, x_778, x_1, x_852, x_853, x_4, x_5, x_6, x_7, x_851); +return x_854; +} +} +else +{ +lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; +lean_dec(x_801); +lean_dec(x_800); +lean_dec(x_799); +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_766); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_855 = lean_ctor_get(x_808, 0); +lean_inc(x_855); +x_856 = lean_ctor_get(x_808, 1); +lean_inc(x_856); +if (lean_is_exclusive(x_808)) { + lean_ctor_release(x_808, 0); + lean_ctor_release(x_808, 1); + x_857 = x_808; +} else { + lean_dec_ref(x_808); + x_857 = lean_box(0); +} +if (lean_is_scalar(x_857)) { + x_858 = lean_alloc_ctor(1, 2, 0); +} else { + x_858 = x_857; +} +lean_ctor_set(x_858, 0, x_855); +lean_ctor_set(x_858, 1, x_856); +return x_858; +} +} +else +{ +lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; +lean_dec(x_803); +lean_dec(x_801); +lean_dec(x_800); +lean_dec(x_799); +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_766); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_859 = lean_ctor_get(x_805, 0); +lean_inc(x_859); +x_860 = lean_ctor_get(x_805, 1); +lean_inc(x_860); +if (lean_is_exclusive(x_805)) { + lean_ctor_release(x_805, 0); + lean_ctor_release(x_805, 1); + x_861 = x_805; +} else { + lean_dec_ref(x_805); + x_861 = lean_box(0); +} +if (lean_is_scalar(x_861)) { + x_862 = lean_alloc_ctor(1, 2, 0); +} else { + x_862 = x_861; +} +lean_ctor_set(x_862, 0, x_859); +lean_ctor_set(x_862, 1, x_860); +return x_862; +} +} +else +{ +lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; +lean_dec(x_801); +lean_dec(x_800); +lean_dec(x_799); +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_766); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_863 = lean_ctor_get(x_802, 0); +lean_inc(x_863); +x_864 = lean_ctor_get(x_802, 1); +lean_inc(x_864); +if (lean_is_exclusive(x_802)) { + lean_ctor_release(x_802, 0); + lean_ctor_release(x_802, 1); + x_865 = x_802; +} else { + lean_dec_ref(x_802); + x_865 = lean_box(0); +} +if (lean_is_scalar(x_865)) { + x_866 = lean_alloc_ctor(1, 2, 0); +} else { + x_866 = x_865; +} +lean_ctor_set(x_866, 0, x_863); +lean_ctor_set(x_866, 1, x_864); +return x_866; +} +} +else +{ +lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_766); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_867 = lean_ctor_get(x_796, 0); +lean_inc(x_867); +x_868 = lean_ctor_get(x_796, 1); +lean_inc(x_868); +if (lean_is_exclusive(x_796)) { + lean_ctor_release(x_796, 0); + lean_ctor_release(x_796, 1); + x_869 = x_796; +} else { + lean_dec_ref(x_796); + x_869 = lean_box(0); +} +if (lean_is_scalar(x_869)) { + x_870 = lean_alloc_ctor(1, 2, 0); +} else { + x_870 = x_869; +} +lean_ctor_set(x_870, 0, x_867); +lean_ctor_set(x_870, 1, x_868); +return x_870; +} +} +else +{ +lean_object* x_871; uint8_t x_872; lean_object* x_873; lean_object* x_874; +lean_dec(x_784); +lean_dec(x_782); +lean_dec(x_781); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_767); +lean_dec(x_766); +lean_free_object(x_12); +x_871 = lean_ctor_get(x_792, 1); +lean_inc(x_871); +lean_dec(x_792); +x_872 = 0; +x_873 = lean_box(0); +x_874 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_768, x_783, x_778, x_1, x_872, x_873, x_4, x_5, x_6, x_7, x_871); +return x_874; +} +} +else +{ +lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_782); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_767); +lean_dec(x_766); +lean_free_object(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_875 = lean_ctor_get(x_792, 0); +lean_inc(x_875); +x_876 = lean_ctor_get(x_792, 1); +lean_inc(x_876); +if (lean_is_exclusive(x_792)) { + lean_ctor_release(x_792, 0); + lean_ctor_release(x_792, 1); + x_877 = x_792; +} else { + lean_dec_ref(x_792); + x_877 = lean_box(0); +} +if (lean_is_scalar(x_877)) { + x_878 = lean_alloc_ctor(1, 2, 0); +} else { + x_878 = x_877; +} +lean_ctor_set(x_878, 0, x_875); +lean_ctor_set(x_878, 1, x_876); +return x_878; +} +} +} +else +{ +lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; +lean_dec(x_784); +lean_dec(x_783); +lean_dec(x_782); +lean_dec(x_781); +lean_dec(x_778); +lean_dec(x_776); +lean_dec(x_769); +lean_dec(x_768); +lean_dec(x_767); +lean_dec(x_766); +lean_dec(x_16); +lean_free_object(x_12); +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_879 = lean_ctor_get(x_785, 0); +lean_inc(x_879); +x_880 = lean_ctor_get(x_785, 1); +lean_inc(x_880); +if (lean_is_exclusive(x_785)) { + lean_ctor_release(x_785, 0); + lean_ctor_release(x_785, 1); + x_881 = x_785; +} else { + lean_dec_ref(x_785); + x_881 = lean_box(0); +} +if (lean_is_scalar(x_881)) { + x_882 = lean_alloc_ctor(1, 2, 0); +} else { + x_882 = x_881; +} +lean_ctor_set(x_882, 0, x_879); +lean_ctor_set(x_882, 1, x_880); +return x_882; } } } @@ -23466,30 +24679,700 @@ return x_758; } else { -uint8_t x_759; +lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; +x_883 = lean_ctor_get(x_12, 0); +x_884 = lean_ctor_get(x_12, 1); +lean_inc(x_884); +lean_inc(x_883); +lean_dec(x_12); +x_885 = l_Lean_Expr_headBeta(x_883); +x_886 = l_Lean_Elab_Term_getCalcRelation_x3f(x_885, x_4, x_5, x_6, x_7, x_884); +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_dec(x_885); +lean_dec(x_3); +lean_dec(x_2); +x_888 = lean_ctor_get(x_886, 1); +lean_inc(x_888); +lean_dec(x_886); +x_889 = l_Lean_Elab_Term_throwCalcFailure___rarg___closed__2; +x_890 = l_panic___at_Lean_Elab_Term_throwCalcFailure___spec__1___rarg(x_889, x_4, x_5, x_6, x_7, x_888); +return x_890; +} +else +{ +lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; +x_891 = lean_ctor_get(x_887, 0); +lean_inc(x_891); +lean_dec(x_887); +x_892 = lean_ctor_get(x_891, 1); +lean_inc(x_892); +x_893 = lean_ctor_get(x_886, 1); +lean_inc(x_893); +if (lean_is_exclusive(x_886)) { + lean_ctor_release(x_886, 0); + lean_ctor_release(x_886, 1); + x_894 = x_886; +} else { + lean_dec_ref(x_886); + x_894 = lean_box(0); +} +x_895 = lean_ctor_get(x_891, 0); +lean_inc(x_895); +if (lean_is_exclusive(x_891)) { + lean_ctor_release(x_891, 0); + lean_ctor_release(x_891, 1); + x_896 = x_891; +} else { + lean_dec_ref(x_891); + x_896 = lean_box(0); +} +x_897 = lean_ctor_get(x_892, 0); +lean_inc(x_897); +x_898 = lean_ctor_get(x_892, 1); +lean_inc(x_898); +if (lean_is_exclusive(x_892)) { + lean_ctor_release(x_892, 0); + lean_ctor_release(x_892, 1); + x_899 = x_892; +} else { + lean_dec_ref(x_892); + x_899 = lean_box(0); +} +x_900 = l_Lean_Elab_Term_getCalcRelation_x3f(x_2, x_4, x_5, x_6, x_7, x_893); +x_901 = lean_ctor_get(x_900, 0); +lean_inc(x_901); +if (lean_obj_tag(x_901) == 0) +{ +lean_object* x_902; lean_object* x_903; lean_object* x_904; +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_897); +lean_dec(x_896); +lean_dec(x_895); +lean_dec(x_894); +x_902 = lean_ctor_get(x_900, 1); +lean_inc(x_902); +lean_dec(x_900); +x_903 = lean_box(0); +x_904 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_885, x_3, x_903, x_4, x_5, x_6, x_7, x_902); +return x_904; +} +else +{ +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; +x_905 = lean_ctor_get(x_900, 1); +lean_inc(x_905); +if (lean_is_exclusive(x_900)) { + lean_ctor_release(x_900, 0); + lean_ctor_release(x_900, 1); + x_906 = x_900; +} else { + lean_dec_ref(x_900); + x_906 = lean_box(0); +} +x_907 = lean_ctor_get(x_901, 0); +lean_inc(x_907); +lean_dec(x_901); +lean_inc(x_3); +lean_inc(x_885); +lean_inc(x_2); +x_908 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1___boxed), 9, 3); +lean_closure_set(x_908, 0, x_2); +lean_closure_set(x_908, 1, x_885); +lean_closure_set(x_908, 2, x_3); +x_909 = lean_ctor_get(x_907, 1); +lean_inc(x_909); +x_910 = lean_ctor_get(x_907, 0); +lean_inc(x_910); +if (lean_is_exclusive(x_907)) { + lean_ctor_release(x_907, 0); + lean_ctor_release(x_907, 1); + x_911 = x_907; +} else { + lean_dec_ref(x_907); + x_911 = lean_box(0); +} +x_912 = lean_ctor_get(x_909, 0); +lean_inc(x_912); +x_913 = lean_ctor_get(x_909, 1); +lean_inc(x_913); +if (lean_is_exclusive(x_909)) { + lean_ctor_release(x_909, 0); + lean_ctor_release(x_909, 1); + x_914 = x_909; +} else { + lean_dec_ref(x_909); + x_914 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_915 = l_Lean_Meta_isExprDefEqGuarded(x_895, x_910, x_4, x_5, x_6, x_7, x_905); +if (lean_obj_tag(x_915) == 0) +{ +lean_object* x_916; uint8_t x_917; +x_916 = lean_ctor_get(x_915, 0); +lean_inc(x_916); +x_917 = lean_unbox(x_916); +lean_dec(x_916); +if (x_917 == 0) +{ +lean_object* x_918; lean_object* x_919; lean_object* x_920; +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_912); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_897); +lean_dec(x_896); +lean_dec(x_894); +x_918 = lean_ctor_get(x_915, 1); +lean_inc(x_918); +lean_dec(x_915); +x_919 = lean_box(0); +x_920 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__1(x_2, x_885, x_3, x_919, x_4, x_5, x_6, x_7, x_918); +return x_920; +} +else +{ +lean_object* x_921; lean_object* x_922; +lean_dec(x_885); +lean_dec(x_3); +lean_dec(x_2); +x_921 = lean_ctor_get(x_915, 1); +lean_inc(x_921); +lean_dec(x_915); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_912); +lean_inc(x_897); +x_922 = l_Lean_Meta_isExprDefEqGuarded(x_897, x_912, x_4, x_5, x_6, x_7, x_921); +if (lean_obj_tag(x_922) == 0) +{ +lean_object* x_923; uint8_t x_924; +x_923 = lean_ctor_get(x_922, 0); +lean_inc(x_923); +x_924 = lean_unbox(x_923); +lean_dec(x_923); +if (x_924 == 0) +{ +lean_object* x_925; lean_object* x_926; +x_925 = lean_ctor_get(x_922, 1); +lean_inc(x_925); +lean_dec(x_922); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_926 = l_Lean_Meta_addPPExplicitToExposeDiff(x_897, x_912, x_4, x_5, x_6, x_7, x_925); +if (lean_obj_tag(x_926) == 0) +{ +lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; +x_927 = lean_ctor_get(x_926, 0); +lean_inc(x_927); +x_928 = lean_ctor_get(x_926, 1); +lean_inc(x_928); +lean_dec(x_926); +x_929 = lean_ctor_get(x_927, 0); +lean_inc(x_929); +x_930 = lean_ctor_get(x_927, 1); +lean_inc(x_930); +if (lean_is_exclusive(x_927)) { + lean_ctor_release(x_927, 0); + lean_ctor_release(x_927, 1); + x_931 = x_927; +} else { + lean_dec_ref(x_927); + x_931 = lean_box(0); +} +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_929); +x_932 = lean_infer_type(x_929, x_4, x_5, x_6, x_7, x_928); +if (lean_obj_tag(x_932) == 0) +{ +lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_933 = lean_ctor_get(x_932, 0); +lean_inc(x_933); +x_934 = lean_ctor_get(x_932, 1); +lean_inc(x_934); +lean_dec(x_932); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_930); +x_935 = lean_infer_type(x_930, x_4, x_5, x_6, x_7, x_934); +if (lean_obj_tag(x_935) == 0) +{ +lean_object* x_936; lean_object* x_937; lean_object* x_938; +x_936 = lean_ctor_get(x_935, 0); +lean_inc(x_936); +x_937 = lean_ctor_get(x_935, 1); +lean_inc(x_937); +lean_dec(x_935); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_938 = l_Lean_Meta_addPPExplicitToExposeDiff(x_933, x_936, x_4, x_5, x_6, x_7, x_937); +if (lean_obj_tag(x_938) == 0) +{ +lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; uint8_t x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; 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; +x_939 = lean_ctor_get(x_938, 0); +lean_inc(x_939); +x_940 = lean_ctor_get(x_938, 1); +lean_inc(x_940); +lean_dec(x_938); +x_941 = lean_ctor_get(x_939, 0); +lean_inc(x_941); +x_942 = lean_ctor_get(x_939, 1); +lean_inc(x_942); +if (lean_is_exclusive(x_939)) { + lean_ctor_release(x_939, 0); + lean_ctor_release(x_939, 1); + x_943 = x_939; +} else { + lean_dec_ref(x_939); + x_943 = lean_box(0); +} +x_944 = lean_array_get_size(x_1); +x_945 = lean_unsigned_to_nat(0u); +x_946 = lean_nat_dec_lt(x_945, x_944); +lean_dec(x_944); +x_947 = l_Lean_MessageData_ofExpr(x_929); +x_948 = l___private_Lean_Elab_Calc_0__Lean_Elab_Term_getRelUniv___lambda__1___closed__4; +if (lean_is_scalar(x_943)) { + x_949 = lean_alloc_ctor(7, 2, 0); +} else { + x_949 = x_943; + lean_ctor_set_tag(x_949, 7); +} +lean_ctor_set(x_949, 0, x_948); +lean_ctor_set(x_949, 1, x_947); +x_950 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__6; +if (lean_is_scalar(x_931)) { + x_951 = lean_alloc_ctor(7, 2, 0); +} else { + x_951 = x_931; + lean_ctor_set_tag(x_951, 7); +} +lean_ctor_set(x_951, 0, x_949); +lean_ctor_set(x_951, 1, x_950); +x_952 = l_Lean_MessageData_ofExpr(x_941); +if (lean_is_scalar(x_914)) { + x_953 = lean_alloc_ctor(7, 2, 0); +} else { + x_953 = x_914; + lean_ctor_set_tag(x_953, 7); +} +lean_ctor_set(x_953, 0, x_951); +lean_ctor_set(x_953, 1, x_952); +if (lean_is_scalar(x_911)) { + x_954 = lean_alloc_ctor(7, 2, 0); +} else { + x_954 = x_911; + lean_ctor_set_tag(x_954, 7); +} +lean_ctor_set(x_954, 0, x_953); +lean_ctor_set(x_954, 1, x_948); +x_955 = l_Lean_indentD(x_954); +x_956 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Term_elabCalcSteps___spec__1___closed__4; +if (lean_is_scalar(x_906)) { + x_957 = lean_alloc_ctor(7, 2, 0); +} else { + x_957 = x_906; + lean_ctor_set_tag(x_957, 7); +} +lean_ctor_set(x_957, 0, x_956); +lean_ctor_set(x_957, 1, x_955); +x_958 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3___closed__4; +if (lean_is_scalar(x_899)) { + x_959 = lean_alloc_ctor(7, 2, 0); +} else { + x_959 = x_899; + lean_ctor_set_tag(x_959, 7); +} +lean_ctor_set(x_959, 0, x_957); +lean_ctor_set(x_959, 1, x_958); +x_960 = l_Lean_MessageData_ofExpr(x_930); +if (lean_is_scalar(x_896)) { + x_961 = lean_alloc_ctor(7, 2, 0); +} else { + x_961 = x_896; + lean_ctor_set_tag(x_961, 7); +} +lean_ctor_set(x_961, 0, x_948); +lean_ctor_set(x_961, 1, x_960); +if (lean_is_scalar(x_894)) { + x_962 = lean_alloc_ctor(7, 2, 0); +} else { + x_962 = x_894; + lean_ctor_set_tag(x_962, 7); +} +lean_ctor_set(x_962, 0, x_961); +lean_ctor_set(x_962, 1, x_950); +x_963 = l_Lean_MessageData_ofExpr(x_942); +x_964 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_964, 0, x_962); +lean_ctor_set(x_964, 1, x_963); +x_965 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_965, 0, x_964); +lean_ctor_set(x_965, 1, x_948); +x_966 = l_Lean_indentD(x_965); +x_967 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_967, 0, x_959); +lean_ctor_set(x_967, 1, x_966); +x_968 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_968, 0, x_967); +lean_ctor_set(x_968, 1, x_948); +if (x_946 == 0) +{ +lean_object* x_969; lean_object* x_970; lean_object* x_971; uint8_t x_972; lean_object* x_973; lean_object* x_974; uint8_t x_975; lean_object* x_976; lean_object* x_977; +x_969 = l_Lean_Elab_Term_instInhabitedCalcStepView; +x_970 = l_outOfBounds___rarg(x_969); +x_971 = lean_ctor_get(x_970, 1); +lean_inc(x_971); +lean_dec(x_970); +x_972 = 2; +lean_inc(x_6); +x_973 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_971, x_968, x_972, x_4, x_5, x_6, x_7, x_940); +lean_dec(x_971); +x_974 = lean_ctor_get(x_973, 1); +lean_inc(x_974); +lean_dec(x_973); +x_975 = 1; +x_976 = lean_box(0); +x_977 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_898, x_913, x_908, x_1, x_975, x_976, x_4, x_5, x_6, x_7, x_974); +return x_977; +} +else +{ +lean_object* x_978; lean_object* x_979; uint8_t x_980; lean_object* x_981; lean_object* x_982; uint8_t x_983; lean_object* x_984; lean_object* x_985; +x_978 = lean_array_fget(x_1, x_945); +x_979 = lean_ctor_get(x_978, 1); +lean_inc(x_979); +lean_dec(x_978); +x_980 = 2; +lean_inc(x_6); +x_981 = l_Lean_logAt___at_Lean_Elab_Term_reportUnsolvedGoals___spec__2(x_979, x_968, x_980, x_4, x_5, x_6, x_7, x_940); +lean_dec(x_979); +x_982 = lean_ctor_get(x_981, 1); +lean_inc(x_982); +lean_dec(x_981); +x_983 = 1; +x_984 = lean_box(0); +x_985 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_898, x_913, x_908, x_1, x_983, x_984, x_4, x_5, x_6, x_7, x_982); +return x_985; +} +} +else +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; +lean_dec(x_931); +lean_dec(x_930); +lean_dec(x_929); +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_986 = lean_ctor_get(x_938, 0); +lean_inc(x_986); +x_987 = lean_ctor_get(x_938, 1); +lean_inc(x_987); +if (lean_is_exclusive(x_938)) { + lean_ctor_release(x_938, 0); + lean_ctor_release(x_938, 1); + x_988 = x_938; +} else { + lean_dec_ref(x_938); + x_988 = lean_box(0); +} +if (lean_is_scalar(x_988)) { + x_989 = lean_alloc_ctor(1, 2, 0); +} else { + x_989 = x_988; +} +lean_ctor_set(x_989, 0, x_986); +lean_ctor_set(x_989, 1, x_987); +return x_989; +} +} +else +{ +lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; +lean_dec(x_933); +lean_dec(x_931); +lean_dec(x_930); +lean_dec(x_929); +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_990 = lean_ctor_get(x_935, 0); +lean_inc(x_990); +x_991 = lean_ctor_get(x_935, 1); +lean_inc(x_991); +if (lean_is_exclusive(x_935)) { + lean_ctor_release(x_935, 0); + lean_ctor_release(x_935, 1); + x_992 = x_935; +} else { + lean_dec_ref(x_935); + x_992 = lean_box(0); +} +if (lean_is_scalar(x_992)) { + x_993 = lean_alloc_ctor(1, 2, 0); +} else { + x_993 = x_992; +} +lean_ctor_set(x_993, 0, x_990); +lean_ctor_set(x_993, 1, x_991); +return x_993; +} +} +else +{ +lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; +lean_dec(x_931); +lean_dec(x_930); +lean_dec(x_929); +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_994 = lean_ctor_get(x_932, 0); +lean_inc(x_994); +x_995 = lean_ctor_get(x_932, 1); +lean_inc(x_995); +if (lean_is_exclusive(x_932)) { + lean_ctor_release(x_932, 0); + lean_ctor_release(x_932, 1); + x_996 = x_932; +} else { + lean_dec_ref(x_932); + x_996 = lean_box(0); +} +if (lean_is_scalar(x_996)) { + x_997 = lean_alloc_ctor(1, 2, 0); +} else { + x_997 = x_996; +} +lean_ctor_set(x_997, 0, x_994); +lean_ctor_set(x_997, 1, x_995); +return x_997; +} +} +else +{ +lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_998 = lean_ctor_get(x_926, 0); +lean_inc(x_998); +x_999 = lean_ctor_get(x_926, 1); +lean_inc(x_999); +if (lean_is_exclusive(x_926)) { + lean_ctor_release(x_926, 0); + lean_ctor_release(x_926, 1); + x_1000 = x_926; +} else { + lean_dec_ref(x_926); + x_1000 = lean_box(0); +} +if (lean_is_scalar(x_1000)) { + x_1001 = lean_alloc_ctor(1, 2, 0); +} else { + x_1001 = x_1000; +} +lean_ctor_set(x_1001, 0, x_998); +lean_ctor_set(x_1001, 1, x_999); +return x_1001; +} +} +else +{ +lean_object* x_1002; uint8_t x_1003; lean_object* x_1004; lean_object* x_1005; +lean_dec(x_914); +lean_dec(x_912); +lean_dec(x_911); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_897); +lean_dec(x_896); +lean_dec(x_894); +x_1002 = lean_ctor_get(x_922, 1); +lean_inc(x_1002); +lean_dec(x_922); +x_1003 = 0; +x_1004 = lean_box(0); +x_1005 = l_Lean_Elab_Term_throwCalcFailure___rarg___lambda__3(x_898, x_913, x_908, x_1, x_1003, x_1004, x_4, x_5, x_6, x_7, x_1002); +return x_1005; +} +} +else +{ +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_912); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_897); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1006 = lean_ctor_get(x_922, 0); +lean_inc(x_1006); +x_1007 = lean_ctor_get(x_922, 1); +lean_inc(x_1007); +if (lean_is_exclusive(x_922)) { + lean_ctor_release(x_922, 0); + lean_ctor_release(x_922, 1); + x_1008 = x_922; +} else { + lean_dec_ref(x_922); + x_1008 = lean_box(0); +} +if (lean_is_scalar(x_1008)) { + x_1009 = lean_alloc_ctor(1, 2, 0); +} else { + x_1009 = x_1008; +} +lean_ctor_set(x_1009, 0, x_1006); +lean_ctor_set(x_1009, 1, x_1007); +return x_1009; +} +} +} +else +{ +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; +lean_dec(x_914); +lean_dec(x_913); +lean_dec(x_912); +lean_dec(x_911); +lean_dec(x_908); +lean_dec(x_906); +lean_dec(x_899); +lean_dec(x_898); +lean_dec(x_897); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_885); 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_759 = !lean_is_exclusive(x_9); -if (x_759 == 0) +x_1010 = lean_ctor_get(x_915, 0); +lean_inc(x_1010); +x_1011 = lean_ctor_get(x_915, 1); +lean_inc(x_1011); +if (lean_is_exclusive(x_915)) { + lean_ctor_release(x_915, 0); + lean_ctor_release(x_915, 1); + x_1012 = x_915; +} else { + lean_dec_ref(x_915); + x_1012 = lean_box(0); +} +if (lean_is_scalar(x_1012)) { + x_1013 = lean_alloc_ctor(1, 2, 0); +} else { + x_1013 = x_1012; +} +lean_ctor_set(x_1013, 0, x_1010); +lean_ctor_set(x_1013, 1, x_1011); +return x_1013; +} +} +} +} +} +else +{ +uint8_t x_1014; +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_1014 = !lean_is_exclusive(x_9); +if (x_1014 == 0) { return x_9; } else { -lean_object* x_760; lean_object* x_761; lean_object* x_762; -x_760 = lean_ctor_get(x_9, 0); -x_761 = lean_ctor_get(x_9, 1); -lean_inc(x_761); -lean_inc(x_760); +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; +x_1015 = lean_ctor_get(x_9, 0); +x_1016 = lean_ctor_get(x_9, 1); +lean_inc(x_1016); +lean_inc(x_1015); lean_dec(x_9); -x_762 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_762, 0, x_760); -lean_ctor_set(x_762, 1, x_761); -return x_762; +x_1017 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1017, 0, x_1015); +lean_ctor_set(x_1017, 1, x_1016); +return x_1017; } } } diff --git a/stage0/stdlib/Lean/Elab/CheckTactic.c b/stage0/stdlib/Lean/Elab/CheckTactic.c index 5367548f27..807ba75601 100644 --- a/stage0/stdlib/Lean/Elab/CheckTactic.c +++ b/stage0/stdlib/Lean/Elab/CheckTactic.c @@ -112,6 +112,7 @@ static lean_object* l_Lean_Elab_CheckTactic_expandCheckSimp___closed__7; static lean_object* l___regBuiltin_Lean_Elab_CheckTactic_expandCheckSimp_declRange__1___closed__6; lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_CheckTactic_expandCheckSimp_declRange__1___closed__2; +lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_CheckTactic_elabCheckTacticFailure_declRange__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_CheckTactic_elabCheckTactic___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__2; @@ -573,6 +574,7 @@ lean_inc(x_56); if (lean_obj_tag(x_56) == 0) { lean_object* x_57; uint8_t x_58; +lean_free_object(x_32); lean_dec(x_3); x_57 = lean_ctor_get(x_43, 1); lean_inc(x_57); @@ -669,1399 +671,1720 @@ x_91 = lean_unbox(x_90); lean_dec(x_90); if (x_91 == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_object* x_92; lean_object* x_93; x_92 = lean_ctor_get(x_89, 1); lean_inc(x_92); lean_dec(x_89); -x_93 = l_Lean_indentExpr(x_69); -x_94 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_93 = l_Lean_Meta_addPPExplicitToExposeDiff(x_69, x_38, x_8, x_9, x_10, x_11, x_92); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = !lean_is_exclusive(x_94); +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; lean_object* x_103; lean_object* x_104; +x_97 = lean_ctor_get(x_94, 0); +x_98 = lean_ctor_get(x_94, 1); +x_99 = l_Lean_indentExpr(x_97); +x_100 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +lean_ctor_set_tag(x_94, 7); +lean_ctor_set(x_94, 1, x_99); +lean_ctor_set(x_94, 0, x_100); +x_101 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; lean_ctor_set_tag(x_65, 7); -lean_ctor_set(x_65, 1, x_93); +lean_ctor_set(x_65, 1, x_101); lean_ctor_set(x_65, 0, x_94); -x_95 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +x_102 = l_Lean_indentExpr(x_98); lean_ctor_set_tag(x_46, 7); -lean_ctor_set(x_46, 1, x_95); +lean_ctor_set(x_46, 1, x_102); lean_ctor_set(x_46, 0, x_65); -x_96 = l_Lean_indentExpr(x_38); +x_103 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_96); -x_97 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_97); -lean_ctor_set(x_32, 0, x_44); -x_98 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_92); +lean_ctor_set(x_44, 1, x_103); +x_104 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_95); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_98; -} -else -{ -uint8_t x_99; -lean_free_object(x_65); -lean_dec(x_69); -lean_free_object(x_46); -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_99 = !lean_is_exclusive(x_89); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_89, 0); -lean_dec(x_100); -x_101 = lean_box(0); -lean_ctor_set(x_89, 0, x_101); -return x_89; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_89, 1); -lean_inc(x_102); -lean_dec(x_89); -x_103 = lean_box(0); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_102); return x_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; +x_105 = lean_ctor_get(x_94, 0); +x_106 = lean_ctor_get(x_94, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_94); +x_107 = l_Lean_indentExpr(x_105); +x_108 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +x_109 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +lean_ctor_set_tag(x_65, 7); +lean_ctor_set(x_65, 1, x_110); +lean_ctor_set(x_65, 0, x_109); +x_111 = l_Lean_indentExpr(x_106); +lean_ctor_set_tag(x_46, 7); +lean_ctor_set(x_46, 1, x_111); +lean_ctor_set(x_46, 0, x_65); +x_112 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_112); +x_113 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_95); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_113; } } else { -uint8_t x_105; +uint8_t x_114; lean_free_object(x_65); -lean_dec(x_69); lean_free_object(x_46); lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_105 = !lean_is_exclusive(x_89); -if (x_105 == 0) +x_114 = !lean_is_exclusive(x_93); +if (x_114 == 0) +{ +return x_93; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_93, 0); +x_116 = lean_ctor_get(x_93, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_93); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +} +else +{ +uint8_t x_118; +lean_free_object(x_65); +lean_dec(x_69); +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_118 = !lean_is_exclusive(x_89); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_89, 0); +lean_dec(x_119); +x_120 = lean_box(0); +lean_ctor_set(x_89, 0, x_120); +return x_89; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_89, 1); +lean_inc(x_121); +lean_dec(x_89); +x_122 = lean_box(0); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +} +else +{ +uint8_t x_124; +lean_free_object(x_65); +lean_dec(x_69); +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_124 = !lean_is_exclusive(x_89); +if (x_124 == 0) { return x_89; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_89, 0); -x_107 = lean_ctor_get(x_89, 1); -lean_inc(x_107); -lean_inc(x_106); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_89, 0); +x_126 = lean_ctor_get(x_89, 1); +lean_inc(x_126); +lean_inc(x_125); lean_dec(x_89); -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; +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_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; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; lean_object* x_128; uint64_t x_129; uint64_t x_130; uint64_t x_131; uint64_t x_132; uint64_t x_133; lean_object* x_134; lean_object* x_135; -x_109 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_110 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_111 = lean_ctor_get_uint8(x_66, 0); -x_112 = lean_ctor_get_uint8(x_66, 1); -x_113 = lean_ctor_get_uint8(x_66, 2); -x_114 = lean_ctor_get_uint8(x_66, 3); -x_115 = lean_ctor_get_uint8(x_66, 4); -x_116 = lean_ctor_get_uint8(x_66, 5); -x_117 = lean_ctor_get_uint8(x_66, 6); -x_118 = lean_ctor_get_uint8(x_66, 7); -x_119 = lean_ctor_get_uint8(x_66, 8); -x_120 = lean_ctor_get_uint8(x_66, 10); -x_121 = lean_ctor_get_uint8(x_66, 11); -x_122 = lean_ctor_get_uint8(x_66, 12); -x_123 = lean_ctor_get_uint8(x_66, 13); -x_124 = lean_ctor_get_uint8(x_66, 14); -x_125 = lean_ctor_get_uint8(x_66, 15); -x_126 = lean_ctor_get_uint8(x_66, 16); +uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; lean_object* x_147; uint64_t x_148; uint64_t x_149; uint64_t x_150; uint64_t x_151; uint64_t x_152; lean_object* x_153; lean_object* x_154; +x_128 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_129 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_130 = lean_ctor_get_uint8(x_66, 0); +x_131 = lean_ctor_get_uint8(x_66, 1); +x_132 = lean_ctor_get_uint8(x_66, 2); +x_133 = lean_ctor_get_uint8(x_66, 3); +x_134 = lean_ctor_get_uint8(x_66, 4); +x_135 = lean_ctor_get_uint8(x_66, 5); +x_136 = lean_ctor_get_uint8(x_66, 6); +x_137 = lean_ctor_get_uint8(x_66, 7); +x_138 = lean_ctor_get_uint8(x_66, 8); +x_139 = lean_ctor_get_uint8(x_66, 10); +x_140 = lean_ctor_get_uint8(x_66, 11); +x_141 = lean_ctor_get_uint8(x_66, 12); +x_142 = lean_ctor_get_uint8(x_66, 13); +x_143 = lean_ctor_get_uint8(x_66, 14); +x_144 = lean_ctor_get_uint8(x_66, 15); +x_145 = lean_ctor_get_uint8(x_66, 16); lean_dec(x_66); -x_127 = 2; -x_128 = lean_alloc_ctor(0, 0, 17); -lean_ctor_set_uint8(x_128, 0, x_111); -lean_ctor_set_uint8(x_128, 1, x_112); -lean_ctor_set_uint8(x_128, 2, x_113); -lean_ctor_set_uint8(x_128, 3, x_114); -lean_ctor_set_uint8(x_128, 4, x_115); -lean_ctor_set_uint8(x_128, 5, x_116); -lean_ctor_set_uint8(x_128, 6, x_117); -lean_ctor_set_uint8(x_128, 7, x_118); -lean_ctor_set_uint8(x_128, 8, x_119); -lean_ctor_set_uint8(x_128, 9, x_127); -lean_ctor_set_uint8(x_128, 10, x_120); -lean_ctor_set_uint8(x_128, 11, x_121); -lean_ctor_set_uint8(x_128, 12, x_122); -lean_ctor_set_uint8(x_128, 13, x_123); -lean_ctor_set_uint8(x_128, 14, x_124); -lean_ctor_set_uint8(x_128, 15, x_125); -lean_ctor_set_uint8(x_128, 16, x_126); -x_129 = 2; -x_130 = lean_uint64_shift_right(x_71, x_129); -x_131 = lean_uint64_shift_left(x_130, x_129); -x_132 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_133 = lean_uint64_lor(x_131, x_132); -x_134 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_134, 0, x_128); -lean_ctor_set(x_134, 1, x_73); -lean_ctor_set(x_134, 2, x_74); -lean_ctor_set(x_134, 3, x_75); -lean_ctor_set(x_134, 4, x_76); -lean_ctor_set(x_134, 5, x_77); -lean_ctor_set(x_134, 6, x_78); -lean_ctor_set_uint64(x_134, sizeof(void*)*7, x_133); -lean_ctor_set_uint8(x_134, sizeof(void*)*7 + 8, x_72); -lean_ctor_set_uint8(x_134, sizeof(void*)*7 + 9, x_109); -lean_ctor_set_uint8(x_134, sizeof(void*)*7 + 10, x_110); +x_146 = 2; +x_147 = lean_alloc_ctor(0, 0, 17); +lean_ctor_set_uint8(x_147, 0, x_130); +lean_ctor_set_uint8(x_147, 1, x_131); +lean_ctor_set_uint8(x_147, 2, x_132); +lean_ctor_set_uint8(x_147, 3, x_133); +lean_ctor_set_uint8(x_147, 4, x_134); +lean_ctor_set_uint8(x_147, 5, x_135); +lean_ctor_set_uint8(x_147, 6, x_136); +lean_ctor_set_uint8(x_147, 7, x_137); +lean_ctor_set_uint8(x_147, 8, x_138); +lean_ctor_set_uint8(x_147, 9, x_146); +lean_ctor_set_uint8(x_147, 10, x_139); +lean_ctor_set_uint8(x_147, 11, x_140); +lean_ctor_set_uint8(x_147, 12, x_141); +lean_ctor_set_uint8(x_147, 13, x_142); +lean_ctor_set_uint8(x_147, 14, x_143); +lean_ctor_set_uint8(x_147, 15, x_144); +lean_ctor_set_uint8(x_147, 16, x_145); +x_148 = 2; +x_149 = lean_uint64_shift_right(x_71, x_148); +x_150 = lean_uint64_shift_left(x_149, x_148); +x_151 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_152 = lean_uint64_lor(x_150, x_151); +x_153 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_153, 0, x_147); +lean_ctor_set(x_153, 1, x_73); +lean_ctor_set(x_153, 2, x_74); +lean_ctor_set(x_153, 3, x_75); +lean_ctor_set(x_153, 4, x_76); +lean_ctor_set(x_153, 5, x_77); +lean_ctor_set(x_153, 6, x_78); +lean_ctor_set_uint64(x_153, sizeof(void*)*7, x_152); +lean_ctor_set_uint8(x_153, sizeof(void*)*7 + 8, x_72); +lean_ctor_set_uint8(x_153, sizeof(void*)*7 + 9, x_128); +lean_ctor_set_uint8(x_153, sizeof(void*)*7 + 10, x_129); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_38); lean_inc(x_69); -x_135 = l_Lean_Meta_isExprDefEq(x_69, x_38, x_134, x_9, x_10, x_11, x_67); -if (lean_obj_tag(x_135) == 0) +x_154 = l_Lean_Meta_isExprDefEq(x_69, x_38, x_153, x_9, x_10, x_11, x_67); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_136; uint8_t x_137; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_unbox(x_136); -lean_dec(x_136); -if (x_137 == 0) +lean_object* x_155; uint8_t x_156; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_unbox(x_155); +lean_dec(x_155); +if (x_156 == 0) { -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_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -lean_dec(x_135); -x_139 = l_Lean_indentExpr(x_69); -x_140 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -lean_ctor_set_tag(x_65, 7); -lean_ctor_set(x_65, 1, x_139); -lean_ctor_set(x_65, 0, x_140); -x_141 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; -lean_ctor_set_tag(x_46, 7); -lean_ctor_set(x_46, 1, x_141); -lean_ctor_set(x_46, 0, x_65); -x_142 = l_Lean_indentExpr(x_38); -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_142); -x_143 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_143); -lean_ctor_set(x_32, 0, x_44); -x_144 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_138); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_144; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_free_object(x_65); -lean_dec(x_69); -lean_free_object(x_46); -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_145 = lean_ctor_get(x_135, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_146 = x_135; -} else { - lean_dec_ref(x_135); - x_146 = lean_box(0); -} -x_147 = lean_box(0); -if (lean_is_scalar(x_146)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_146; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_145); -return x_148; -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_free_object(x_65); -lean_dec(x_69); -lean_free_object(x_46); -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_149 = lean_ctor_get(x_135, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_135, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_151 = x_135; -} else { - lean_dec_ref(x_135); - x_151 = lean_box(0); -} -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(1, 2, 0); -} else { - x_152 = x_151; -} -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; -} -} -} -else -{ -lean_object* x_153; uint64_t x_154; uint8_t 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_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; uint8_t x_172; uint8_t x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; uint64_t x_183; uint64_t x_184; uint64_t x_185; uint64_t x_186; uint64_t x_187; lean_object* x_188; lean_object* x_189; -x_153 = lean_ctor_get(x_65, 0); -lean_inc(x_153); -lean_dec(x_65); -x_154 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); -x_155 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); -x_156 = lean_ctor_get(x_8, 1); -lean_inc(x_156); -x_157 = lean_ctor_get(x_8, 2); +lean_object* x_157; lean_object* x_158; +x_157 = lean_ctor_get(x_154, 1); lean_inc(x_157); -x_158 = lean_ctor_get(x_8, 3); -lean_inc(x_158); -x_159 = lean_ctor_get(x_8, 4); +lean_dec(x_154); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_158 = l_Lean_Meta_addPPExplicitToExposeDiff(x_69, x_38, x_8, x_9, x_10, x_11, x_157); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_159 = lean_ctor_get(x_158, 0); lean_inc(x_159); -x_160 = lean_ctor_get(x_8, 5); +x_160 = lean_ctor_get(x_158, 1); lean_inc(x_160); -x_161 = lean_ctor_get(x_8, 6); +lean_dec(x_158); +x_161 = lean_ctor_get(x_159, 0); lean_inc(x_161); -x_162 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_163 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_164 = lean_ctor_get_uint8(x_66, 0); -x_165 = lean_ctor_get_uint8(x_66, 1); -x_166 = lean_ctor_get_uint8(x_66, 2); -x_167 = lean_ctor_get_uint8(x_66, 3); -x_168 = lean_ctor_get_uint8(x_66, 4); -x_169 = lean_ctor_get_uint8(x_66, 5); -x_170 = lean_ctor_get_uint8(x_66, 6); -x_171 = lean_ctor_get_uint8(x_66, 7); -x_172 = lean_ctor_get_uint8(x_66, 8); -x_173 = lean_ctor_get_uint8(x_66, 10); -x_174 = lean_ctor_get_uint8(x_66, 11); -x_175 = lean_ctor_get_uint8(x_66, 12); -x_176 = lean_ctor_get_uint8(x_66, 13); -x_177 = lean_ctor_get_uint8(x_66, 14); -x_178 = lean_ctor_get_uint8(x_66, 15); -x_179 = lean_ctor_get_uint8(x_66, 16); +x_162 = lean_ctor_get(x_159, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_163 = x_159; +} else { + lean_dec_ref(x_159); + x_163 = lean_box(0); +} +x_164 = l_Lean_indentExpr(x_161); +x_165 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_163)) { + x_166 = lean_alloc_ctor(7, 2, 0); +} else { + x_166 = x_163; + lean_ctor_set_tag(x_166, 7); +} +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_164); +x_167 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +lean_ctor_set_tag(x_65, 7); +lean_ctor_set(x_65, 1, x_167); +lean_ctor_set(x_65, 0, x_166); +x_168 = l_Lean_indentExpr(x_162); +lean_ctor_set_tag(x_46, 7); +lean_ctor_set(x_46, 1, x_168); +lean_ctor_set(x_46, 0, x_65); +x_169 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_169); +x_170 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_160); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_170; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_free_object(x_65); +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_171 = lean_ctor_get(x_158, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_158, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_173 = x_158; +} else { + lean_dec_ref(x_158); + x_173 = lean_box(0); +} +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(1, 2, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_172); +return x_174; +} +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_free_object(x_65); +lean_dec(x_69); +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_175 = lean_ctor_get(x_154, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_176 = x_154; +} else { + lean_dec_ref(x_154); + x_176 = lean_box(0); +} +x_177 = lean_box(0); +if (lean_is_scalar(x_176)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_176; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_175); +return x_178; +} +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_free_object(x_65); +lean_dec(x_69); +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_179 = lean_ctor_get(x_154, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_154, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_181 = x_154; +} else { + lean_dec_ref(x_154); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_183; uint64_t x_184; uint8_t 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; uint8_t x_192; uint8_t x_193; uint8_t x_194; uint8_t x_195; uint8_t x_196; uint8_t x_197; uint8_t x_198; uint8_t x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; uint64_t x_213; uint64_t x_214; uint64_t x_215; uint64_t x_216; uint64_t x_217; lean_object* x_218; lean_object* x_219; +x_183 = lean_ctor_get(x_65, 0); +lean_inc(x_183); +lean_dec(x_65); +x_184 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_185 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_186 = lean_ctor_get(x_8, 1); +lean_inc(x_186); +x_187 = lean_ctor_get(x_8, 2); +lean_inc(x_187); +x_188 = lean_ctor_get(x_8, 3); +lean_inc(x_188); +x_189 = lean_ctor_get(x_8, 4); +lean_inc(x_189); +x_190 = lean_ctor_get(x_8, 5); +lean_inc(x_190); +x_191 = lean_ctor_get(x_8, 6); +lean_inc(x_191); +x_192 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_193 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_194 = lean_ctor_get_uint8(x_66, 0); +x_195 = lean_ctor_get_uint8(x_66, 1); +x_196 = lean_ctor_get_uint8(x_66, 2); +x_197 = lean_ctor_get_uint8(x_66, 3); +x_198 = lean_ctor_get_uint8(x_66, 4); +x_199 = lean_ctor_get_uint8(x_66, 5); +x_200 = lean_ctor_get_uint8(x_66, 6); +x_201 = lean_ctor_get_uint8(x_66, 7); +x_202 = lean_ctor_get_uint8(x_66, 8); +x_203 = lean_ctor_get_uint8(x_66, 10); +x_204 = lean_ctor_get_uint8(x_66, 11); +x_205 = lean_ctor_get_uint8(x_66, 12); +x_206 = lean_ctor_get_uint8(x_66, 13); +x_207 = lean_ctor_get_uint8(x_66, 14); +x_208 = lean_ctor_get_uint8(x_66, 15); +x_209 = lean_ctor_get_uint8(x_66, 16); if (lean_is_exclusive(x_66)) { - x_180 = x_66; + x_210 = x_66; } else { lean_dec_ref(x_66); - x_180 = lean_box(0); + x_210 = lean_box(0); } -x_181 = 2; -if (lean_is_scalar(x_180)) { - x_182 = lean_alloc_ctor(0, 0, 17); +x_211 = 2; +if (lean_is_scalar(x_210)) { + x_212 = lean_alloc_ctor(0, 0, 17); } else { - x_182 = x_180; + x_212 = x_210; } -lean_ctor_set_uint8(x_182, 0, x_164); -lean_ctor_set_uint8(x_182, 1, x_165); -lean_ctor_set_uint8(x_182, 2, x_166); -lean_ctor_set_uint8(x_182, 3, x_167); -lean_ctor_set_uint8(x_182, 4, x_168); -lean_ctor_set_uint8(x_182, 5, x_169); -lean_ctor_set_uint8(x_182, 6, x_170); -lean_ctor_set_uint8(x_182, 7, x_171); -lean_ctor_set_uint8(x_182, 8, x_172); -lean_ctor_set_uint8(x_182, 9, x_181); -lean_ctor_set_uint8(x_182, 10, x_173); -lean_ctor_set_uint8(x_182, 11, x_174); -lean_ctor_set_uint8(x_182, 12, x_175); -lean_ctor_set_uint8(x_182, 13, x_176); -lean_ctor_set_uint8(x_182, 14, x_177); -lean_ctor_set_uint8(x_182, 15, x_178); -lean_ctor_set_uint8(x_182, 16, x_179); -x_183 = 2; -x_184 = lean_uint64_shift_right(x_154, x_183); -x_185 = lean_uint64_shift_left(x_184, x_183); -x_186 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_187 = lean_uint64_lor(x_185, x_186); -x_188 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_188, 0, x_182); -lean_ctor_set(x_188, 1, x_156); -lean_ctor_set(x_188, 2, x_157); -lean_ctor_set(x_188, 3, x_158); -lean_ctor_set(x_188, 4, x_159); -lean_ctor_set(x_188, 5, x_160); -lean_ctor_set(x_188, 6, x_161); -lean_ctor_set_uint64(x_188, sizeof(void*)*7, x_187); -lean_ctor_set_uint8(x_188, sizeof(void*)*7 + 8, x_155); -lean_ctor_set_uint8(x_188, sizeof(void*)*7 + 9, x_162); -lean_ctor_set_uint8(x_188, sizeof(void*)*7 + 10, x_163); +lean_ctor_set_uint8(x_212, 0, x_194); +lean_ctor_set_uint8(x_212, 1, x_195); +lean_ctor_set_uint8(x_212, 2, x_196); +lean_ctor_set_uint8(x_212, 3, x_197); +lean_ctor_set_uint8(x_212, 4, x_198); +lean_ctor_set_uint8(x_212, 5, x_199); +lean_ctor_set_uint8(x_212, 6, x_200); +lean_ctor_set_uint8(x_212, 7, x_201); +lean_ctor_set_uint8(x_212, 8, x_202); +lean_ctor_set_uint8(x_212, 9, x_211); +lean_ctor_set_uint8(x_212, 10, x_203); +lean_ctor_set_uint8(x_212, 11, x_204); +lean_ctor_set_uint8(x_212, 12, x_205); +lean_ctor_set_uint8(x_212, 13, x_206); +lean_ctor_set_uint8(x_212, 14, x_207); +lean_ctor_set_uint8(x_212, 15, x_208); +lean_ctor_set_uint8(x_212, 16, x_209); +x_213 = 2; +x_214 = lean_uint64_shift_right(x_184, x_213); +x_215 = lean_uint64_shift_left(x_214, x_213); +x_216 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_217 = lean_uint64_lor(x_215, x_216); +x_218 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_218, 0, x_212); +lean_ctor_set(x_218, 1, x_186); +lean_ctor_set(x_218, 2, x_187); +lean_ctor_set(x_218, 3, x_188); +lean_ctor_set(x_218, 4, x_189); +lean_ctor_set(x_218, 5, x_190); +lean_ctor_set(x_218, 6, x_191); +lean_ctor_set_uint64(x_218, sizeof(void*)*7, x_217); +lean_ctor_set_uint8(x_218, sizeof(void*)*7 + 8, x_185); +lean_ctor_set_uint8(x_218, sizeof(void*)*7 + 9, x_192); +lean_ctor_set_uint8(x_218, sizeof(void*)*7 + 10, x_193); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_38); -lean_inc(x_153); -x_189 = l_Lean_Meta_isExprDefEq(x_153, x_38, x_188, x_9, x_10, x_11, x_67); -if (lean_obj_tag(x_189) == 0) +lean_inc(x_183); +x_219 = l_Lean_Meta_isExprDefEq(x_183, x_38, x_218, x_9, x_10, x_11, x_67); +if (lean_obj_tag(x_219) == 0) { -lean_object* x_190; uint8_t x_191; -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_unbox(x_190); -lean_dec(x_190); -if (x_191 == 0) +lean_object* x_220; uint8_t x_221; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_unbox(x_220); +lean_dec(x_220); +if (x_221 == 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; lean_object* x_199; -x_192 = lean_ctor_get(x_189, 1); -lean_inc(x_192); -lean_dec(x_189); -x_193 = l_Lean_indentExpr(x_153); -x_194 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -x_195 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -x_196 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +lean_object* x_222; lean_object* x_223; +x_222 = lean_ctor_get(x_219, 1); +lean_inc(x_222); +lean_dec(x_219); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_223 = l_Lean_Meta_addPPExplicitToExposeDiff(x_183, x_38, x_8, x_9, x_10, x_11, x_222); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = lean_ctor_get(x_224, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_224, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_228 = x_224; +} else { + lean_dec_ref(x_224); + x_228 = lean_box(0); +} +x_229 = l_Lean_indentExpr(x_226); +x_230 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_228)) { + x_231 = lean_alloc_ctor(7, 2, 0); +} else { + x_231 = x_228; + lean_ctor_set_tag(x_231, 7); +} +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_229); +x_232 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +x_233 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +x_234 = l_Lean_indentExpr(x_227); lean_ctor_set_tag(x_46, 7); -lean_ctor_set(x_46, 1, x_196); -lean_ctor_set(x_46, 0, x_195); -x_197 = l_Lean_indentExpr(x_38); +lean_ctor_set(x_46, 1, x_234); +lean_ctor_set(x_46, 0, x_233); +x_235 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_197); -x_198 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_198); -lean_ctor_set(x_32, 0, x_44); -x_199 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_192); +lean_ctor_set(x_44, 1, x_235); +x_236 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_225); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_199; +return x_236; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_153); +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_free_object(x_46); lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_200 = lean_ctor_get(x_189, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_201 = x_189; +x_237 = lean_ctor_get(x_223, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_223, 1); +lean_inc(x_238); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_239 = x_223; } else { - lean_dec_ref(x_189); - x_201 = lean_box(0); + lean_dec_ref(x_223); + x_239 = lean_box(0); } -x_202 = lean_box(0); -if (lean_is_scalar(x_201)) { - x_203 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_239)) { + x_240 = lean_alloc_ctor(1, 2, 0); } else { - x_203 = x_201; + x_240 = x_239; } -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_200); -return x_203; +lean_ctor_set(x_240, 0, x_237); +lean_ctor_set(x_240, 1, x_238); +return x_240; } } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_153); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_183); lean_free_object(x_46); lean_free_object(x_44); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_204 = lean_ctor_get(x_189, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_189, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_206 = x_189; +x_241 = lean_ctor_get(x_219, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_242 = x_219; } else { - lean_dec_ref(x_189); - x_206 = lean_box(0); + lean_dec_ref(x_219); + x_242 = lean_box(0); } -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); +x_243 = lean_box(0); +if (lean_is_scalar(x_242)) { + x_244 = lean_alloc_ctor(0, 2, 0); } else { - x_207 = x_206; -} -lean_ctor_set(x_207, 0, x_204); -lean_ctor_set(x_207, 1, x_205); -return x_207; + x_244 = x_242; } +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_241); +return x_244; } } else { -uint8_t x_208; +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_183); lean_free_object(x_46); lean_free_object(x_44); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_208 = !lean_is_exclusive(x_64); -if (x_208 == 0) +x_245 = lean_ctor_get(x_219, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_219, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_219)) { + lean_ctor_release(x_219, 0); + lean_ctor_release(x_219, 1); + x_247 = x_219; +} else { + lean_dec_ref(x_219); + x_247 = lean_box(0); +} +if (lean_is_scalar(x_247)) { + x_248 = lean_alloc_ctor(1, 2, 0); +} else { + x_248 = x_247; +} +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); +return x_248; +} +} +} +else +{ +uint8_t x_249; +lean_free_object(x_46); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_249 = !lean_is_exclusive(x_64); +if (x_249 == 0) { return x_64; } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_64, 0); -x_210 = lean_ctor_get(x_64, 1); -lean_inc(x_210); -lean_inc(x_209); +lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_250 = lean_ctor_get(x_64, 0); +x_251 = lean_ctor_get(x_64, 1); +lean_inc(x_251); +lean_inc(x_250); lean_dec(x_64); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -return x_211; +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +return x_252; } } } else { -uint8_t x_212; +uint8_t x_253; lean_free_object(x_46); lean_free_object(x_44); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_212 = !lean_is_exclusive(x_61); -if (x_212 == 0) +x_253 = !lean_is_exclusive(x_61); +if (x_253 == 0) { return x_61; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_61, 0); -x_214 = lean_ctor_get(x_61, 1); -lean_inc(x_214); -lean_inc(x_213); +lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_254 = lean_ctor_get(x_61, 0); +x_255 = lean_ctor_get(x_61, 1); +lean_inc(x_255); +lean_inc(x_254); lean_dec(x_61); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set(x_256, 1, x_255); +return x_256; } } } else { -lean_object* x_216; lean_object* x_217; -x_216 = lean_ctor_get(x_46, 0); -lean_inc(x_216); +lean_object* x_257; lean_object* x_258; +x_257 = lean_ctor_get(x_46, 0); +lean_inc(x_257); lean_dec(x_46); -x_217 = l_Lean_MVarId_getType(x_216, x_8, x_9, x_10, x_11, x_57); -if (lean_obj_tag(x_217) == 0) +x_258 = l_Lean_MVarId_getType(x_257, x_8, x_9, x_10, x_11, x_57); +if (lean_obj_tag(x_258) == 0) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -lean_dec(x_217); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); +lean_dec(x_258); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_220 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_218, x_8, x_9, x_10, x_11, x_219); -if (lean_obj_tag(x_220) == 0) +x_261 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_259, x_8, x_9, x_10, x_11, x_260); +if (lean_obj_tag(x_261) == 0) { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint64_t x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; uint8_t x_235; uint8_t x_236; uint8_t x_237; uint8_t x_238; uint8_t x_239; uint8_t x_240; uint8_t x_241; uint8_t x_242; uint8_t x_243; uint8_t x_244; uint8_t x_245; uint8_t x_246; uint8_t x_247; uint8_t x_248; uint8_t x_249; uint8_t x_250; uint8_t x_251; lean_object* x_252; uint8_t x_253; lean_object* x_254; uint64_t x_255; uint64_t x_256; uint64_t x_257; uint64_t x_258; uint64_t x_259; lean_object* x_260; lean_object* x_261; -x_221 = lean_ctor_get(x_220, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_8, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_220, 1); -lean_inc(x_223); -lean_dec(x_220); -x_224 = lean_ctor_get(x_221, 0); -lean_inc(x_224); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_225 = x_221; +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint64_t x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; uint8_t x_276; uint8_t x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; uint8_t x_281; uint8_t x_282; uint8_t x_283; uint8_t x_284; uint8_t x_285; uint8_t x_286; uint8_t x_287; uint8_t x_288; uint8_t x_289; uint8_t x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; uint8_t x_294; lean_object* x_295; uint64_t x_296; uint64_t x_297; uint64_t x_298; uint64_t x_299; uint64_t x_300; lean_object* x_301; lean_object* x_302; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_8, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_261, 1); +lean_inc(x_264); +lean_dec(x_261); +x_265 = lean_ctor_get(x_262, 0); +lean_inc(x_265); +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_266 = x_262; } else { - lean_dec_ref(x_221); - x_225 = lean_box(0); + lean_dec_ref(x_262); + x_266 = lean_box(0); } -x_226 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); -x_227 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); -x_228 = lean_ctor_get(x_8, 1); -lean_inc(x_228); -x_229 = lean_ctor_get(x_8, 2); -lean_inc(x_229); -x_230 = lean_ctor_get(x_8, 3); -lean_inc(x_230); -x_231 = lean_ctor_get(x_8, 4); -lean_inc(x_231); -x_232 = lean_ctor_get(x_8, 5); -lean_inc(x_232); -x_233 = lean_ctor_get(x_8, 6); -lean_inc(x_233); -x_234 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_235 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_236 = lean_ctor_get_uint8(x_222, 0); -x_237 = lean_ctor_get_uint8(x_222, 1); -x_238 = lean_ctor_get_uint8(x_222, 2); -x_239 = lean_ctor_get_uint8(x_222, 3); -x_240 = lean_ctor_get_uint8(x_222, 4); -x_241 = lean_ctor_get_uint8(x_222, 5); -x_242 = lean_ctor_get_uint8(x_222, 6); -x_243 = lean_ctor_get_uint8(x_222, 7); -x_244 = lean_ctor_get_uint8(x_222, 8); -x_245 = lean_ctor_get_uint8(x_222, 10); -x_246 = lean_ctor_get_uint8(x_222, 11); -x_247 = lean_ctor_get_uint8(x_222, 12); -x_248 = lean_ctor_get_uint8(x_222, 13); -x_249 = lean_ctor_get_uint8(x_222, 14); -x_250 = lean_ctor_get_uint8(x_222, 15); -x_251 = lean_ctor_get_uint8(x_222, 16); -if (lean_is_exclusive(x_222)) { - x_252 = x_222; +x_267 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_268 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_269 = lean_ctor_get(x_8, 1); +lean_inc(x_269); +x_270 = lean_ctor_get(x_8, 2); +lean_inc(x_270); +x_271 = lean_ctor_get(x_8, 3); +lean_inc(x_271); +x_272 = lean_ctor_get(x_8, 4); +lean_inc(x_272); +x_273 = lean_ctor_get(x_8, 5); +lean_inc(x_273); +x_274 = lean_ctor_get(x_8, 6); +lean_inc(x_274); +x_275 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_276 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_277 = lean_ctor_get_uint8(x_263, 0); +x_278 = lean_ctor_get_uint8(x_263, 1); +x_279 = lean_ctor_get_uint8(x_263, 2); +x_280 = lean_ctor_get_uint8(x_263, 3); +x_281 = lean_ctor_get_uint8(x_263, 4); +x_282 = lean_ctor_get_uint8(x_263, 5); +x_283 = lean_ctor_get_uint8(x_263, 6); +x_284 = lean_ctor_get_uint8(x_263, 7); +x_285 = lean_ctor_get_uint8(x_263, 8); +x_286 = lean_ctor_get_uint8(x_263, 10); +x_287 = lean_ctor_get_uint8(x_263, 11); +x_288 = lean_ctor_get_uint8(x_263, 12); +x_289 = lean_ctor_get_uint8(x_263, 13); +x_290 = lean_ctor_get_uint8(x_263, 14); +x_291 = lean_ctor_get_uint8(x_263, 15); +x_292 = lean_ctor_get_uint8(x_263, 16); +if (lean_is_exclusive(x_263)) { + x_293 = x_263; } else { - lean_dec_ref(x_222); - x_252 = lean_box(0); + lean_dec_ref(x_263); + x_293 = lean_box(0); } -x_253 = 2; -if (lean_is_scalar(x_252)) { - x_254 = lean_alloc_ctor(0, 0, 17); +x_294 = 2; +if (lean_is_scalar(x_293)) { + x_295 = lean_alloc_ctor(0, 0, 17); } else { - x_254 = x_252; + x_295 = x_293; } -lean_ctor_set_uint8(x_254, 0, x_236); -lean_ctor_set_uint8(x_254, 1, x_237); -lean_ctor_set_uint8(x_254, 2, x_238); -lean_ctor_set_uint8(x_254, 3, x_239); -lean_ctor_set_uint8(x_254, 4, x_240); -lean_ctor_set_uint8(x_254, 5, x_241); -lean_ctor_set_uint8(x_254, 6, x_242); -lean_ctor_set_uint8(x_254, 7, x_243); -lean_ctor_set_uint8(x_254, 8, x_244); -lean_ctor_set_uint8(x_254, 9, x_253); -lean_ctor_set_uint8(x_254, 10, x_245); -lean_ctor_set_uint8(x_254, 11, x_246); -lean_ctor_set_uint8(x_254, 12, x_247); -lean_ctor_set_uint8(x_254, 13, x_248); -lean_ctor_set_uint8(x_254, 14, x_249); -lean_ctor_set_uint8(x_254, 15, x_250); -lean_ctor_set_uint8(x_254, 16, x_251); -x_255 = 2; -x_256 = lean_uint64_shift_right(x_226, x_255); -x_257 = lean_uint64_shift_left(x_256, x_255); -x_258 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_259 = lean_uint64_lor(x_257, x_258); -x_260 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_260, 0, x_254); -lean_ctor_set(x_260, 1, x_228); -lean_ctor_set(x_260, 2, x_229); -lean_ctor_set(x_260, 3, x_230); -lean_ctor_set(x_260, 4, x_231); -lean_ctor_set(x_260, 5, x_232); -lean_ctor_set(x_260, 6, x_233); -lean_ctor_set_uint64(x_260, sizeof(void*)*7, x_259); -lean_ctor_set_uint8(x_260, sizeof(void*)*7 + 8, x_227); -lean_ctor_set_uint8(x_260, sizeof(void*)*7 + 9, x_234); -lean_ctor_set_uint8(x_260, sizeof(void*)*7 + 10, x_235); +lean_ctor_set_uint8(x_295, 0, x_277); +lean_ctor_set_uint8(x_295, 1, x_278); +lean_ctor_set_uint8(x_295, 2, x_279); +lean_ctor_set_uint8(x_295, 3, x_280); +lean_ctor_set_uint8(x_295, 4, x_281); +lean_ctor_set_uint8(x_295, 5, x_282); +lean_ctor_set_uint8(x_295, 6, x_283); +lean_ctor_set_uint8(x_295, 7, x_284); +lean_ctor_set_uint8(x_295, 8, x_285); +lean_ctor_set_uint8(x_295, 9, x_294); +lean_ctor_set_uint8(x_295, 10, x_286); +lean_ctor_set_uint8(x_295, 11, x_287); +lean_ctor_set_uint8(x_295, 12, x_288); +lean_ctor_set_uint8(x_295, 13, x_289); +lean_ctor_set_uint8(x_295, 14, x_290); +lean_ctor_set_uint8(x_295, 15, x_291); +lean_ctor_set_uint8(x_295, 16, x_292); +x_296 = 2; +x_297 = lean_uint64_shift_right(x_267, x_296); +x_298 = lean_uint64_shift_left(x_297, x_296); +x_299 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_300 = lean_uint64_lor(x_298, x_299); +x_301 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_301, 0, x_295); +lean_ctor_set(x_301, 1, x_269); +lean_ctor_set(x_301, 2, x_270); +lean_ctor_set(x_301, 3, x_271); +lean_ctor_set(x_301, 4, x_272); +lean_ctor_set(x_301, 5, x_273); +lean_ctor_set(x_301, 6, x_274); +lean_ctor_set_uint64(x_301, sizeof(void*)*7, x_300); +lean_ctor_set_uint8(x_301, sizeof(void*)*7 + 8, x_268); +lean_ctor_set_uint8(x_301, sizeof(void*)*7 + 9, x_275); +lean_ctor_set_uint8(x_301, sizeof(void*)*7 + 10, x_276); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_38); -lean_inc(x_224); -x_261 = l_Lean_Meta_isExprDefEq(x_224, x_38, x_260, x_9, x_10, x_11, x_223); -if (lean_obj_tag(x_261) == 0) +lean_inc(x_265); +x_302 = l_Lean_Meta_isExprDefEq(x_265, x_38, x_301, x_9, x_10, x_11, x_264); +if (lean_obj_tag(x_302) == 0) { -lean_object* x_262; uint8_t x_263; -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_unbox(x_262); -lean_dec(x_262); -if (x_263 == 0) +lean_object* x_303; uint8_t x_304; +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_unbox(x_303); +lean_dec(x_303); +if (x_304 == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_264 = lean_ctor_get(x_261, 1); -lean_inc(x_264); -lean_dec(x_261); -x_265 = l_Lean_indentExpr(x_224); -x_266 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -if (lean_is_scalar(x_225)) { - x_267 = lean_alloc_ctor(7, 2, 0); +lean_object* x_305; lean_object* x_306; +x_305 = lean_ctor_get(x_302, 1); +lean_inc(x_305); +lean_dec(x_302); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_306 = l_Lean_Meta_addPPExplicitToExposeDiff(x_265, x_38, x_8, x_9, x_10, x_11, x_305); +if (lean_obj_tag(x_306) == 0) +{ +lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +lean_dec(x_306); +x_309 = lean_ctor_get(x_307, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_307, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_311 = x_307; } else { - x_267 = x_225; - lean_ctor_set_tag(x_267, 7); + lean_dec_ref(x_307); + x_311 = lean_box(0); } -lean_ctor_set(x_267, 0, x_266); -lean_ctor_set(x_267, 1, x_265); -x_268 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; -x_269 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_269, 0, x_267); -lean_ctor_set(x_269, 1, x_268); -x_270 = l_Lean_indentExpr(x_38); -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_270); -lean_ctor_set(x_44, 0, x_269); -x_271 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_271); -lean_ctor_set(x_32, 0, x_44); -x_272 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_264); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_272; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_225); -lean_dec(x_224); -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_273 = lean_ctor_get(x_261, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_274 = x_261; -} else { - lean_dec_ref(x_261); - x_274 = lean_box(0); -} -x_275 = lean_box(0); -if (lean_is_scalar(x_274)) { - x_276 = lean_alloc_ctor(0, 2, 0); -} else { - x_276 = x_274; -} -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_273); -return x_276; -} -} -else -{ -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_dec(x_225); -lean_dec(x_224); -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_277 = lean_ctor_get(x_261, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_261, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_279 = x_261; -} else { - lean_dec_ref(x_261); - x_279 = lean_box(0); -} -if (lean_is_scalar(x_279)) { - x_280 = lean_alloc_ctor(1, 2, 0); -} else { - x_280 = x_279; -} -lean_ctor_set(x_280, 0, x_277); -lean_ctor_set(x_280, 1, x_278); -return x_280; -} -} -else -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_281 = lean_ctor_get(x_220, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_220, 1); -lean_inc(x_282); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_283 = x_220; -} else { - lean_dec_ref(x_220); - x_283 = lean_box(0); -} -if (lean_is_scalar(x_283)) { - x_284 = lean_alloc_ctor(1, 2, 0); -} else { - x_284 = x_283; -} -lean_ctor_set(x_284, 0, x_281); -lean_ctor_set(x_284, 1, x_282); -return x_284; -} -} -else -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -lean_free_object(x_44); -lean_dec(x_38); -lean_free_object(x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_285 = lean_ctor_get(x_217, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_217, 1); -lean_inc(x_286); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_287 = x_217; -} else { - lean_dec_ref(x_217); - x_287 = lean_box(0); -} -if (lean_is_scalar(x_287)) { - x_288 = lean_alloc_ctor(1, 2, 0); -} else { - x_288 = x_287; -} -lean_ctor_set(x_288, 0, x_285); -lean_ctor_set(x_288, 1, x_286); -return x_288; -} -} -} -else -{ -uint8_t x_289; -x_289 = !lean_is_exclusive(x_46); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; uint8_t x_292; -x_290 = lean_ctor_get(x_46, 1); -lean_dec(x_290); -x_291 = lean_ctor_get(x_46, 0); -lean_dec(x_291); -x_292 = !lean_is_exclusive(x_56); -if (x_292 == 0) -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_293 = lean_ctor_get(x_56, 1); -lean_dec(x_293); -x_294 = lean_ctor_get(x_56, 0); -lean_dec(x_294); -x_295 = lean_ctor_get(x_43, 1); -lean_inc(x_295); -lean_dec(x_43); -x_296 = l_Lean_MessageData_ofSyntax(x_3); -x_297 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_56, 7); -lean_ctor_set(x_56, 1, x_296); -lean_ctor_set(x_56, 0, x_297); -x_298 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -lean_ctor_set_tag(x_46, 7); -lean_ctor_set(x_46, 1, x_298); -lean_ctor_set(x_46, 0, x_56); -x_299 = l_Lean_indentExpr(x_38); -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_299); -x_300 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_300); -lean_ctor_set(x_32, 0, x_44); -x_301 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_295); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_301; -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -lean_dec(x_56); -x_302 = lean_ctor_get(x_43, 1); -lean_inc(x_302); -lean_dec(x_43); -x_303 = l_Lean_MessageData_ofSyntax(x_3); -x_304 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -x_305 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_305, 0, x_304); -lean_ctor_set(x_305, 1, x_303); -x_306 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -lean_ctor_set_tag(x_46, 7); -lean_ctor_set(x_46, 1, x_306); -lean_ctor_set(x_46, 0, x_305); -x_307 = l_Lean_indentExpr(x_38); -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_307); -x_308 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_308); -lean_ctor_set(x_32, 0, x_44); -x_309 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_302); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_309; -} -} -else -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; -lean_dec(x_46); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_310 = x_56; -} else { - lean_dec_ref(x_56); - x_310 = lean_box(0); -} -x_311 = lean_ctor_get(x_43, 1); -lean_inc(x_311); -lean_dec(x_43); -x_312 = l_Lean_MessageData_ofSyntax(x_3); -x_313 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_310)) { +x_312 = l_Lean_indentExpr(x_309); +x_313 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_311)) { x_314 = lean_alloc_ctor(7, 2, 0); } else { - x_314 = x_310; + x_314 = x_311; lean_ctor_set_tag(x_314, 7); } lean_ctor_set(x_314, 0, x_313); lean_ctor_set(x_314, 1, x_312); -x_315 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -x_316 = lean_alloc_ctor(7, 2, 0); +x_315 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +if (lean_is_scalar(x_266)) { + x_316 = lean_alloc_ctor(7, 2, 0); +} else { + x_316 = x_266; + lean_ctor_set_tag(x_316, 7); +} lean_ctor_set(x_316, 0, x_314); lean_ctor_set(x_316, 1, x_315); -x_317 = l_Lean_indentExpr(x_38); +x_317 = l_Lean_indentExpr(x_310); +x_318 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_318, 0, x_316); +lean_ctor_set(x_318, 1, x_317); +x_319 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_317); -lean_ctor_set(x_44, 0, x_316); -x_318 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_318); -lean_ctor_set(x_32, 0, x_44); -x_319 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_311); +lean_ctor_set(x_44, 1, x_319); +lean_ctor_set(x_44, 0, x_318); +x_320 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_308); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_319; -} -} -} +return x_320; } else { -lean_object* x_320; -x_320 = lean_ctor_get(x_44, 0); -lean_inc(x_320); -lean_dec(x_44); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; -x_321 = lean_ctor_get(x_43, 1); +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_266); +lean_free_object(x_44); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_321 = lean_ctor_get(x_306, 0); lean_inc(x_321); -lean_dec(x_43); -x_322 = l_Lean_MessageData_ofSyntax(x_3); -x_323 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -x_324 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_324, 0, x_323); +x_322 = lean_ctor_get(x_306, 1); +lean_inc(x_322); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_323 = x_306; +} else { + lean_dec_ref(x_306); + x_323 = lean_box(0); +} +if (lean_is_scalar(x_323)) { + x_324 = lean_alloc_ctor(1, 2, 0); +} else { + x_324 = x_323; +} +lean_ctor_set(x_324, 0, x_321); lean_ctor_set(x_324, 1, x_322); -x_325 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; +return x_324; +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +lean_dec(x_266); +lean_dec(x_265); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_325 = lean_ctor_get(x_302, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_326 = x_302; +} else { + lean_dec_ref(x_302); + x_326 = lean_box(0); +} +x_327 = lean_box(0); +if (lean_is_scalar(x_326)) { + x_328 = lean_alloc_ctor(0, 2, 0); +} else { + x_328 = x_326; +} +lean_ctor_set(x_328, 0, x_327); +lean_ctor_set(x_328, 1, x_325); +return x_328; +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +lean_dec(x_266); +lean_dec(x_265); +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_329 = lean_ctor_get(x_302, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_302, 1); +lean_inc(x_330); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_331 = x_302; +} else { + lean_dec_ref(x_302); + x_331 = lean_box(0); +} +if (lean_is_scalar(x_331)) { + x_332 = lean_alloc_ctor(1, 2, 0); +} else { + x_332 = x_331; +} +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_332, 1, x_330); +return x_332; +} +} +else +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_333 = lean_ctor_get(x_261, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_261, 1); +lean_inc(x_334); +if (lean_is_exclusive(x_261)) { + lean_ctor_release(x_261, 0); + lean_ctor_release(x_261, 1); + x_335 = x_261; +} else { + lean_dec_ref(x_261); + x_335 = lean_box(0); +} +if (lean_is_scalar(x_335)) { + x_336 = lean_alloc_ctor(1, 2, 0); +} else { + x_336 = x_335; +} +lean_ctor_set(x_336, 0, x_333); +lean_ctor_set(x_336, 1, x_334); +return x_336; +} +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; +lean_free_object(x_44); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_337 = lean_ctor_get(x_258, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_258, 1); +lean_inc(x_338); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_339 = x_258; +} else { + lean_dec_ref(x_258); + x_339 = lean_box(0); +} +if (lean_is_scalar(x_339)) { + x_340 = lean_alloc_ctor(1, 2, 0); +} else { + x_340 = x_339; +} +lean_ctor_set(x_340, 0, x_337); +lean_ctor_set(x_340, 1, x_338); +return x_340; +} +} +} +else +{ +uint8_t x_341; +x_341 = !lean_is_exclusive(x_46); +if (x_341 == 0) +{ +lean_object* x_342; lean_object* x_343; uint8_t x_344; +x_342 = lean_ctor_get(x_46, 1); +lean_dec(x_342); +x_343 = lean_ctor_get(x_46, 0); +lean_dec(x_343); +x_344 = !lean_is_exclusive(x_56); +if (x_344 == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_345 = lean_ctor_get(x_56, 1); +lean_dec(x_345); +x_346 = lean_ctor_get(x_56, 0); +lean_dec(x_346); +x_347 = lean_ctor_get(x_43, 1); +lean_inc(x_347); +lean_dec(x_43); +x_348 = l_Lean_MessageData_ofSyntax(x_3); +x_349 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +lean_ctor_set_tag(x_56, 7); +lean_ctor_set(x_56, 1, x_348); +lean_ctor_set(x_56, 0, x_349); +x_350 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +lean_ctor_set_tag(x_46, 7); +lean_ctor_set(x_46, 1, x_350); +lean_ctor_set(x_46, 0, x_56); +x_351 = l_Lean_indentExpr(x_38); +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_351); +x_352 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_325); -lean_ctor_set(x_32, 0, x_324); -x_326 = l_Lean_indentExpr(x_38); -lean_ctor_set_tag(x_25, 7); -lean_ctor_set(x_25, 1, x_326); -lean_ctor_set(x_25, 0, x_32); -x_327 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -x_328 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_328, 0, x_25); -lean_ctor_set(x_328, 1, x_327); -x_329 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_328, x_6, x_7, x_8, x_9, x_10, x_11, x_321); +lean_ctor_set(x_32, 1, x_352); +lean_ctor_set(x_32, 0, x_44); +x_353 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_347); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_329; +return x_353; } else { -lean_object* x_330; -lean_free_object(x_25); -x_330 = lean_ctor_get(x_320, 1); -lean_inc(x_330); -if (lean_obj_tag(x_330) == 0) -{ -lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; -lean_dec(x_3); -x_331 = lean_ctor_get(x_43, 1); -lean_inc(x_331); +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_dec(x_56); +x_354 = lean_ctor_get(x_43, 1); +lean_inc(x_354); lean_dec(x_43); -x_332 = lean_ctor_get(x_320, 0); -lean_inc(x_332); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - x_333 = x_320; -} else { - lean_dec_ref(x_320); - x_333 = lean_box(0); +x_355 = l_Lean_MessageData_ofSyntax(x_3); +x_356 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +x_357 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_355); +x_358 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +lean_ctor_set_tag(x_46, 7); +lean_ctor_set(x_46, 1, x_358); +lean_ctor_set(x_46, 0, x_357); +x_359 = l_Lean_indentExpr(x_38); +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_359); +x_360 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_360); +lean_ctor_set(x_32, 0, x_44); +x_361 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_354); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_361; } -x_334 = l_Lean_MVarId_getType(x_332, x_8, x_9, x_10, x_11, x_331); -if (lean_obj_tag(x_334) == 0) +} +else { -lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); -lean_inc(x_336); -lean_dec(x_334); +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_46); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_362 = x_56; +} else { + lean_dec_ref(x_56); + x_362 = lean_box(0); +} +x_363 = lean_ctor_get(x_43, 1); +lean_inc(x_363); +lean_dec(x_43); +x_364 = l_Lean_MessageData_ofSyntax(x_3); +x_365 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_362)) { + x_366 = lean_alloc_ctor(7, 2, 0); +} else { + x_366 = x_362; + lean_ctor_set_tag(x_366, 7); +} +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_364); +x_367 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +x_368 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +x_369 = l_Lean_indentExpr(x_38); +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_369); +lean_ctor_set(x_44, 0, x_368); +x_370 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_370); +lean_ctor_set(x_32, 0, x_44); +x_371 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_363); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_371; +} +} +} +} +else +{ +lean_object* x_372; +x_372 = lean_ctor_get(x_44, 0); +lean_inc(x_372); +lean_dec(x_44); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +x_373 = lean_ctor_get(x_43, 1); +lean_inc(x_373); +lean_dec(x_43); +x_374 = l_Lean_MessageData_ofSyntax(x_3); +x_375 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +x_376 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_376, 0, x_375); +lean_ctor_set(x_376, 1, x_374); +x_377 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_377); +lean_ctor_set(x_32, 0, x_376); +x_378 = l_Lean_indentExpr(x_38); +lean_ctor_set_tag(x_25, 7); +lean_ctor_set(x_25, 1, x_378); +lean_ctor_set(x_25, 0, x_32); +x_379 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +x_380 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_380, 0, x_25); +lean_ctor_set(x_380, 1, x_379); +x_381 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_380, x_6, x_7, x_8, x_9, x_10, x_11, x_373); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_381; +} +else +{ +lean_object* x_382; +lean_free_object(x_25); +x_382 = lean_ctor_get(x_372, 1); +lean_inc(x_382); +if (lean_obj_tag(x_382) == 0) +{ +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; +lean_free_object(x_32); +lean_dec(x_3); +x_383 = lean_ctor_get(x_43, 1); +lean_inc(x_383); +lean_dec(x_43); +x_384 = lean_ctor_get(x_372, 0); +lean_inc(x_384); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + x_385 = x_372; +} else { + lean_dec_ref(x_372); + x_385 = lean_box(0); +} +x_386 = l_Lean_MVarId_getType(x_384, x_8, x_9, x_10, x_11, x_383); +if (lean_obj_tag(x_386) == 0) +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_387 = lean_ctor_get(x_386, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +lean_dec(x_386); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_337 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_335, x_8, x_9, x_10, x_11, x_336); -if (lean_obj_tag(x_337) == 0) +x_389 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_387, x_8, x_9, x_10, x_11, x_388); +if (lean_obj_tag(x_389) == 0) { -lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint64_t x_343; uint8_t 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; uint8_t x_351; uint8_t x_352; uint8_t x_353; uint8_t x_354; uint8_t x_355; uint8_t x_356; uint8_t x_357; uint8_t x_358; uint8_t x_359; uint8_t x_360; uint8_t x_361; uint8_t x_362; uint8_t x_363; uint8_t x_364; uint8_t x_365; uint8_t x_366; uint8_t x_367; uint8_t x_368; lean_object* x_369; uint8_t x_370; lean_object* x_371; uint64_t x_372; uint64_t x_373; uint64_t x_374; uint64_t x_375; uint64_t x_376; lean_object* x_377; lean_object* x_378; -x_338 = lean_ctor_get(x_337, 0); -lean_inc(x_338); -x_339 = lean_ctor_get(x_8, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_337, 1); -lean_inc(x_340); -lean_dec(x_337); -x_341 = lean_ctor_get(x_338, 0); -lean_inc(x_341); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_342 = x_338; +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; uint64_t x_395; uint8_t 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; uint8_t x_403; uint8_t x_404; uint8_t x_405; uint8_t x_406; uint8_t x_407; uint8_t x_408; uint8_t x_409; uint8_t x_410; uint8_t x_411; uint8_t x_412; uint8_t x_413; uint8_t x_414; uint8_t x_415; uint8_t x_416; uint8_t x_417; uint8_t x_418; uint8_t x_419; uint8_t x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; uint64_t x_424; uint64_t x_425; uint64_t x_426; uint64_t x_427; uint64_t x_428; lean_object* x_429; lean_object* x_430; +x_390 = lean_ctor_get(x_389, 0); +lean_inc(x_390); +x_391 = lean_ctor_get(x_8, 0); +lean_inc(x_391); +x_392 = lean_ctor_get(x_389, 1); +lean_inc(x_392); +lean_dec(x_389); +x_393 = lean_ctor_get(x_390, 0); +lean_inc(x_393); +if (lean_is_exclusive(x_390)) { + lean_ctor_release(x_390, 0); + lean_ctor_release(x_390, 1); + x_394 = x_390; } else { - lean_dec_ref(x_338); - x_342 = lean_box(0); + lean_dec_ref(x_390); + x_394 = lean_box(0); } -x_343 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); -x_344 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); -x_345 = lean_ctor_get(x_8, 1); -lean_inc(x_345); -x_346 = lean_ctor_get(x_8, 2); -lean_inc(x_346); -x_347 = lean_ctor_get(x_8, 3); -lean_inc(x_347); -x_348 = lean_ctor_get(x_8, 4); -lean_inc(x_348); -x_349 = lean_ctor_get(x_8, 5); -lean_inc(x_349); -x_350 = lean_ctor_get(x_8, 6); -lean_inc(x_350); -x_351 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_352 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_353 = lean_ctor_get_uint8(x_339, 0); -x_354 = lean_ctor_get_uint8(x_339, 1); -x_355 = lean_ctor_get_uint8(x_339, 2); -x_356 = lean_ctor_get_uint8(x_339, 3); -x_357 = lean_ctor_get_uint8(x_339, 4); -x_358 = lean_ctor_get_uint8(x_339, 5); -x_359 = lean_ctor_get_uint8(x_339, 6); -x_360 = lean_ctor_get_uint8(x_339, 7); -x_361 = lean_ctor_get_uint8(x_339, 8); -x_362 = lean_ctor_get_uint8(x_339, 10); -x_363 = lean_ctor_get_uint8(x_339, 11); -x_364 = lean_ctor_get_uint8(x_339, 12); -x_365 = lean_ctor_get_uint8(x_339, 13); -x_366 = lean_ctor_get_uint8(x_339, 14); -x_367 = lean_ctor_get_uint8(x_339, 15); -x_368 = lean_ctor_get_uint8(x_339, 16); -if (lean_is_exclusive(x_339)) { - x_369 = x_339; +x_395 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_396 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_397 = lean_ctor_get(x_8, 1); +lean_inc(x_397); +x_398 = lean_ctor_get(x_8, 2); +lean_inc(x_398); +x_399 = lean_ctor_get(x_8, 3); +lean_inc(x_399); +x_400 = lean_ctor_get(x_8, 4); +lean_inc(x_400); +x_401 = lean_ctor_get(x_8, 5); +lean_inc(x_401); +x_402 = lean_ctor_get(x_8, 6); +lean_inc(x_402); +x_403 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_404 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_405 = lean_ctor_get_uint8(x_391, 0); +x_406 = lean_ctor_get_uint8(x_391, 1); +x_407 = lean_ctor_get_uint8(x_391, 2); +x_408 = lean_ctor_get_uint8(x_391, 3); +x_409 = lean_ctor_get_uint8(x_391, 4); +x_410 = lean_ctor_get_uint8(x_391, 5); +x_411 = lean_ctor_get_uint8(x_391, 6); +x_412 = lean_ctor_get_uint8(x_391, 7); +x_413 = lean_ctor_get_uint8(x_391, 8); +x_414 = lean_ctor_get_uint8(x_391, 10); +x_415 = lean_ctor_get_uint8(x_391, 11); +x_416 = lean_ctor_get_uint8(x_391, 12); +x_417 = lean_ctor_get_uint8(x_391, 13); +x_418 = lean_ctor_get_uint8(x_391, 14); +x_419 = lean_ctor_get_uint8(x_391, 15); +x_420 = lean_ctor_get_uint8(x_391, 16); +if (lean_is_exclusive(x_391)) { + x_421 = x_391; } else { - lean_dec_ref(x_339); - x_369 = lean_box(0); + lean_dec_ref(x_391); + x_421 = lean_box(0); } -x_370 = 2; -if (lean_is_scalar(x_369)) { - x_371 = lean_alloc_ctor(0, 0, 17); +x_422 = 2; +if (lean_is_scalar(x_421)) { + x_423 = lean_alloc_ctor(0, 0, 17); } else { - x_371 = x_369; + x_423 = x_421; } -lean_ctor_set_uint8(x_371, 0, x_353); -lean_ctor_set_uint8(x_371, 1, x_354); -lean_ctor_set_uint8(x_371, 2, x_355); -lean_ctor_set_uint8(x_371, 3, x_356); -lean_ctor_set_uint8(x_371, 4, x_357); -lean_ctor_set_uint8(x_371, 5, x_358); -lean_ctor_set_uint8(x_371, 6, x_359); -lean_ctor_set_uint8(x_371, 7, x_360); -lean_ctor_set_uint8(x_371, 8, x_361); -lean_ctor_set_uint8(x_371, 9, x_370); -lean_ctor_set_uint8(x_371, 10, x_362); -lean_ctor_set_uint8(x_371, 11, x_363); -lean_ctor_set_uint8(x_371, 12, x_364); -lean_ctor_set_uint8(x_371, 13, x_365); -lean_ctor_set_uint8(x_371, 14, x_366); -lean_ctor_set_uint8(x_371, 15, x_367); -lean_ctor_set_uint8(x_371, 16, x_368); -x_372 = 2; -x_373 = lean_uint64_shift_right(x_343, x_372); -x_374 = lean_uint64_shift_left(x_373, x_372); -x_375 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_376 = lean_uint64_lor(x_374, x_375); -x_377 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_377, 0, x_371); -lean_ctor_set(x_377, 1, x_345); -lean_ctor_set(x_377, 2, x_346); -lean_ctor_set(x_377, 3, x_347); -lean_ctor_set(x_377, 4, x_348); -lean_ctor_set(x_377, 5, x_349); -lean_ctor_set(x_377, 6, x_350); -lean_ctor_set_uint64(x_377, sizeof(void*)*7, x_376); -lean_ctor_set_uint8(x_377, sizeof(void*)*7 + 8, x_344); -lean_ctor_set_uint8(x_377, sizeof(void*)*7 + 9, x_351); -lean_ctor_set_uint8(x_377, sizeof(void*)*7 + 10, x_352); +lean_ctor_set_uint8(x_423, 0, x_405); +lean_ctor_set_uint8(x_423, 1, x_406); +lean_ctor_set_uint8(x_423, 2, x_407); +lean_ctor_set_uint8(x_423, 3, x_408); +lean_ctor_set_uint8(x_423, 4, x_409); +lean_ctor_set_uint8(x_423, 5, x_410); +lean_ctor_set_uint8(x_423, 6, x_411); +lean_ctor_set_uint8(x_423, 7, x_412); +lean_ctor_set_uint8(x_423, 8, x_413); +lean_ctor_set_uint8(x_423, 9, x_422); +lean_ctor_set_uint8(x_423, 10, x_414); +lean_ctor_set_uint8(x_423, 11, x_415); +lean_ctor_set_uint8(x_423, 12, x_416); +lean_ctor_set_uint8(x_423, 13, x_417); +lean_ctor_set_uint8(x_423, 14, x_418); +lean_ctor_set_uint8(x_423, 15, x_419); +lean_ctor_set_uint8(x_423, 16, x_420); +x_424 = 2; +x_425 = lean_uint64_shift_right(x_395, x_424); +x_426 = lean_uint64_shift_left(x_425, x_424); +x_427 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_428 = lean_uint64_lor(x_426, x_427); +x_429 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_429, 0, x_423); +lean_ctor_set(x_429, 1, x_397); +lean_ctor_set(x_429, 2, x_398); +lean_ctor_set(x_429, 3, x_399); +lean_ctor_set(x_429, 4, x_400); +lean_ctor_set(x_429, 5, x_401); +lean_ctor_set(x_429, 6, x_402); +lean_ctor_set_uint64(x_429, sizeof(void*)*7, x_428); +lean_ctor_set_uint8(x_429, sizeof(void*)*7 + 8, x_396); +lean_ctor_set_uint8(x_429, sizeof(void*)*7 + 9, x_403); +lean_ctor_set_uint8(x_429, sizeof(void*)*7 + 10, x_404); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_38); -lean_inc(x_341); -x_378 = l_Lean_Meta_isExprDefEq(x_341, x_38, x_377, x_9, x_10, x_11, x_340); -if (lean_obj_tag(x_378) == 0) +lean_inc(x_393); +x_430 = l_Lean_Meta_isExprDefEq(x_393, x_38, x_429, x_9, x_10, x_11, x_392); +if (lean_obj_tag(x_430) == 0) { -lean_object* x_379; uint8_t x_380; -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_unbox(x_379); -lean_dec(x_379); -if (x_380 == 0) +lean_object* x_431; uint8_t x_432; +x_431 = lean_ctor_get(x_430, 0); +lean_inc(x_431); +x_432 = lean_unbox(x_431); +lean_dec(x_431); +if (x_432 == 0) { -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; -x_381 = lean_ctor_get(x_378, 1); -lean_inc(x_381); -lean_dec(x_378); -x_382 = l_Lean_indentExpr(x_341); -x_383 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -if (lean_is_scalar(x_342)) { - x_384 = lean_alloc_ctor(7, 2, 0); +lean_object* x_433; lean_object* x_434; +x_433 = lean_ctor_get(x_430, 1); +lean_inc(x_433); +lean_dec(x_430); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_434 = l_Lean_Meta_addPPExplicitToExposeDiff(x_393, x_38, x_8, x_9, x_10, x_11, x_433); +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; lean_object* x_448; lean_object* x_449; +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_434, 1); +lean_inc(x_436); +lean_dec(x_434); +x_437 = lean_ctor_get(x_435, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_435, 1); +lean_inc(x_438); +if (lean_is_exclusive(x_435)) { + lean_ctor_release(x_435, 0); + lean_ctor_release(x_435, 1); + x_439 = x_435; } else { - x_384 = x_342; - lean_ctor_set_tag(x_384, 7); + lean_dec_ref(x_435); + x_439 = lean_box(0); } -lean_ctor_set(x_384, 0, x_383); -lean_ctor_set(x_384, 1, x_382); -x_385 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; -if (lean_is_scalar(x_333)) { - x_386 = lean_alloc_ctor(7, 2, 0); +x_440 = l_Lean_indentExpr(x_437); +x_441 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_439)) { + x_442 = lean_alloc_ctor(7, 2, 0); } else { - x_386 = x_333; - lean_ctor_set_tag(x_386, 7); + x_442 = x_439; + lean_ctor_set_tag(x_442, 7); } -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -x_387 = l_Lean_indentExpr(x_38); -x_388 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_388, 0, x_386); -lean_ctor_set(x_388, 1, x_387); -x_389 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_389); -lean_ctor_set(x_32, 0, x_388); -x_390 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_381); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_440); +x_443 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +if (lean_is_scalar(x_394)) { + x_444 = lean_alloc_ctor(7, 2, 0); +} else { + x_444 = x_394; + lean_ctor_set_tag(x_444, 7); +} +lean_ctor_set(x_444, 0, x_442); +lean_ctor_set(x_444, 1, x_443); +x_445 = l_Lean_indentExpr(x_438); +if (lean_is_scalar(x_385)) { + x_446 = lean_alloc_ctor(7, 2, 0); +} else { + x_446 = x_385; + lean_ctor_set_tag(x_446, 7); +} +lean_ctor_set(x_446, 0, x_444); +lean_ctor_set(x_446, 1, x_445); +x_447 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +x_448 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_448, 0, x_446); +lean_ctor_set(x_448, 1, x_447); +x_449 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_448, x_6, x_7, x_8, x_9, x_10, x_11, x_436); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_390; +return x_449; } else { -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_333); -lean_dec(x_38); -lean_free_object(x_32); +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; +lean_dec(x_394); +lean_dec(x_385); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_391 = lean_ctor_get(x_378, 1); -lean_inc(x_391); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_392 = x_378; +x_450 = lean_ctor_get(x_434, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_434, 1); +lean_inc(x_451); +if (lean_is_exclusive(x_434)) { + lean_ctor_release(x_434, 0); + lean_ctor_release(x_434, 1); + x_452 = x_434; } else { - lean_dec_ref(x_378); - x_392 = lean_box(0); + lean_dec_ref(x_434); + x_452 = lean_box(0); } -x_393 = lean_box(0); -if (lean_is_scalar(x_392)) { - x_394 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_452)) { + x_453 = lean_alloc_ctor(1, 2, 0); } else { - x_394 = x_392; + x_453 = x_452; } -lean_ctor_set(x_394, 0, x_393); -lean_ctor_set(x_394, 1, x_391); -return x_394; +lean_ctor_set(x_453, 0, x_450); +lean_ctor_set(x_453, 1, x_451); +return x_453; } } else { -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_333); +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +lean_dec(x_394); +lean_dec(x_393); +lean_dec(x_385); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_395 = lean_ctor_get(x_378, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_378, 1); -lean_inc(x_396); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_397 = x_378; +x_454 = lean_ctor_get(x_430, 1); +lean_inc(x_454); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_455 = x_430; } else { - lean_dec_ref(x_378); - x_397 = lean_box(0); + lean_dec_ref(x_430); + x_455 = lean_box(0); } -if (lean_is_scalar(x_397)) { - x_398 = lean_alloc_ctor(1, 2, 0); +x_456 = lean_box(0); +if (lean_is_scalar(x_455)) { + x_457 = lean_alloc_ctor(0, 2, 0); } else { - x_398 = x_397; + x_457 = x_455; } -lean_ctor_set(x_398, 0, x_395); -lean_ctor_set(x_398, 1, x_396); -return x_398; +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_454); +return x_457; } } else { -lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -lean_dec(x_333); +lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; +lean_dec(x_394); +lean_dec(x_393); +lean_dec(x_385); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_399 = lean_ctor_get(x_337, 0); -lean_inc(x_399); -x_400 = lean_ctor_get(x_337, 1); -lean_inc(x_400); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - lean_ctor_release(x_337, 1); - x_401 = x_337; +x_458 = lean_ctor_get(x_430, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_430, 1); +lean_inc(x_459); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_460 = x_430; } else { - lean_dec_ref(x_337); - x_401 = lean_box(0); + lean_dec_ref(x_430); + x_460 = lean_box(0); } -if (lean_is_scalar(x_401)) { - x_402 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_460)) { + x_461 = lean_alloc_ctor(1, 2, 0); } else { - x_402 = x_401; + x_461 = x_460; } -lean_ctor_set(x_402, 0, x_399); -lean_ctor_set(x_402, 1, x_400); -return x_402; +lean_ctor_set(x_461, 0, x_458); +lean_ctor_set(x_461, 1, x_459); +return x_461; } } else { -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -lean_dec(x_333); +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; +lean_dec(x_385); lean_dec(x_38); -lean_free_object(x_32); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_403 = lean_ctor_get(x_334, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_334, 1); -lean_inc(x_404); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_405 = x_334; +x_462 = lean_ctor_get(x_389, 0); +lean_inc(x_462); +x_463 = lean_ctor_get(x_389, 1); +lean_inc(x_463); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_464 = x_389; } else { - lean_dec_ref(x_334); - x_405 = lean_box(0); + lean_dec_ref(x_389); + x_464 = lean_box(0); } -if (lean_is_scalar(x_405)) { - x_406 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_464)) { + x_465 = lean_alloc_ctor(1, 2, 0); } else { - x_406 = x_405; + x_465 = x_464; } -lean_ctor_set(x_406, 0, x_403); -lean_ctor_set(x_406, 1, x_404); -return x_406; +lean_ctor_set(x_465, 0, x_462); +lean_ctor_set(x_465, 1, x_463); +return x_465; } } else { -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - x_407 = x_320; +lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; +lean_dec(x_385); +lean_dec(x_38); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_466 = lean_ctor_get(x_386, 0); +lean_inc(x_466); +x_467 = lean_ctor_get(x_386, 1); +lean_inc(x_467); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_468 = x_386; } else { - lean_dec_ref(x_320); - x_407 = lean_box(0); + lean_dec_ref(x_386); + x_468 = lean_box(0); } -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_408 = x_330; +if (lean_is_scalar(x_468)) { + x_469 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_330); - x_408 = lean_box(0); + x_469 = x_468; } -x_409 = lean_ctor_get(x_43, 1); -lean_inc(x_409); +lean_ctor_set(x_469, 0, x_466); +lean_ctor_set(x_469, 1, x_467); +return x_469; +} +} +else +{ +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + x_470 = x_372; +} else { + lean_dec_ref(x_372); + x_470 = lean_box(0); +} +if (lean_is_exclusive(x_382)) { + lean_ctor_release(x_382, 0); + lean_ctor_release(x_382, 1); + x_471 = x_382; +} else { + lean_dec_ref(x_382); + x_471 = lean_box(0); +} +x_472 = lean_ctor_get(x_43, 1); +lean_inc(x_472); lean_dec(x_43); -x_410 = l_Lean_MessageData_ofSyntax(x_3); -x_411 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_408)) { - x_412 = lean_alloc_ctor(7, 2, 0); +x_473 = l_Lean_MessageData_ofSyntax(x_3); +x_474 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_471)) { + x_475 = lean_alloc_ctor(7, 2, 0); } else { - x_412 = x_408; - lean_ctor_set_tag(x_412, 7); + x_475 = x_471; + lean_ctor_set_tag(x_475, 7); } -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_410); -x_413 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -if (lean_is_scalar(x_407)) { - x_414 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_475, 0, x_474); +lean_ctor_set(x_475, 1, x_473); +x_476 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +if (lean_is_scalar(x_470)) { + x_477 = lean_alloc_ctor(7, 2, 0); } else { - x_414 = x_407; - lean_ctor_set_tag(x_414, 7); + x_477 = x_470; + lean_ctor_set_tag(x_477, 7); } -lean_ctor_set(x_414, 0, x_412); -lean_ctor_set(x_414, 1, x_413); -x_415 = l_Lean_indentExpr(x_38); -x_416 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_416, 0, x_414); -lean_ctor_set(x_416, 1, x_415); -x_417 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +x_478 = l_Lean_indentExpr(x_38); +x_479 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_479, 0, x_477); +lean_ctor_set(x_479, 1, x_478); +x_480 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_417); -lean_ctor_set(x_32, 0, x_416); -x_418 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_409); +lean_ctor_set(x_32, 1, x_480); +lean_ctor_set(x_32, 0, x_479); +x_481 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_472); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_418; +return x_481; } } } } else { -uint8_t x_419; +uint8_t x_482; lean_dec(x_38); lean_free_object(x_32); lean_free_object(x_25); @@ -2072,29 +2395,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_419 = !lean_is_exclusive(x_43); -if (x_419 == 0) +x_482 = !lean_is_exclusive(x_43); +if (x_482 == 0) { return x_43; } else { -lean_object* x_420; lean_object* x_421; lean_object* x_422; -x_420 = lean_ctor_get(x_43, 0); -x_421 = lean_ctor_get(x_43, 1); -lean_inc(x_421); -lean_inc(x_420); +lean_object* x_483; lean_object* x_484; lean_object* x_485; +x_483 = lean_ctor_get(x_43, 0); +x_484 = lean_ctor_get(x_43, 1); +lean_inc(x_484); +lean_inc(x_483); lean_dec(x_43); -x_422 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_422, 0, x_420); -lean_ctor_set(x_422, 1, x_421); -return x_422; +x_485 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_485, 0, x_483); +lean_ctor_set(x_485, 1, x_484); +return x_485; } } } else { -uint8_t x_423; +uint8_t x_486; lean_free_object(x_32); lean_dec(x_34); lean_free_object(x_25); @@ -2105,1130 +2428,1216 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_423 = !lean_is_exclusive(x_37); -if (x_423 == 0) +x_486 = !lean_is_exclusive(x_37); +if (x_486 == 0) { return x_37; } else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; -x_424 = lean_ctor_get(x_37, 0); -x_425 = lean_ctor_get(x_37, 1); -lean_inc(x_425); -lean_inc(x_424); +lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_487 = lean_ctor_get(x_37, 0); +x_488 = lean_ctor_get(x_37, 1); +lean_inc(x_488); +lean_inc(x_487); lean_dec(x_37); -x_426 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_426, 0, x_424); -lean_ctor_set(x_426, 1, x_425); -return x_426; +x_489 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_489, 0, x_487); +lean_ctor_set(x_489, 1, x_488); +return x_489; } } } else { -lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_427 = lean_ctor_get(x_32, 0); -x_428 = lean_ctor_get(x_32, 1); -lean_inc(x_428); -lean_inc(x_427); +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; +x_490 = lean_ctor_get(x_32, 0); +x_491 = lean_ctor_get(x_32, 1); +lean_inc(x_491); +lean_inc(x_490); lean_dec(x_32); -x_429 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_429, 0, x_23); +x_492 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_492, 0, x_23); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_430 = l_Lean_Elab_Term_elabTerm(x_2, x_429, x_14, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_428); -if (lean_obj_tag(x_430) == 0) +x_493 = l_Lean_Elab_Term_elabTerm(x_2, x_492, x_14, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_491); +if (lean_obj_tag(x_493) == 0) { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_431 = lean_ctor_get(x_430, 0); -lean_inc(x_431); -x_432 = lean_ctor_get(x_430, 1); -lean_inc(x_432); -lean_dec(x_430); -x_433 = l_Lean_Expr_mvarId_x21(x_427); -lean_dec(x_427); -x_434 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__5; -x_435 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__6; +lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_494 = lean_ctor_get(x_493, 0); +lean_inc(x_494); +x_495 = lean_ctor_get(x_493, 1); +lean_inc(x_495); +lean_dec(x_493); +x_496 = l_Lean_Expr_mvarId_x21(x_490); +lean_dec(x_490); +x_497 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__5; +x_498 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__6; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_3); -x_436 = l_Lean_Elab_runTactic(x_433, x_3, x_434, x_435, x_8, x_9, x_10, x_11, x_432); -if (lean_obj_tag(x_436) == 0) +x_499 = l_Lean_Elab_runTactic(x_496, x_3, x_497, x_498, x_8, x_9, x_10, x_11, x_495); +if (lean_obj_tag(x_499) == 0) { -lean_object* x_437; lean_object* x_438; lean_object* x_439; -x_437 = lean_ctor_get(x_436, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_437, 0); -lean_inc(x_438); -if (lean_is_exclusive(x_437)) { - lean_ctor_release(x_437, 0); - lean_ctor_release(x_437, 1); - x_439 = x_437; -} else { - lean_dec_ref(x_437); - x_439 = lean_box(0); -} -if (lean_obj_tag(x_438) == 0) -{ -lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_440 = lean_ctor_get(x_436, 1); -lean_inc(x_440); -lean_dec(x_436); -x_441 = l_Lean_MessageData_ofSyntax(x_3); -x_442 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_439)) { - x_443 = lean_alloc_ctor(7, 2, 0); -} else { - x_443 = x_439; - lean_ctor_set_tag(x_443, 7); -} -lean_ctor_set(x_443, 0, x_442); -lean_ctor_set(x_443, 1, x_441); -x_444 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; -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_indentExpr(x_431); -lean_ctor_set_tag(x_25, 7); -lean_ctor_set(x_25, 1, x_446); -lean_ctor_set(x_25, 0, x_445); -x_447 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -x_448 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_448, 0, x_25); -lean_ctor_set(x_448, 1, x_447); -x_449 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_448, x_6, x_7, x_8, x_9, x_10, x_11, x_440); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_449; -} -else -{ -lean_object* x_450; -lean_free_object(x_25); -x_450 = lean_ctor_get(x_438, 1); -lean_inc(x_450); -if (lean_obj_tag(x_450) == 0) -{ -lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; -lean_dec(x_3); -x_451 = lean_ctor_get(x_436, 1); -lean_inc(x_451); -lean_dec(x_436); -x_452 = lean_ctor_get(x_438, 0); -lean_inc(x_452); -if (lean_is_exclusive(x_438)) { - lean_ctor_release(x_438, 0); - lean_ctor_release(x_438, 1); - x_453 = x_438; -} else { - lean_dec_ref(x_438); - x_453 = lean_box(0); -} -x_454 = l_Lean_MVarId_getType(x_452, x_8, x_9, x_10, x_11, x_451); -if (lean_obj_tag(x_454) == 0) -{ -lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_455 = lean_ctor_get(x_454, 0); -lean_inc(x_455); -x_456 = lean_ctor_get(x_454, 1); -lean_inc(x_456); -lean_dec(x_454); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_457 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_455, x_8, x_9, x_10, x_11, x_456); -if (lean_obj_tag(x_457) == 0) -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint64_t x_463; uint8_t x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; uint8_t x_472; uint8_t x_473; uint8_t x_474; uint8_t x_475; uint8_t x_476; uint8_t x_477; uint8_t x_478; uint8_t x_479; uint8_t x_480; uint8_t x_481; uint8_t x_482; uint8_t x_483; uint8_t x_484; uint8_t x_485; uint8_t x_486; uint8_t x_487; uint8_t x_488; lean_object* x_489; uint8_t x_490; lean_object* x_491; uint64_t x_492; uint64_t x_493; uint64_t x_494; uint64_t x_495; uint64_t x_496; lean_object* x_497; lean_object* x_498; -x_458 = lean_ctor_get(x_457, 0); -lean_inc(x_458); -x_459 = lean_ctor_get(x_8, 0); -lean_inc(x_459); -x_460 = lean_ctor_get(x_457, 1); -lean_inc(x_460); -lean_dec(x_457); -x_461 = lean_ctor_get(x_458, 0); -lean_inc(x_461); -if (lean_is_exclusive(x_458)) { - lean_ctor_release(x_458, 0); - lean_ctor_release(x_458, 1); - x_462 = x_458; -} else { - lean_dec_ref(x_458); - x_462 = lean_box(0); -} -x_463 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); -x_464 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); -x_465 = lean_ctor_get(x_8, 1); -lean_inc(x_465); -x_466 = lean_ctor_get(x_8, 2); -lean_inc(x_466); -x_467 = lean_ctor_get(x_8, 3); -lean_inc(x_467); -x_468 = lean_ctor_get(x_8, 4); -lean_inc(x_468); -x_469 = lean_ctor_get(x_8, 5); -lean_inc(x_469); -x_470 = lean_ctor_get(x_8, 6); -lean_inc(x_470); -x_471 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_472 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_473 = lean_ctor_get_uint8(x_459, 0); -x_474 = lean_ctor_get_uint8(x_459, 1); -x_475 = lean_ctor_get_uint8(x_459, 2); -x_476 = lean_ctor_get_uint8(x_459, 3); -x_477 = lean_ctor_get_uint8(x_459, 4); -x_478 = lean_ctor_get_uint8(x_459, 5); -x_479 = lean_ctor_get_uint8(x_459, 6); -x_480 = lean_ctor_get_uint8(x_459, 7); -x_481 = lean_ctor_get_uint8(x_459, 8); -x_482 = lean_ctor_get_uint8(x_459, 10); -x_483 = lean_ctor_get_uint8(x_459, 11); -x_484 = lean_ctor_get_uint8(x_459, 12); -x_485 = lean_ctor_get_uint8(x_459, 13); -x_486 = lean_ctor_get_uint8(x_459, 14); -x_487 = lean_ctor_get_uint8(x_459, 15); -x_488 = lean_ctor_get_uint8(x_459, 16); -if (lean_is_exclusive(x_459)) { - x_489 = x_459; -} else { - lean_dec_ref(x_459); - x_489 = lean_box(0); -} -x_490 = 2; -if (lean_is_scalar(x_489)) { - x_491 = lean_alloc_ctor(0, 0, 17); -} else { - x_491 = x_489; -} -lean_ctor_set_uint8(x_491, 0, x_473); -lean_ctor_set_uint8(x_491, 1, x_474); -lean_ctor_set_uint8(x_491, 2, x_475); -lean_ctor_set_uint8(x_491, 3, x_476); -lean_ctor_set_uint8(x_491, 4, x_477); -lean_ctor_set_uint8(x_491, 5, x_478); -lean_ctor_set_uint8(x_491, 6, x_479); -lean_ctor_set_uint8(x_491, 7, x_480); -lean_ctor_set_uint8(x_491, 8, x_481); -lean_ctor_set_uint8(x_491, 9, x_490); -lean_ctor_set_uint8(x_491, 10, x_482); -lean_ctor_set_uint8(x_491, 11, x_483); -lean_ctor_set_uint8(x_491, 12, x_484); -lean_ctor_set_uint8(x_491, 13, x_485); -lean_ctor_set_uint8(x_491, 14, x_486); -lean_ctor_set_uint8(x_491, 15, x_487); -lean_ctor_set_uint8(x_491, 16, x_488); -x_492 = 2; -x_493 = lean_uint64_shift_right(x_463, x_492); -x_494 = lean_uint64_shift_left(x_493, x_492); -x_495 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_496 = lean_uint64_lor(x_494, x_495); -x_497 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_497, 0, x_491); -lean_ctor_set(x_497, 1, x_465); -lean_ctor_set(x_497, 2, x_466); -lean_ctor_set(x_497, 3, x_467); -lean_ctor_set(x_497, 4, x_468); -lean_ctor_set(x_497, 5, x_469); -lean_ctor_set(x_497, 6, x_470); -lean_ctor_set_uint64(x_497, sizeof(void*)*7, x_496); -lean_ctor_set_uint8(x_497, sizeof(void*)*7 + 8, x_464); -lean_ctor_set_uint8(x_497, sizeof(void*)*7 + 9, x_471); -lean_ctor_set_uint8(x_497, sizeof(void*)*7 + 10, x_472); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_431); -lean_inc(x_461); -x_498 = l_Lean_Meta_isExprDefEq(x_461, x_431, x_497, x_9, x_10, x_11, x_460); -if (lean_obj_tag(x_498) == 0) -{ -lean_object* x_499; uint8_t x_500; -x_499 = lean_ctor_get(x_498, 0); -lean_inc(x_499); -x_500 = lean_unbox(x_499); -lean_dec(x_499); -if (x_500 == 0) -{ -lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_501 = lean_ctor_get(x_498, 1); +lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_500 = lean_ctor_get(x_499, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_500, 0); lean_inc(x_501); -lean_dec(x_498); -x_502 = l_Lean_indentExpr(x_461); -x_503 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -if (lean_is_scalar(x_462)) { - x_504 = lean_alloc_ctor(7, 2, 0); +if (lean_is_exclusive(x_500)) { + lean_ctor_release(x_500, 0); + lean_ctor_release(x_500, 1); + x_502 = x_500; } else { - x_504 = x_462; - lean_ctor_set_tag(x_504, 7); + lean_dec_ref(x_500); + x_502 = lean_box(0); } -lean_ctor_set(x_504, 0, x_503); -lean_ctor_set(x_504, 1, x_502); -x_505 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; -if (lean_is_scalar(x_453)) { +if (lean_obj_tag(x_501) == 0) +{ +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; +x_503 = lean_ctor_get(x_499, 1); +lean_inc(x_503); +lean_dec(x_499); +x_504 = l_Lean_MessageData_ofSyntax(x_3); +x_505 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_502)) { x_506 = lean_alloc_ctor(7, 2, 0); } else { - x_506 = x_453; + x_506 = x_502; lean_ctor_set_tag(x_506, 7); } -lean_ctor_set(x_506, 0, x_504); -lean_ctor_set(x_506, 1, x_505); -x_507 = l_Lean_indentExpr(x_431); -if (lean_is_scalar(x_439)) { - x_508 = lean_alloc_ctor(7, 2, 0); -} else { - x_508 = x_439; - lean_ctor_set_tag(x_508, 7); -} +lean_ctor_set(x_506, 0, x_505); +lean_ctor_set(x_506, 1, x_504); +x_507 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; +x_508 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_508, 0, x_506); lean_ctor_set(x_508, 1, x_507); -x_509 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -x_510 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_510, 0, x_508); -lean_ctor_set(x_510, 1, x_509); -x_511 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_510, x_6, x_7, x_8, x_9, x_10, x_11, x_501); +x_509 = l_Lean_indentExpr(x_494); +lean_ctor_set_tag(x_25, 7); +lean_ctor_set(x_25, 1, x_509); +lean_ctor_set(x_25, 0, x_508); +x_510 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +x_511 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_511, 0, x_25); +lean_ctor_set(x_511, 1, x_510); +x_512 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_511, x_6, x_7, x_8, x_9, x_10, x_11, x_503); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_511; +return x_512; } else { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -lean_dec(x_462); -lean_dec(x_461); -lean_dec(x_453); -lean_dec(x_439); -lean_dec(x_431); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_512 = lean_ctor_get(x_498, 1); -lean_inc(x_512); -if (lean_is_exclusive(x_498)) { - lean_ctor_release(x_498, 0); - lean_ctor_release(x_498, 1); - x_513 = x_498; -} else { - lean_dec_ref(x_498); - x_513 = lean_box(0); -} -x_514 = lean_box(0); -if (lean_is_scalar(x_513)) { - x_515 = lean_alloc_ctor(0, 2, 0); -} else { - x_515 = x_513; -} -lean_ctor_set(x_515, 0, x_514); -lean_ctor_set(x_515, 1, x_512); -return x_515; -} -} -else +lean_object* x_513; +lean_free_object(x_25); +x_513 = lean_ctor_get(x_501, 1); +lean_inc(x_513); +if (lean_obj_tag(x_513) == 0) { -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; -lean_dec(x_462); -lean_dec(x_461); -lean_dec(x_453); -lean_dec(x_439); -lean_dec(x_431); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_516 = lean_ctor_get(x_498, 0); -lean_inc(x_516); -x_517 = lean_ctor_get(x_498, 1); -lean_inc(x_517); -if (lean_is_exclusive(x_498)) { - lean_ctor_release(x_498, 0); - lean_ctor_release(x_498, 1); - x_518 = x_498; +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; +lean_dec(x_3); +x_514 = lean_ctor_get(x_499, 1); +lean_inc(x_514); +lean_dec(x_499); +x_515 = lean_ctor_get(x_501, 0); +lean_inc(x_515); +if (lean_is_exclusive(x_501)) { + lean_ctor_release(x_501, 0); + lean_ctor_release(x_501, 1); + x_516 = x_501; } else { - lean_dec_ref(x_498); - x_518 = lean_box(0); + lean_dec_ref(x_501); + x_516 = lean_box(0); } -if (lean_is_scalar(x_518)) { - x_519 = lean_alloc_ctor(1, 2, 0); -} else { - x_519 = x_518; -} -lean_ctor_set(x_519, 0, x_516); -lean_ctor_set(x_519, 1, x_517); -return x_519; -} -} -else +x_517 = l_Lean_MVarId_getType(x_515, x_8, x_9, x_10, x_11, x_514); +if (lean_obj_tag(x_517) == 0) { -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; -lean_dec(x_453); -lean_dec(x_439); -lean_dec(x_431); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_520 = lean_ctor_get(x_457, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_457, 1); +lean_object* x_518; lean_object* x_519; lean_object* x_520; +x_518 = lean_ctor_get(x_517, 0); +lean_inc(x_518); +x_519 = lean_ctor_get(x_517, 1); +lean_inc(x_519); +lean_dec(x_517); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_520 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_518, x_8, x_9, x_10, x_11, x_519); +if (lean_obj_tag(x_520) == 0) +{ +lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint64_t x_526; uint8_t x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; uint8_t x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; uint8_t x_538; uint8_t x_539; uint8_t x_540; uint8_t x_541; uint8_t x_542; uint8_t x_543; uint8_t x_544; uint8_t x_545; uint8_t x_546; uint8_t x_547; uint8_t x_548; uint8_t x_549; uint8_t x_550; uint8_t x_551; lean_object* x_552; uint8_t x_553; lean_object* x_554; uint64_t x_555; uint64_t x_556; uint64_t x_557; uint64_t x_558; uint64_t x_559; lean_object* x_560; lean_object* x_561; +x_521 = lean_ctor_get(x_520, 0); lean_inc(x_521); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - x_522 = x_457; -} else { - lean_dec_ref(x_457); - x_522 = lean_box(0); -} -if (lean_is_scalar(x_522)) { - x_523 = lean_alloc_ctor(1, 2, 0); -} else { - x_523 = x_522; -} -lean_ctor_set(x_523, 0, x_520); -lean_ctor_set(x_523, 1, x_521); -return x_523; -} -} -else -{ -lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; -lean_dec(x_453); -lean_dec(x_439); -lean_dec(x_431); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_524 = lean_ctor_get(x_454, 0); +x_522 = lean_ctor_get(x_8, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_520, 1); +lean_inc(x_523); +lean_dec(x_520); +x_524 = lean_ctor_get(x_521, 0); lean_inc(x_524); -x_525 = lean_ctor_get(x_454, 1); -lean_inc(x_525); -if (lean_is_exclusive(x_454)) { - lean_ctor_release(x_454, 0); - lean_ctor_release(x_454, 1); - x_526 = x_454; +if (lean_is_exclusive(x_521)) { + lean_ctor_release(x_521, 0); + lean_ctor_release(x_521, 1); + x_525 = x_521; } else { - lean_dec_ref(x_454); - x_526 = lean_box(0); + lean_dec_ref(x_521); + x_525 = lean_box(0); } -if (lean_is_scalar(x_526)) { - x_527 = lean_alloc_ctor(1, 2, 0); -} else { - x_527 = x_526; -} -lean_ctor_set(x_527, 0, x_524); -lean_ctor_set(x_527, 1, x_525); -return x_527; -} -} -else -{ -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; -if (lean_is_exclusive(x_438)) { - lean_ctor_release(x_438, 0); - lean_ctor_release(x_438, 1); - x_528 = x_438; -} else { - lean_dec_ref(x_438); - x_528 = lean_box(0); -} -if (lean_is_exclusive(x_450)) { - lean_ctor_release(x_450, 0); - lean_ctor_release(x_450, 1); - x_529 = x_450; -} else { - lean_dec_ref(x_450); - x_529 = lean_box(0); -} -x_530 = lean_ctor_get(x_436, 1); +x_526 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_527 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_528 = lean_ctor_get(x_8, 1); +lean_inc(x_528); +x_529 = lean_ctor_get(x_8, 2); +lean_inc(x_529); +x_530 = lean_ctor_get(x_8, 3); lean_inc(x_530); -lean_dec(x_436); -x_531 = l_Lean_MessageData_ofSyntax(x_3); -x_532 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_529)) { - x_533 = lean_alloc_ctor(7, 2, 0); +x_531 = lean_ctor_get(x_8, 4); +lean_inc(x_531); +x_532 = lean_ctor_get(x_8, 5); +lean_inc(x_532); +x_533 = lean_ctor_get(x_8, 6); +lean_inc(x_533); +x_534 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_535 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_536 = lean_ctor_get_uint8(x_522, 0); +x_537 = lean_ctor_get_uint8(x_522, 1); +x_538 = lean_ctor_get_uint8(x_522, 2); +x_539 = lean_ctor_get_uint8(x_522, 3); +x_540 = lean_ctor_get_uint8(x_522, 4); +x_541 = lean_ctor_get_uint8(x_522, 5); +x_542 = lean_ctor_get_uint8(x_522, 6); +x_543 = lean_ctor_get_uint8(x_522, 7); +x_544 = lean_ctor_get_uint8(x_522, 8); +x_545 = lean_ctor_get_uint8(x_522, 10); +x_546 = lean_ctor_get_uint8(x_522, 11); +x_547 = lean_ctor_get_uint8(x_522, 12); +x_548 = lean_ctor_get_uint8(x_522, 13); +x_549 = lean_ctor_get_uint8(x_522, 14); +x_550 = lean_ctor_get_uint8(x_522, 15); +x_551 = lean_ctor_get_uint8(x_522, 16); +if (lean_is_exclusive(x_522)) { + x_552 = x_522; } else { - x_533 = x_529; - lean_ctor_set_tag(x_533, 7); + lean_dec_ref(x_522); + x_552 = lean_box(0); } -lean_ctor_set(x_533, 0, x_532); -lean_ctor_set(x_533, 1, x_531); -x_534 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -if (lean_is_scalar(x_528)) { - x_535 = lean_alloc_ctor(7, 2, 0); +x_553 = 2; +if (lean_is_scalar(x_552)) { + x_554 = lean_alloc_ctor(0, 0, 17); } else { - x_535 = x_528; - lean_ctor_set_tag(x_535, 7); + x_554 = x_552; } -lean_ctor_set(x_535, 0, x_533); -lean_ctor_set(x_535, 1, x_534); -x_536 = l_Lean_indentExpr(x_431); -if (lean_is_scalar(x_439)) { - x_537 = lean_alloc_ctor(7, 2, 0); -} else { - x_537 = x_439; - lean_ctor_set_tag(x_537, 7); -} -lean_ctor_set(x_537, 0, x_535); -lean_ctor_set(x_537, 1, x_536); -x_538 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -x_539 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_539, 0, x_537); -lean_ctor_set(x_539, 1, x_538); -x_540 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_539, x_6, x_7, x_8, x_9, x_10, x_11, x_530); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_540; -} -} -} -else +lean_ctor_set_uint8(x_554, 0, x_536); +lean_ctor_set_uint8(x_554, 1, x_537); +lean_ctor_set_uint8(x_554, 2, x_538); +lean_ctor_set_uint8(x_554, 3, x_539); +lean_ctor_set_uint8(x_554, 4, x_540); +lean_ctor_set_uint8(x_554, 5, x_541); +lean_ctor_set_uint8(x_554, 6, x_542); +lean_ctor_set_uint8(x_554, 7, x_543); +lean_ctor_set_uint8(x_554, 8, x_544); +lean_ctor_set_uint8(x_554, 9, x_553); +lean_ctor_set_uint8(x_554, 10, x_545); +lean_ctor_set_uint8(x_554, 11, x_546); +lean_ctor_set_uint8(x_554, 12, x_547); +lean_ctor_set_uint8(x_554, 13, x_548); +lean_ctor_set_uint8(x_554, 14, x_549); +lean_ctor_set_uint8(x_554, 15, x_550); +lean_ctor_set_uint8(x_554, 16, x_551); +x_555 = 2; +x_556 = lean_uint64_shift_right(x_526, x_555); +x_557 = lean_uint64_shift_left(x_556, x_555); +x_558 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_559 = lean_uint64_lor(x_557, x_558); +x_560 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_560, 0, x_554); +lean_ctor_set(x_560, 1, x_528); +lean_ctor_set(x_560, 2, x_529); +lean_ctor_set(x_560, 3, x_530); +lean_ctor_set(x_560, 4, x_531); +lean_ctor_set(x_560, 5, x_532); +lean_ctor_set(x_560, 6, x_533); +lean_ctor_set_uint64(x_560, sizeof(void*)*7, x_559); +lean_ctor_set_uint8(x_560, sizeof(void*)*7 + 8, x_527); +lean_ctor_set_uint8(x_560, sizeof(void*)*7 + 9, x_534); +lean_ctor_set_uint8(x_560, sizeof(void*)*7 + 10, x_535); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_494); +lean_inc(x_524); +x_561 = l_Lean_Meta_isExprDefEq(x_524, x_494, x_560, x_9, x_10, x_11, x_523); +if (lean_obj_tag(x_561) == 0) { -lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; -lean_dec(x_431); -lean_free_object(x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_541 = lean_ctor_get(x_436, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_436, 1); -lean_inc(x_542); -if (lean_is_exclusive(x_436)) { - lean_ctor_release(x_436, 0); - lean_ctor_release(x_436, 1); - x_543 = x_436; -} else { - lean_dec_ref(x_436); - x_543 = lean_box(0); -} -if (lean_is_scalar(x_543)) { - x_544 = lean_alloc_ctor(1, 2, 0); -} else { - x_544 = x_543; -} -lean_ctor_set(x_544, 0, x_541); -lean_ctor_set(x_544, 1, x_542); -return x_544; -} -} -else +lean_object* x_562; uint8_t x_563; +x_562 = lean_ctor_get(x_561, 0); +lean_inc(x_562); +x_563 = lean_unbox(x_562); +lean_dec(x_562); +if (x_563 == 0) { -lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; -lean_dec(x_427); -lean_free_object(x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_545 = lean_ctor_get(x_430, 0); -lean_inc(x_545); -x_546 = lean_ctor_get(x_430, 1); -lean_inc(x_546); -if (lean_is_exclusive(x_430)) { - lean_ctor_release(x_430, 0); - lean_ctor_release(x_430, 1); - x_547 = x_430; -} else { - lean_dec_ref(x_430); - x_547 = lean_box(0); -} -if (lean_is_scalar(x_547)) { - x_548 = lean_alloc_ctor(1, 2, 0); -} else { - x_548 = x_547; -} -lean_ctor_set(x_548, 0, x_545); -lean_ctor_set(x_548, 1, x_546); -return x_548; -} -} -} -else -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; uint8_t 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; -x_549 = lean_ctor_get(x_25, 0); -x_550 = lean_ctor_get(x_25, 1); -lean_inc(x_550); -lean_inc(x_549); -lean_dec(x_25); -x_551 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_551, 0, x_549); -x_552 = 0; -x_553 = lean_box(0); -lean_inc(x_8); -x_554 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_551, x_552, x_553, x_8, x_9, x_10, x_11, x_550); -x_555 = lean_ctor_get(x_554, 0); -lean_inc(x_555); -x_556 = lean_ctor_get(x_554, 1); -lean_inc(x_556); -if (lean_is_exclusive(x_554)) { - lean_ctor_release(x_554, 0); - lean_ctor_release(x_554, 1); - x_557 = x_554; -} else { - lean_dec_ref(x_554); - x_557 = lean_box(0); -} -x_558 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_558, 0, x_23); +lean_object* x_564; lean_object* x_565; +x_564 = lean_ctor_get(x_561, 1); +lean_inc(x_564); +lean_dec(x_561); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_559 = l_Lean_Elab_Term_elabTerm(x_2, x_558, x_14, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_556); -if (lean_obj_tag(x_559) == 0) -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; -x_560 = lean_ctor_get(x_559, 0); -lean_inc(x_560); -x_561 = lean_ctor_get(x_559, 1); -lean_inc(x_561); -lean_dec(x_559); -x_562 = l_Lean_Expr_mvarId_x21(x_555); -lean_dec(x_555); -x_563 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__5; -x_564 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__6; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_3); -x_565 = l_Lean_Elab_runTactic(x_562, x_3, x_563, x_564, x_8, x_9, x_10, x_11, x_561); +x_565 = l_Lean_Meta_addPPExplicitToExposeDiff(x_524, x_494, x_8, x_9, x_10, x_11, x_564); if (lean_obj_tag(x_565) == 0) { -lean_object* x_566; lean_object* x_567; lean_object* x_568; +lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; x_566 = lean_ctor_get(x_565, 0); lean_inc(x_566); -x_567 = lean_ctor_get(x_566, 0); +x_567 = lean_ctor_get(x_565, 1); lean_inc(x_567); +lean_dec(x_565); +x_568 = lean_ctor_get(x_566, 0); +lean_inc(x_568); +x_569 = lean_ctor_get(x_566, 1); +lean_inc(x_569); if (lean_is_exclusive(x_566)) { lean_ctor_release(x_566, 0); lean_ctor_release(x_566, 1); - x_568 = x_566; + x_570 = x_566; } else { lean_dec_ref(x_566); - x_568 = lean_box(0); + x_570 = lean_box(0); } -if (lean_obj_tag(x_567) == 0) -{ -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; -x_569 = lean_ctor_get(x_565, 1); -lean_inc(x_569); -lean_dec(x_565); -x_570 = l_Lean_MessageData_ofSyntax(x_3); -x_571 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_568)) { - x_572 = lean_alloc_ctor(7, 2, 0); +x_571 = l_Lean_indentExpr(x_568); +x_572 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_570)) { + x_573 = lean_alloc_ctor(7, 2, 0); } else { - x_572 = x_568; - lean_ctor_set_tag(x_572, 7); + x_573 = x_570; + lean_ctor_set_tag(x_573, 7); } -lean_ctor_set(x_572, 0, x_571); -lean_ctor_set(x_572, 1, x_570); -x_573 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; -if (lean_is_scalar(x_557)) { - x_574 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_573, 0, x_572); +lean_ctor_set(x_573, 1, x_571); +x_574 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +if (lean_is_scalar(x_525)) { + x_575 = lean_alloc_ctor(7, 2, 0); } else { - x_574 = x_557; - lean_ctor_set_tag(x_574, 7); + x_575 = x_525; + lean_ctor_set_tag(x_575, 7); } -lean_ctor_set(x_574, 0, x_572); -lean_ctor_set(x_574, 1, x_573); -x_575 = l_Lean_indentExpr(x_560); -x_576 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_576, 0, x_574); -lean_ctor_set(x_576, 1, x_575); -x_577 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -x_578 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_578, 0, x_576); -lean_ctor_set(x_578, 1, x_577); -x_579 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_578, x_6, x_7, x_8, x_9, x_10, x_11, x_569); +lean_ctor_set(x_575, 0, x_573); +lean_ctor_set(x_575, 1, x_574); +x_576 = l_Lean_indentExpr(x_569); +if (lean_is_scalar(x_516)) { + x_577 = lean_alloc_ctor(7, 2, 0); +} else { + x_577 = x_516; + lean_ctor_set_tag(x_577, 7); +} +lean_ctor_set(x_577, 0, x_575); +lean_ctor_set(x_577, 1, x_576); +x_578 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_502)) { + x_579 = lean_alloc_ctor(7, 2, 0); +} else { + x_579 = x_502; + lean_ctor_set_tag(x_579, 7); +} +lean_ctor_set(x_579, 0, x_577); +lean_ctor_set(x_579, 1, x_578); +x_580 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_579, x_6, x_7, x_8, x_9, x_10, x_11, x_567); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_579; +return x_580; } else { -lean_object* x_580; -x_580 = lean_ctor_get(x_567, 1); -lean_inc(x_580); -if (lean_obj_tag(x_580) == 0) -{ lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; -lean_dec(x_3); -x_581 = lean_ctor_get(x_565, 1); +lean_dec(x_525); +lean_dec(x_516); +lean_dec(x_502); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_581 = lean_ctor_get(x_565, 0); lean_inc(x_581); -lean_dec(x_565); -x_582 = lean_ctor_get(x_567, 0); +x_582 = lean_ctor_get(x_565, 1); lean_inc(x_582); -if (lean_is_exclusive(x_567)) { - lean_ctor_release(x_567, 0); - lean_ctor_release(x_567, 1); - x_583 = x_567; +if (lean_is_exclusive(x_565)) { + lean_ctor_release(x_565, 0); + lean_ctor_release(x_565, 1); + x_583 = x_565; } else { - lean_dec_ref(x_567); + lean_dec_ref(x_565); x_583 = lean_box(0); } -x_584 = l_Lean_MVarId_getType(x_582, x_8, x_9, x_10, x_11, x_581); -if (lean_obj_tag(x_584) == 0) +if (lean_is_scalar(x_583)) { + x_584 = lean_alloc_ctor(1, 2, 0); +} else { + x_584 = x_583; +} +lean_ctor_set(x_584, 0, x_581); +lean_ctor_set(x_584, 1, x_582); +return x_584; +} +} +else { -lean_object* x_585; lean_object* x_586; lean_object* x_587; -x_585 = lean_ctor_get(x_584, 0); +lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; +lean_dec(x_525); +lean_dec(x_524); +lean_dec(x_516); +lean_dec(x_502); +lean_dec(x_494); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_585 = lean_ctor_get(x_561, 1); lean_inc(x_585); -x_586 = lean_ctor_get(x_584, 1); -lean_inc(x_586); -lean_dec(x_584); +if (lean_is_exclusive(x_561)) { + lean_ctor_release(x_561, 0); + lean_ctor_release(x_561, 1); + x_586 = x_561; +} else { + lean_dec_ref(x_561); + x_586 = lean_box(0); +} +x_587 = lean_box(0); +if (lean_is_scalar(x_586)) { + x_588 = lean_alloc_ctor(0, 2, 0); +} else { + x_588 = x_586; +} +lean_ctor_set(x_588, 0, x_587); +lean_ctor_set(x_588, 1, x_585); +return x_588; +} +} +else +{ +lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; +lean_dec(x_525); +lean_dec(x_524); +lean_dec(x_516); +lean_dec(x_502); +lean_dec(x_494); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_589 = lean_ctor_get(x_561, 0); +lean_inc(x_589); +x_590 = lean_ctor_get(x_561, 1); +lean_inc(x_590); +if (lean_is_exclusive(x_561)) { + lean_ctor_release(x_561, 0); + lean_ctor_release(x_561, 1); + x_591 = x_561; +} else { + lean_dec_ref(x_561); + x_591 = lean_box(0); +} +if (lean_is_scalar(x_591)) { + x_592 = lean_alloc_ctor(1, 2, 0); +} else { + x_592 = x_591; +} +lean_ctor_set(x_592, 0, x_589); +lean_ctor_set(x_592, 1, x_590); +return x_592; +} +} +else +{ +lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; +lean_dec(x_516); +lean_dec(x_502); +lean_dec(x_494); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_593 = lean_ctor_get(x_520, 0); +lean_inc(x_593); +x_594 = lean_ctor_get(x_520, 1); +lean_inc(x_594); +if (lean_is_exclusive(x_520)) { + lean_ctor_release(x_520, 0); + lean_ctor_release(x_520, 1); + x_595 = x_520; +} else { + lean_dec_ref(x_520); + x_595 = lean_box(0); +} +if (lean_is_scalar(x_595)) { + x_596 = lean_alloc_ctor(1, 2, 0); +} else { + x_596 = x_595; +} +lean_ctor_set(x_596, 0, x_593); +lean_ctor_set(x_596, 1, x_594); +return x_596; +} +} +else +{ +lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +lean_dec(x_516); +lean_dec(x_502); +lean_dec(x_494); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_597 = lean_ctor_get(x_517, 0); +lean_inc(x_597); +x_598 = lean_ctor_get(x_517, 1); +lean_inc(x_598); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + lean_ctor_release(x_517, 1); + x_599 = x_517; +} else { + lean_dec_ref(x_517); + x_599 = lean_box(0); +} +if (lean_is_scalar(x_599)) { + x_600 = lean_alloc_ctor(1, 2, 0); +} else { + x_600 = x_599; +} +lean_ctor_set(x_600, 0, x_597); +lean_ctor_set(x_600, 1, x_598); +return x_600; +} +} +else +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +if (lean_is_exclusive(x_501)) { + lean_ctor_release(x_501, 0); + lean_ctor_release(x_501, 1); + x_601 = x_501; +} else { + lean_dec_ref(x_501); + x_601 = lean_box(0); +} +if (lean_is_exclusive(x_513)) { + lean_ctor_release(x_513, 0); + lean_ctor_release(x_513, 1); + x_602 = x_513; +} else { + lean_dec_ref(x_513); + x_602 = lean_box(0); +} +x_603 = lean_ctor_get(x_499, 1); +lean_inc(x_603); +lean_dec(x_499); +x_604 = l_Lean_MessageData_ofSyntax(x_3); +x_605 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_602)) { + x_606 = lean_alloc_ctor(7, 2, 0); +} else { + x_606 = x_602; + lean_ctor_set_tag(x_606, 7); +} +lean_ctor_set(x_606, 0, x_605); +lean_ctor_set(x_606, 1, x_604); +x_607 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +if (lean_is_scalar(x_601)) { + x_608 = lean_alloc_ctor(7, 2, 0); +} else { + x_608 = x_601; + lean_ctor_set_tag(x_608, 7); +} +lean_ctor_set(x_608, 0, x_606); +lean_ctor_set(x_608, 1, x_607); +x_609 = l_Lean_indentExpr(x_494); +if (lean_is_scalar(x_502)) { + x_610 = lean_alloc_ctor(7, 2, 0); +} else { + x_610 = x_502; + lean_ctor_set_tag(x_610, 7); +} +lean_ctor_set(x_610, 0, x_608); +lean_ctor_set(x_610, 1, x_609); +x_611 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +x_612 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_612, 0, x_610); +lean_ctor_set(x_612, 1, x_611); +x_613 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_612, x_6, x_7, x_8, x_9, x_10, x_11, x_603); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_613; +} +} +} +else +{ +lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +lean_dec(x_494); +lean_free_object(x_25); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_614 = lean_ctor_get(x_499, 0); +lean_inc(x_614); +x_615 = lean_ctor_get(x_499, 1); +lean_inc(x_615); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + x_616 = x_499; +} else { + lean_dec_ref(x_499); + x_616 = lean_box(0); +} +if (lean_is_scalar(x_616)) { + x_617 = lean_alloc_ctor(1, 2, 0); +} else { + x_617 = x_616; +} +lean_ctor_set(x_617, 0, x_614); +lean_ctor_set(x_617, 1, x_615); +return x_617; +} +} +else +{ +lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; +lean_dec(x_490); +lean_free_object(x_25); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_618 = lean_ctor_get(x_493, 0); +lean_inc(x_618); +x_619 = lean_ctor_get(x_493, 1); +lean_inc(x_619); +if (lean_is_exclusive(x_493)) { + lean_ctor_release(x_493, 0); + lean_ctor_release(x_493, 1); + x_620 = x_493; +} else { + lean_dec_ref(x_493); + x_620 = lean_box(0); +} +if (lean_is_scalar(x_620)) { + x_621 = lean_alloc_ctor(1, 2, 0); +} else { + x_621 = x_620; +} +lean_ctor_set(x_621, 0, x_618); +lean_ctor_set(x_621, 1, x_619); +return x_621; +} +} +} +else +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; uint8_t x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; +x_622 = lean_ctor_get(x_25, 0); +x_623 = lean_ctor_get(x_25, 1); +lean_inc(x_623); +lean_inc(x_622); +lean_dec(x_25); +x_624 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_624, 0, x_622); +x_625 = 0; +x_626 = lean_box(0); +lean_inc(x_8); +x_627 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_624, x_625, x_626, x_8, x_9, x_10, x_11, x_623); +x_628 = lean_ctor_get(x_627, 0); +lean_inc(x_628); +x_629 = lean_ctor_get(x_627, 1); +lean_inc(x_629); +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + x_630 = x_627; +} else { + lean_dec_ref(x_627); + x_630 = lean_box(0); +} +x_631 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_631, 0, x_23); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_587 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_585, x_8, x_9, x_10, x_11, x_586); -if (lean_obj_tag(x_587) == 0) +lean_inc(x_7); +lean_inc(x_6); +x_632 = l_Lean_Elab_Term_elabTerm(x_2, x_631, x_14, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_629); +if (lean_obj_tag(x_632) == 0) { -lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; uint64_t x_593; uint8_t x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; uint8_t x_602; uint8_t x_603; uint8_t x_604; uint8_t x_605; uint8_t x_606; uint8_t x_607; uint8_t x_608; uint8_t x_609; uint8_t x_610; uint8_t x_611; uint8_t x_612; uint8_t x_613; uint8_t x_614; uint8_t x_615; uint8_t x_616; uint8_t x_617; uint8_t x_618; lean_object* x_619; uint8_t x_620; lean_object* x_621; uint64_t x_622; uint64_t x_623; uint64_t x_624; uint64_t x_625; uint64_t x_626; lean_object* x_627; lean_object* x_628; -x_588 = lean_ctor_get(x_587, 0); -lean_inc(x_588); -x_589 = lean_ctor_get(x_8, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_587, 1); -lean_inc(x_590); -lean_dec(x_587); -x_591 = lean_ctor_get(x_588, 0); -lean_inc(x_591); -if (lean_is_exclusive(x_588)) { - lean_ctor_release(x_588, 0); - lean_ctor_release(x_588, 1); - x_592 = x_588; -} else { - lean_dec_ref(x_588); - x_592 = lean_box(0); -} -x_593 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); -x_594 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); -x_595 = lean_ctor_get(x_8, 1); -lean_inc(x_595); -x_596 = lean_ctor_get(x_8, 2); -lean_inc(x_596); -x_597 = lean_ctor_get(x_8, 3); -lean_inc(x_597); -x_598 = lean_ctor_get(x_8, 4); -lean_inc(x_598); -x_599 = lean_ctor_get(x_8, 5); -lean_inc(x_599); -x_600 = lean_ctor_get(x_8, 6); -lean_inc(x_600); -x_601 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); -x_602 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); -x_603 = lean_ctor_get_uint8(x_589, 0); -x_604 = lean_ctor_get_uint8(x_589, 1); -x_605 = lean_ctor_get_uint8(x_589, 2); -x_606 = lean_ctor_get_uint8(x_589, 3); -x_607 = lean_ctor_get_uint8(x_589, 4); -x_608 = lean_ctor_get_uint8(x_589, 5); -x_609 = lean_ctor_get_uint8(x_589, 6); -x_610 = lean_ctor_get_uint8(x_589, 7); -x_611 = lean_ctor_get_uint8(x_589, 8); -x_612 = lean_ctor_get_uint8(x_589, 10); -x_613 = lean_ctor_get_uint8(x_589, 11); -x_614 = lean_ctor_get_uint8(x_589, 12); -x_615 = lean_ctor_get_uint8(x_589, 13); -x_616 = lean_ctor_get_uint8(x_589, 14); -x_617 = lean_ctor_get_uint8(x_589, 15); -x_618 = lean_ctor_get_uint8(x_589, 16); -if (lean_is_exclusive(x_589)) { - x_619 = x_589; -} else { - lean_dec_ref(x_589); - x_619 = lean_box(0); -} -x_620 = 2; -if (lean_is_scalar(x_619)) { - x_621 = lean_alloc_ctor(0, 0, 17); -} else { - x_621 = x_619; -} -lean_ctor_set_uint8(x_621, 0, x_603); -lean_ctor_set_uint8(x_621, 1, x_604); -lean_ctor_set_uint8(x_621, 2, x_605); -lean_ctor_set_uint8(x_621, 3, x_606); -lean_ctor_set_uint8(x_621, 4, x_607); -lean_ctor_set_uint8(x_621, 5, x_608); -lean_ctor_set_uint8(x_621, 6, x_609); -lean_ctor_set_uint8(x_621, 7, x_610); -lean_ctor_set_uint8(x_621, 8, x_611); -lean_ctor_set_uint8(x_621, 9, x_620); -lean_ctor_set_uint8(x_621, 10, x_612); -lean_ctor_set_uint8(x_621, 11, x_613); -lean_ctor_set_uint8(x_621, 12, x_614); -lean_ctor_set_uint8(x_621, 13, x_615); -lean_ctor_set_uint8(x_621, 14, x_616); -lean_ctor_set_uint8(x_621, 15, x_617); -lean_ctor_set_uint8(x_621, 16, x_618); -x_622 = 2; -x_623 = lean_uint64_shift_right(x_593, x_622); -x_624 = lean_uint64_shift_left(x_623, x_622); -x_625 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; -x_626 = lean_uint64_lor(x_624, x_625); -x_627 = lean_alloc_ctor(0, 7, 11); -lean_ctor_set(x_627, 0, x_621); -lean_ctor_set(x_627, 1, x_595); -lean_ctor_set(x_627, 2, x_596); -lean_ctor_set(x_627, 3, x_597); -lean_ctor_set(x_627, 4, x_598); -lean_ctor_set(x_627, 5, x_599); -lean_ctor_set(x_627, 6, x_600); -lean_ctor_set_uint64(x_627, sizeof(void*)*7, x_626); -lean_ctor_set_uint8(x_627, sizeof(void*)*7 + 8, x_594); -lean_ctor_set_uint8(x_627, sizeof(void*)*7 + 9, x_601); -lean_ctor_set_uint8(x_627, sizeof(void*)*7 + 10, x_602); +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_633 = lean_ctor_get(x_632, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_632, 1); +lean_inc(x_634); +lean_dec(x_632); +x_635 = l_Lean_Expr_mvarId_x21(x_628); +lean_dec(x_628); +x_636 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__5; +x_637 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__6; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_560); -lean_inc(x_591); -x_628 = l_Lean_Meta_isExprDefEq(x_591, x_560, x_627, x_9, x_10, x_11, x_590); -if (lean_obj_tag(x_628) == 0) +lean_inc(x_8); +lean_inc(x_3); +x_638 = l_Lean_Elab_runTactic(x_635, x_3, x_636, x_637, x_8, x_9, x_10, x_11, x_634); +if (lean_obj_tag(x_638) == 0) { -lean_object* x_629; uint8_t x_630; -x_629 = lean_ctor_get(x_628, 0); -lean_inc(x_629); -x_630 = lean_unbox(x_629); -lean_dec(x_629); -if (x_630 == 0) +lean_object* x_639; lean_object* x_640; lean_object* x_641; +x_639 = lean_ctor_get(x_638, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_639, 0); +lean_inc(x_640); +if (lean_is_exclusive(x_639)) { + lean_ctor_release(x_639, 0); + lean_ctor_release(x_639, 1); + x_641 = x_639; +} else { + lean_dec_ref(x_639); + x_641 = lean_box(0); +} +if (lean_obj_tag(x_640) == 0) { -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; -x_631 = lean_ctor_get(x_628, 1); -lean_inc(x_631); -lean_dec(x_628); -x_632 = l_Lean_indentExpr(x_591); -x_633 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; -if (lean_is_scalar(x_592)) { - x_634 = lean_alloc_ctor(7, 2, 0); -} else { - x_634 = x_592; - lean_ctor_set_tag(x_634, 7); -} -lean_ctor_set(x_634, 0, x_633); -lean_ctor_set(x_634, 1, x_632); -x_635 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; -if (lean_is_scalar(x_583)) { - x_636 = lean_alloc_ctor(7, 2, 0); -} else { - x_636 = x_583; - lean_ctor_set_tag(x_636, 7); -} -lean_ctor_set(x_636, 0, x_634); -lean_ctor_set(x_636, 1, x_635); -x_637 = l_Lean_indentExpr(x_560); -if (lean_is_scalar(x_568)) { - x_638 = lean_alloc_ctor(7, 2, 0); -} else { - x_638 = x_568; - lean_ctor_set_tag(x_638, 7); -} -lean_ctor_set(x_638, 0, x_636); -lean_ctor_set(x_638, 1, x_637); -x_639 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_557)) { - x_640 = lean_alloc_ctor(7, 2, 0); -} else { - x_640 = x_557; - lean_ctor_set_tag(x_640, 7); -} -lean_ctor_set(x_640, 0, x_638); -lean_ctor_set(x_640, 1, x_639); -x_641 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_640, x_6, x_7, x_8, x_9, x_10, x_11, x_631); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_641; -} -else -{ -lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; -lean_dec(x_592); -lean_dec(x_591); -lean_dec(x_583); -lean_dec(x_568); -lean_dec(x_560); -lean_dec(x_557); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_642 = lean_ctor_get(x_628, 1); +lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; +x_642 = lean_ctor_get(x_638, 1); lean_inc(x_642); -if (lean_is_exclusive(x_628)) { - lean_ctor_release(x_628, 0); - lean_ctor_release(x_628, 1); - x_643 = x_628; +lean_dec(x_638); +x_643 = l_Lean_MessageData_ofSyntax(x_3); +x_644 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_641)) { + x_645 = lean_alloc_ctor(7, 2, 0); } else { - lean_dec_ref(x_628); - x_643 = lean_box(0); -} -x_644 = lean_box(0); -if (lean_is_scalar(x_643)) { - x_645 = lean_alloc_ctor(0, 2, 0); -} else { - x_645 = x_643; + x_645 = x_641; + lean_ctor_set_tag(x_645, 7); } lean_ctor_set(x_645, 0, x_644); -lean_ctor_set(x_645, 1, x_642); -return x_645; +lean_ctor_set(x_645, 1, x_643); +x_646 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__10; +if (lean_is_scalar(x_630)) { + x_647 = lean_alloc_ctor(7, 2, 0); +} else { + x_647 = x_630; + lean_ctor_set_tag(x_647, 7); } -} -else -{ -lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; -lean_dec(x_592); -lean_dec(x_591); -lean_dec(x_583); -lean_dec(x_568); -lean_dec(x_560); -lean_dec(x_557); +lean_ctor_set(x_647, 0, x_645); +lean_ctor_set(x_647, 1, x_646); +x_648 = l_Lean_indentExpr(x_633); +x_649 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_649, 0, x_647); +lean_ctor_set(x_649, 1, x_648); +x_650 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +x_651 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_651, 0, x_649); +lean_ctor_set(x_651, 1, x_650); +x_652 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_651, x_6, x_7, x_8, x_9, x_10, x_11, x_642); lean_dec(x_11); -lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -x_646 = lean_ctor_get(x_628, 0); -lean_inc(x_646); -x_647 = lean_ctor_get(x_628, 1); -lean_inc(x_647); -if (lean_is_exclusive(x_628)) { - lean_ctor_release(x_628, 0); - lean_ctor_release(x_628, 1); - x_648 = x_628; -} else { - lean_dec_ref(x_628); - x_648 = lean_box(0); -} -if (lean_is_scalar(x_648)) { - x_649 = lean_alloc_ctor(1, 2, 0); -} else { - x_649 = x_648; -} -lean_ctor_set(x_649, 0, x_646); -lean_ctor_set(x_649, 1, x_647); -return x_649; -} +return x_652; } else { -lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; -lean_dec(x_583); -lean_dec(x_568); -lean_dec(x_560); -lean_dec(x_557); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_650 = lean_ctor_get(x_587, 0); -lean_inc(x_650); -x_651 = lean_ctor_get(x_587, 1); -lean_inc(x_651); -if (lean_is_exclusive(x_587)) { - lean_ctor_release(x_587, 0); - lean_ctor_release(x_587, 1); - x_652 = x_587; -} else { - lean_dec_ref(x_587); - x_652 = lean_box(0); -} -if (lean_is_scalar(x_652)) { - x_653 = lean_alloc_ctor(1, 2, 0); -} else { - x_653 = x_652; -} -lean_ctor_set(x_653, 0, x_650); -lean_ctor_set(x_653, 1, x_651); -return x_653; -} -} -else +lean_object* x_653; +x_653 = lean_ctor_get(x_640, 1); +lean_inc(x_653); +if (lean_obj_tag(x_653) == 0) { lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; -lean_dec(x_583); -lean_dec(x_568); -lean_dec(x_560); -lean_dec(x_557); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_654 = lean_ctor_get(x_584, 0); +lean_dec(x_630); +lean_dec(x_3); +x_654 = lean_ctor_get(x_638, 1); lean_inc(x_654); -x_655 = lean_ctor_get(x_584, 1); +lean_dec(x_638); +x_655 = lean_ctor_get(x_640, 0); lean_inc(x_655); -if (lean_is_exclusive(x_584)) { - lean_ctor_release(x_584, 0); - lean_ctor_release(x_584, 1); - x_656 = x_584; +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_656 = x_640; } else { - lean_dec_ref(x_584); + lean_dec_ref(x_640); x_656 = lean_box(0); } -if (lean_is_scalar(x_656)) { - x_657 = lean_alloc_ctor(1, 2, 0); -} else { - x_657 = x_656; -} -lean_ctor_set(x_657, 0, x_654); -lean_ctor_set(x_657, 1, x_655); -return x_657; -} -} -else +x_657 = l_Lean_MVarId_getType(x_655, x_8, x_9, x_10, x_11, x_654); +if (lean_obj_tag(x_657) == 0) { -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; lean_object* x_669; lean_object* x_670; -if (lean_is_exclusive(x_567)) { - lean_ctor_release(x_567, 0); - lean_ctor_release(x_567, 1); - x_658 = x_567; -} else { - lean_dec_ref(x_567); - x_658 = lean_box(0); -} -if (lean_is_exclusive(x_580)) { - lean_ctor_release(x_580, 0); - lean_ctor_release(x_580, 1); - x_659 = x_580; -} else { - lean_dec_ref(x_580); - x_659 = lean_box(0); -} -x_660 = lean_ctor_get(x_565, 1); -lean_inc(x_660); -lean_dec(x_565); -x_661 = l_Lean_MessageData_ofSyntax(x_3); -x_662 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; -if (lean_is_scalar(x_659)) { - x_663 = lean_alloc_ctor(7, 2, 0); -} else { - x_663 = x_659; - lean_ctor_set_tag(x_663, 7); -} -lean_ctor_set(x_663, 0, x_662); -lean_ctor_set(x_663, 1, x_661); -x_664 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; -if (lean_is_scalar(x_658)) { - x_665 = lean_alloc_ctor(7, 2, 0); -} else { - x_665 = x_658; - lean_ctor_set_tag(x_665, 7); -} -lean_ctor_set(x_665, 0, x_663); -lean_ctor_set(x_665, 1, x_664); -x_666 = l_Lean_indentExpr(x_560); -if (lean_is_scalar(x_568)) { - x_667 = lean_alloc_ctor(7, 2, 0); -} else { - x_667 = x_568; - lean_ctor_set_tag(x_667, 7); -} -lean_ctor_set(x_667, 0, x_665); -lean_ctor_set(x_667, 1, x_666); -x_668 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; -if (lean_is_scalar(x_557)) { - x_669 = lean_alloc_ctor(7, 2, 0); -} else { - x_669 = x_557; - lean_ctor_set_tag(x_669, 7); -} -lean_ctor_set(x_669, 0, x_667); -lean_ctor_set(x_669, 1, x_668); -x_670 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_669, x_6, x_7, x_8, x_9, x_10, x_11, x_660); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_670; -} -} -} -else +lean_object* x_658; lean_object* x_659; lean_object* x_660; +x_658 = lean_ctor_get(x_657, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_657, 1); +lean_inc(x_659); +lean_dec(x_657); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_660 = l_Lean_Meta_CheckTactic_matchCheckGoalType(x_4, x_658, x_8, x_9, x_10, x_11, x_659); +if (lean_obj_tag(x_660) == 0) { -lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; -lean_dec(x_560); -lean_dec(x_557); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_671 = lean_ctor_get(x_565, 0); +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; uint64_t x_666; uint8_t x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; uint8_t x_674; uint8_t x_675; uint8_t x_676; uint8_t x_677; uint8_t x_678; uint8_t x_679; uint8_t x_680; uint8_t x_681; uint8_t x_682; uint8_t x_683; uint8_t x_684; uint8_t x_685; uint8_t x_686; uint8_t x_687; uint8_t x_688; uint8_t x_689; uint8_t x_690; uint8_t x_691; lean_object* x_692; uint8_t x_693; lean_object* x_694; uint64_t x_695; uint64_t x_696; uint64_t x_697; uint64_t x_698; uint64_t x_699; lean_object* x_700; lean_object* x_701; +x_661 = lean_ctor_get(x_660, 0); +lean_inc(x_661); +x_662 = lean_ctor_get(x_8, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_660, 1); +lean_inc(x_663); +lean_dec(x_660); +x_664 = lean_ctor_get(x_661, 0); +lean_inc(x_664); +if (lean_is_exclusive(x_661)) { + lean_ctor_release(x_661, 0); + lean_ctor_release(x_661, 1); + x_665 = x_661; +} else { + lean_dec_ref(x_661); + x_665 = lean_box(0); +} +x_666 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_667 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_668 = lean_ctor_get(x_8, 1); +lean_inc(x_668); +x_669 = lean_ctor_get(x_8, 2); +lean_inc(x_669); +x_670 = lean_ctor_get(x_8, 3); +lean_inc(x_670); +x_671 = lean_ctor_get(x_8, 4); lean_inc(x_671); -x_672 = lean_ctor_get(x_565, 1); +x_672 = lean_ctor_get(x_8, 5); lean_inc(x_672); -if (lean_is_exclusive(x_565)) { - lean_ctor_release(x_565, 0); - lean_ctor_release(x_565, 1); - x_673 = x_565; +x_673 = lean_ctor_get(x_8, 6); +lean_inc(x_673); +x_674 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_675 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +x_676 = lean_ctor_get_uint8(x_662, 0); +x_677 = lean_ctor_get_uint8(x_662, 1); +x_678 = lean_ctor_get_uint8(x_662, 2); +x_679 = lean_ctor_get_uint8(x_662, 3); +x_680 = lean_ctor_get_uint8(x_662, 4); +x_681 = lean_ctor_get_uint8(x_662, 5); +x_682 = lean_ctor_get_uint8(x_662, 6); +x_683 = lean_ctor_get_uint8(x_662, 7); +x_684 = lean_ctor_get_uint8(x_662, 8); +x_685 = lean_ctor_get_uint8(x_662, 10); +x_686 = lean_ctor_get_uint8(x_662, 11); +x_687 = lean_ctor_get_uint8(x_662, 12); +x_688 = lean_ctor_get_uint8(x_662, 13); +x_689 = lean_ctor_get_uint8(x_662, 14); +x_690 = lean_ctor_get_uint8(x_662, 15); +x_691 = lean_ctor_get_uint8(x_662, 16); +if (lean_is_exclusive(x_662)) { + x_692 = x_662; } else { - lean_dec_ref(x_565); - x_673 = lean_box(0); + lean_dec_ref(x_662); + x_692 = lean_box(0); } -if (lean_is_scalar(x_673)) { - x_674 = lean_alloc_ctor(1, 2, 0); +x_693 = 2; +if (lean_is_scalar(x_692)) { + x_694 = lean_alloc_ctor(0, 0, 17); } else { - x_674 = x_673; + x_694 = x_692; } -lean_ctor_set(x_674, 0, x_671); -lean_ctor_set(x_674, 1, x_672); -return x_674; +lean_ctor_set_uint8(x_694, 0, x_676); +lean_ctor_set_uint8(x_694, 1, x_677); +lean_ctor_set_uint8(x_694, 2, x_678); +lean_ctor_set_uint8(x_694, 3, x_679); +lean_ctor_set_uint8(x_694, 4, x_680); +lean_ctor_set_uint8(x_694, 5, x_681); +lean_ctor_set_uint8(x_694, 6, x_682); +lean_ctor_set_uint8(x_694, 7, x_683); +lean_ctor_set_uint8(x_694, 8, x_684); +lean_ctor_set_uint8(x_694, 9, x_693); +lean_ctor_set_uint8(x_694, 10, x_685); +lean_ctor_set_uint8(x_694, 11, x_686); +lean_ctor_set_uint8(x_694, 12, x_687); +lean_ctor_set_uint8(x_694, 13, x_688); +lean_ctor_set_uint8(x_694, 14, x_689); +lean_ctor_set_uint8(x_694, 15, x_690); +lean_ctor_set_uint8(x_694, 16, x_691); +x_695 = 2; +x_696 = lean_uint64_shift_right(x_666, x_695); +x_697 = lean_uint64_shift_left(x_696, x_695); +x_698 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__13; +x_699 = lean_uint64_lor(x_697, x_698); +x_700 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_700, 0, x_694); +lean_ctor_set(x_700, 1, x_668); +lean_ctor_set(x_700, 2, x_669); +lean_ctor_set(x_700, 3, x_670); +lean_ctor_set(x_700, 4, x_671); +lean_ctor_set(x_700, 5, x_672); +lean_ctor_set(x_700, 6, x_673); +lean_ctor_set_uint64(x_700, sizeof(void*)*7, x_699); +lean_ctor_set_uint8(x_700, sizeof(void*)*7 + 8, x_667); +lean_ctor_set_uint8(x_700, sizeof(void*)*7 + 9, x_674); +lean_ctor_set_uint8(x_700, sizeof(void*)*7 + 10, x_675); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_633); +lean_inc(x_664); +x_701 = l_Lean_Meta_isExprDefEq(x_664, x_633, x_700, x_9, x_10, x_11, x_663); +if (lean_obj_tag(x_701) == 0) +{ +lean_object* x_702; uint8_t x_703; +x_702 = lean_ctor_get(x_701, 0); +lean_inc(x_702); +x_703 = lean_unbox(x_702); +lean_dec(x_702); +if (x_703 == 0) +{ +lean_object* x_704; lean_object* x_705; +x_704 = lean_ctor_get(x_701, 1); +lean_inc(x_704); +lean_dec(x_701); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_705 = l_Lean_Meta_addPPExplicitToExposeDiff(x_664, x_633, x_8, x_9, x_10, x_11, x_704); +if (lean_obj_tag(x_705) == 0) +{ +lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; +x_706 = lean_ctor_get(x_705, 0); +lean_inc(x_706); +x_707 = lean_ctor_get(x_705, 1); +lean_inc(x_707); +lean_dec(x_705); +x_708 = lean_ctor_get(x_706, 0); +lean_inc(x_708); +x_709 = lean_ctor_get(x_706, 1); +lean_inc(x_709); +if (lean_is_exclusive(x_706)) { + lean_ctor_release(x_706, 0); + lean_ctor_release(x_706, 1); + x_710 = x_706; +} else { + lean_dec_ref(x_706); + x_710 = lean_box(0); +} +x_711 = l_Lean_indentExpr(x_708); +x_712 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__15; +if (lean_is_scalar(x_710)) { + x_713 = lean_alloc_ctor(7, 2, 0); +} else { + x_713 = x_710; + lean_ctor_set_tag(x_713, 7); +} +lean_ctor_set(x_713, 0, x_712); +lean_ctor_set(x_713, 1, x_711); +x_714 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__17; +if (lean_is_scalar(x_665)) { + x_715 = lean_alloc_ctor(7, 2, 0); +} else { + x_715 = x_665; + lean_ctor_set_tag(x_715, 7); +} +lean_ctor_set(x_715, 0, x_713); +lean_ctor_set(x_715, 1, x_714); +x_716 = l_Lean_indentExpr(x_709); +if (lean_is_scalar(x_656)) { + x_717 = lean_alloc_ctor(7, 2, 0); +} else { + x_717 = x_656; + lean_ctor_set_tag(x_717, 7); +} +lean_ctor_set(x_717, 0, x_715); +lean_ctor_set(x_717, 1, x_716); +x_718 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_641)) { + x_719 = lean_alloc_ctor(7, 2, 0); +} else { + x_719 = x_641; + lean_ctor_set_tag(x_719, 7); +} +lean_ctor_set(x_719, 0, x_717); +lean_ctor_set(x_719, 1, x_718); +x_720 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_719, x_6, x_7, x_8, x_9, x_10, x_11, x_707); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_720; +} +else +{ +lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; +lean_dec(x_665); +lean_dec(x_656); +lean_dec(x_641); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_721 = lean_ctor_get(x_705, 0); +lean_inc(x_721); +x_722 = lean_ctor_get(x_705, 1); +lean_inc(x_722); +if (lean_is_exclusive(x_705)) { + lean_ctor_release(x_705, 0); + lean_ctor_release(x_705, 1); + x_723 = x_705; +} else { + lean_dec_ref(x_705); + x_723 = lean_box(0); +} +if (lean_is_scalar(x_723)) { + x_724 = lean_alloc_ctor(1, 2, 0); +} else { + x_724 = x_723; +} +lean_ctor_set(x_724, 0, x_721); +lean_ctor_set(x_724, 1, x_722); +return x_724; } } else { -lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; -lean_dec(x_557); -lean_dec(x_555); +lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +lean_dec(x_665); +lean_dec(x_664); +lean_dec(x_656); +lean_dec(x_641); +lean_dec(x_633); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_725 = lean_ctor_get(x_701, 1); +lean_inc(x_725); +if (lean_is_exclusive(x_701)) { + lean_ctor_release(x_701, 0); + lean_ctor_release(x_701, 1); + x_726 = x_701; +} else { + lean_dec_ref(x_701); + x_726 = lean_box(0); +} +x_727 = lean_box(0); +if (lean_is_scalar(x_726)) { + x_728 = lean_alloc_ctor(0, 2, 0); +} else { + x_728 = x_726; +} +lean_ctor_set(x_728, 0, x_727); +lean_ctor_set(x_728, 1, x_725); +return x_728; +} +} +else +{ +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; +lean_dec(x_665); +lean_dec(x_664); +lean_dec(x_656); +lean_dec(x_641); +lean_dec(x_633); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_729 = lean_ctor_get(x_701, 0); +lean_inc(x_729); +x_730 = lean_ctor_get(x_701, 1); +lean_inc(x_730); +if (lean_is_exclusive(x_701)) { + lean_ctor_release(x_701, 0); + lean_ctor_release(x_701, 1); + x_731 = x_701; +} else { + lean_dec_ref(x_701); + x_731 = lean_box(0); +} +if (lean_is_scalar(x_731)) { + x_732 = lean_alloc_ctor(1, 2, 0); +} else { + x_732 = x_731; +} +lean_ctor_set(x_732, 0, x_729); +lean_ctor_set(x_732, 1, x_730); +return x_732; +} +} +else +{ +lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; +lean_dec(x_656); +lean_dec(x_641); +lean_dec(x_633); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_733 = lean_ctor_get(x_660, 0); +lean_inc(x_733); +x_734 = lean_ctor_get(x_660, 1); +lean_inc(x_734); +if (lean_is_exclusive(x_660)) { + lean_ctor_release(x_660, 0); + lean_ctor_release(x_660, 1); + x_735 = x_660; +} else { + lean_dec_ref(x_660); + x_735 = lean_box(0); +} +if (lean_is_scalar(x_735)) { + x_736 = lean_alloc_ctor(1, 2, 0); +} else { + x_736 = x_735; +} +lean_ctor_set(x_736, 0, x_733); +lean_ctor_set(x_736, 1, x_734); +return x_736; +} +} +else +{ +lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; +lean_dec(x_656); +lean_dec(x_641); +lean_dec(x_633); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_737 = lean_ctor_get(x_657, 0); +lean_inc(x_737); +x_738 = lean_ctor_get(x_657, 1); +lean_inc(x_738); +if (lean_is_exclusive(x_657)) { + lean_ctor_release(x_657, 0); + lean_ctor_release(x_657, 1); + x_739 = x_657; +} else { + lean_dec_ref(x_657); + x_739 = lean_box(0); +} +if (lean_is_scalar(x_739)) { + x_740 = lean_alloc_ctor(1, 2, 0); +} else { + x_740 = x_739; +} +lean_ctor_set(x_740, 0, x_737); +lean_ctor_set(x_740, 1, x_738); +return x_740; +} +} +else +{ +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; +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_741 = x_640; +} else { + lean_dec_ref(x_640); + x_741 = lean_box(0); +} +if (lean_is_exclusive(x_653)) { + lean_ctor_release(x_653, 0); + lean_ctor_release(x_653, 1); + x_742 = x_653; +} else { + lean_dec_ref(x_653); + x_742 = lean_box(0); +} +x_743 = lean_ctor_get(x_638, 1); +lean_inc(x_743); +lean_dec(x_638); +x_744 = l_Lean_MessageData_ofSyntax(x_3); +x_745 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__8; +if (lean_is_scalar(x_742)) { + x_746 = lean_alloc_ctor(7, 2, 0); +} else { + x_746 = x_742; + lean_ctor_set_tag(x_746, 7); +} +lean_ctor_set(x_746, 0, x_745); +lean_ctor_set(x_746, 1, x_744); +x_747 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__19; +if (lean_is_scalar(x_741)) { + x_748 = lean_alloc_ctor(7, 2, 0); +} else { + x_748 = x_741; + lean_ctor_set_tag(x_748, 7); +} +lean_ctor_set(x_748, 0, x_746); +lean_ctor_set(x_748, 1, x_747); +x_749 = l_Lean_indentExpr(x_633); +if (lean_is_scalar(x_641)) { + x_750 = lean_alloc_ctor(7, 2, 0); +} else { + x_750 = x_641; + lean_ctor_set_tag(x_750, 7); +} +lean_ctor_set(x_750, 0, x_748); +lean_ctor_set(x_750, 1, x_749); +x_751 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__12; +if (lean_is_scalar(x_630)) { + x_752 = lean_alloc_ctor(7, 2, 0); +} else { + x_752 = x_630; + lean_ctor_set_tag(x_752, 7); +} +lean_ctor_set(x_752, 0, x_750); +lean_ctor_set(x_752, 1, x_751); +x_753 = l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(x_4, x_752, x_6, x_7, x_8, x_9, x_10, x_11, x_743); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_753; +} +} +} +else +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; +lean_dec(x_633); +lean_dec(x_630); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3236,32 +3645,66 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_675 = lean_ctor_get(x_559, 0); -lean_inc(x_675); -x_676 = lean_ctor_get(x_559, 1); -lean_inc(x_676); -if (lean_is_exclusive(x_559)) { - lean_ctor_release(x_559, 0); - lean_ctor_release(x_559, 1); - x_677 = x_559; +x_754 = lean_ctor_get(x_638, 0); +lean_inc(x_754); +x_755 = lean_ctor_get(x_638, 1); +lean_inc(x_755); +if (lean_is_exclusive(x_638)) { + lean_ctor_release(x_638, 0); + lean_ctor_release(x_638, 1); + x_756 = x_638; } else { - lean_dec_ref(x_559); - x_677 = lean_box(0); + lean_dec_ref(x_638); + x_756 = lean_box(0); } -if (lean_is_scalar(x_677)) { - x_678 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_756)) { + x_757 = lean_alloc_ctor(1, 2, 0); } else { - x_678 = x_677; + x_757 = x_756; } -lean_ctor_set(x_678, 0, x_675); -lean_ctor_set(x_678, 1, x_676); -return x_678; +lean_ctor_set(x_757, 0, x_754); +lean_ctor_set(x_757, 1, x_755); +return x_757; +} +} +else +{ +lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; +lean_dec(x_630); +lean_dec(x_628); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_758 = lean_ctor_get(x_632, 0); +lean_inc(x_758); +x_759 = lean_ctor_get(x_632, 1); +lean_inc(x_759); +if (lean_is_exclusive(x_632)) { + lean_ctor_release(x_632, 0); + lean_ctor_release(x_632, 1); + x_760 = x_632; +} else { + lean_dec_ref(x_632); + x_760 = lean_box(0); +} +if (lean_is_scalar(x_760)) { + x_761 = lean_alloc_ctor(1, 2, 0); +} else { + x_761 = x_760; +} +lean_ctor_set(x_761, 0, x_758); +lean_ctor_set(x_761, 1, x_759); +return x_761; } } } else { -uint8_t x_679; +uint8_t x_762; lean_dec(x_20); lean_dec(x_11); lean_dec(x_10); @@ -3271,29 +3714,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_679 = !lean_is_exclusive(x_22); -if (x_679 == 0) +x_762 = !lean_is_exclusive(x_22); +if (x_762 == 0) { return x_22; } else { -lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_680 = lean_ctor_get(x_22, 0); -x_681 = lean_ctor_get(x_22, 1); -lean_inc(x_681); -lean_inc(x_680); +lean_object* x_763; lean_object* x_764; lean_object* x_765; +x_763 = lean_ctor_get(x_22, 0); +x_764 = lean_ctor_get(x_22, 1); +lean_inc(x_764); +lean_inc(x_763); lean_dec(x_22); -x_682 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_682, 0, x_680); -lean_ctor_set(x_682, 1, x_681); -return x_682; +x_765 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_765, 0, x_763); +lean_ctor_set(x_765, 1, x_764); +return x_765; } } } else { -uint8_t x_683; +uint8_t x_766; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3302,23 +3745,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_683 = !lean_is_exclusive(x_19); -if (x_683 == 0) +x_766 = !lean_is_exclusive(x_19); +if (x_766 == 0) { return x_19; } else { -lean_object* x_684; lean_object* x_685; lean_object* x_686; -x_684 = lean_ctor_get(x_19, 0); -x_685 = lean_ctor_get(x_19, 1); -lean_inc(x_685); -lean_inc(x_684); +lean_object* x_767; lean_object* x_768; lean_object* x_769; +x_767 = lean_ctor_get(x_19, 0); +x_768 = lean_ctor_get(x_19, 1); +lean_inc(x_768); +lean_inc(x_767); lean_dec(x_19); -x_686 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_686, 0, x_684); -lean_ctor_set(x_686, 1, x_685); -return x_686; +x_769 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_769, 0, x_767); +lean_ctor_set(x_769, 1, x_768); +return x_769; } } } diff --git a/stage0/stdlib/Lean/Elab/Deriving.c b/stage0/stdlib/Lean/Elab/Deriving.c index f36564b7da..98315f2723 100644 --- a/stage0/stdlib/Lean/Elab/Deriving.c +++ b/stage0/stdlib/Lean/Elab/Deriving.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Deriving -// Imports: Lean.Elab.Deriving.Basic Lean.Elab.Deriving.Util Lean.Elab.Deriving.Inhabited Lean.Elab.Deriving.Nonempty Lean.Elab.Deriving.TypeName Lean.Elab.Deriving.BEq Lean.Elab.Deriving.DecEq Lean.Elab.Deriving.Repr Lean.Elab.Deriving.FromToJson Lean.Elab.Deriving.SizeOf Lean.Elab.Deriving.Hashable Lean.Elab.Deriving.Ord +// Imports: Lean.Elab.Deriving.Basic Lean.Elab.Deriving.Util Lean.Elab.Deriving.Inhabited Lean.Elab.Deriving.Nonempty Lean.Elab.Deriving.TypeName Lean.Elab.Deriving.BEq Lean.Elab.Deriving.DecEq Lean.Elab.Deriving.Repr Lean.Elab.Deriving.FromToJson Lean.Elab.Deriving.SizeOf Lean.Elab.Deriving.Hashable Lean.Elab.Deriving.Ord Lean.Elab.Deriving.ToExpr #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -25,6 +25,7 @@ lean_object* initialize_Lean_Elab_Deriving_FromToJson(uint8_t builtin, lean_obje lean_object* initialize_Lean_Elab_Deriving_SizeOf(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Deriving_Hashable(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Deriving_Ord(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Deriving_ToExpr(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Deriving(uint8_t builtin, lean_object* w) { lean_object * res; @@ -66,6 +67,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Deriving_Ord(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Deriving_ToExpr(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 diff --git a/stage0/stdlib/Lean/Elab/Deriving/ToExpr.c b/stage0/stdlib/Lean/Elab/Deriving/ToExpr.c new file mode 100644 index 0000000000..6338a06825 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Deriving/ToExpr.c @@ -0,0 +1,16344 @@ +// Lean compiler output +// Module: Lean.Elab.Deriving.ToExpr +// Imports: Lean.Meta.Transform Lean.Elab.Deriving.Basic Lean.Elab.Deriving.Util Lean.ToLevel Lean.ToExpr +#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 +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9; +lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_withScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +LEAN_EXPORT lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1; +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12; +static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1(lean_object*, 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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35; +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5; +uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1; +lean_object* l_Lean_Syntax_getArgs(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4; +lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__6; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37; +lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20; +lean_object* lean_environment_find(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1; +static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2; +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39; +lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1; +lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__12; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Deriving_mkInductiveApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2; +LEAN_EXPORT lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16; +static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4; +size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_registerDerivingHandler(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7; +lean_object* l_Lean_Elab_Deriving_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAppNTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4; +lean_object* l_Array_unzip___rarg(lean_object*); +lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15; +lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1; +lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(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_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkInductiveApp___spec__1(size_t, size_t, lean_object*); +lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3; +lean_object* l_outOfBounds___rarg(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9; +lean_object* l_Lean_quoteNameMk(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_pop(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1(lean_object*, lean_object*, 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_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2; +lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +lean_object* l_Lean_Elab_Deriving_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___boxed(lean_object**); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17; +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__10; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_object* l_Lean_Elab_Deriving_mkInstImplicitBinders(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_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2; +lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2; +lean_object* l_Lean_Elab_Deriving_mkInductArgNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2(size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__2; +lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12; +uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__3(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(size_t, size_t, lean_object*); +lean_object* lean_mk_syntax_ident(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16; +lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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* l_Array_append___rarg(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21; +lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___boxed(lean_object**); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049_(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__11; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__11; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___boxed(lean_object**); +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3; +lean_object* l_Lean_Elab_Deriving_mkImplicitBinders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* lean_environment_main_module(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11; +lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__11; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___rarg(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_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_autoImplicit; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16; +lean_object* l_Array_back_x21___rarg(lean_object*, lean_object*); +lean_object* l_Array_ofSubarray___rarg(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33; +lean_object* l_List_reverse___rarg(lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1; +lean_object* l_String_intercalate(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__5___boxed(lean_object**); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1; +static lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(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); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2; +extern lean_object* l_Lean_instInhabitedName; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7; +lean_object* lean_array_uget(lean_object*, size_t); +size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +extern lean_object* l_Lean_instInhabitedInductiveVal; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4; +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7; +lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3; +lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1; +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12; +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10; +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8(size_t, size_t, lean_object*); +lean_object* l_String_toSubstring_x27(lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__20(size_t, size_t, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14; +static lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10; +static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31; +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Parser", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("app", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Expr.app", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Expr", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10; +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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___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; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("null", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_eq(x_2, x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 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; +x_11 = lean_array_uget(x_1, x_2); +x_12 = lean_ctor_get(x_7, 5); +lean_inc(x_12); +x_13 = 0; +x_14 = l_Lean_SourceInfo_fromRef(x_12, x_13); +lean_dec(x_12); +x_15 = lean_ctor_get(x_7, 10); +lean_inc(x_15); +x_16 = lean_st_ref_get(x_8, x_9); +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(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_environment_main_module(x_19); +x_21 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9; +x_22 = l_Lean_addMacroScope(x_20, x_21, x_15); +x_23 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7; +x_24 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15; +lean_inc(x_14); +x_25 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set(x_25, 2, x_22); +lean_ctor_set(x_25, 3, x_24); +x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_14); +x_27 = l_Lean_Syntax_node2(x_14, x_26, x_4, x_11); +x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_29 = l_Lean_Syntax_node2(x_14, x_28, x_25, x_27); +x_30 = 1; +x_31 = lean_usize_add(x_2, x_30); +x_2 = x_31; +x_4 = x_29; +x_9 = x_18; +goto _start; +} +else +{ +lean_object* x_33; +lean_dec(x_7); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_4); +lean_ctor_set(x_33, 1, x_9); +return x_33; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(lean_object* x_1, 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; uint8_t x_10; +x_8 = lean_array_get_size(x_2); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_lt(x_9, x_8); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_8); +lean_dec(x_5); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_7); +return x_11; +} +else +{ +uint8_t x_12; +x_12 = lean_nat_dec_le(x_8, x_8); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_8); +lean_dec(x_5); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_7); +return x_13; +} +else +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = 0; +x_15 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_16 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1(x_2, x_14, x_15, x_1, x_3, x_4, x_5, x_6, x_7); +return x_16; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAppNTerm___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_Elab_Deriving_ToExpr_mkAppNTerm(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___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) { +_start: +{ +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_6, 5); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_12, 1, x_18); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_12); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_12, 1, x_19); +lean_ctor_set(x_12, 0, x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(1, 2, 0); +} else { + x_29 = x_27; + lean_ctor_set_tag(x_29, 1); +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2(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_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +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_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("(internal error) expecting output of `mkInductiveApp`", 53, 53); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("explicit", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("@", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("explicitUniv", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(".{", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9() { +_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_Elab_Deriving_ToExpr_updateIndType___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("level", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__10; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_updateIndType___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_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(",", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("}", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_array_mk(x_11); +x_13 = lean_array_size(x_12); +x_14 = 0; +x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkInductiveApp___spec__1(x_13, x_14, x_12); +x_16 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_2); +x_17 = l_Lean_Syntax_isOfKind(x_2, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_2); +x_18 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2; +x_19 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__1(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_Syntax_getArg(x_2, x_20); +x_22 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +lean_inc(x_21); +x_23 = l_Lean_Syntax_isOfKind(x_21, x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_21); +lean_dec(x_15); +lean_dec(x_2); +x_24 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2; +x_25 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__1(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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; lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_3); +x_26 = lean_unsigned_to_nat(1u); +x_27 = l_Lean_Syntax_getArg(x_21, x_26); +lean_dec(x_21); +x_28 = l_Lean_Syntax_getArg(x_2, x_26); +lean_dec(x_2); +x_29 = l_Lean_Syntax_getArgs(x_28); +lean_dec(x_28); +x_30 = lean_ctor_get(x_7, 5); +x_31 = 0; +x_32 = l_Lean_SourceInfo_fromRef(x_30, x_31); +x_33 = lean_st_ref_get(x_8, x_9); +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; size_t 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; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +x_36 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_32); +x_37 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_37, 0, x_32); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_32); +x_39 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_array_size(x_15); +x_41 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12; +x_42 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2(x_41, x_40, x_14, x_15); +x_43 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_44 = l_Lean_Syntax_SepArray_ofElems(x_43, x_42); +lean_dec(x_42); +x_45 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_46 = l_Array_append___rarg(x_45, x_44); +lean_dec(x_44); +x_47 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_32); +x_48 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_48, 0, x_32); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_46); +x_49 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_32); +x_50 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_50, 0, x_32); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_32); +x_52 = l_Lean_Syntax_node4(x_32, x_51, x_27, x_39, x_48, x_50); +lean_inc(x_32); +x_53 = l_Lean_Syntax_node2(x_32, x_22, x_37, x_52); +x_54 = l_Array_append___rarg(x_45, x_29); +lean_dec(x_29); +lean_inc(x_32); +x_55 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_55, 0, x_32); +lean_ctor_set(x_55, 1, x_47); +lean_ctor_set(x_55, 2, x_54); +x_56 = l_Lean_Syntax_node2(x_32, x_16, x_53, x_55); +lean_ctor_set(x_33, 0, x_56); +return x_33; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; size_t 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; +x_57 = lean_ctor_get(x_33, 1); +lean_inc(x_57); +lean_dec(x_33); +x_58 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_32); +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_32); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_32); +x_61 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_61, 0, x_32); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_array_size(x_15); +x_63 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12; +x_64 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2(x_63, x_62, x_14, x_15); +x_65 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_66 = l_Lean_Syntax_SepArray_ofElems(x_65, x_64); +lean_dec(x_64); +x_67 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_68 = l_Array_append___rarg(x_67, x_66); +lean_dec(x_66); +x_69 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_32); +x_70 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_70, 0, x_32); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set(x_70, 2, x_68); +x_71 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_32); +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_32); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_32); +x_74 = l_Lean_Syntax_node4(x_32, x_73, x_27, x_61, x_70, x_72); +lean_inc(x_32); +x_75 = l_Lean_Syntax_node2(x_32, x_22, x_59, x_74); +x_76 = l_Array_append___rarg(x_67, x_29); +lean_dec(x_29); +lean_inc(x_32); +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_32); +lean_ctor_set(x_77, 1, x_69); +lean_ctor_set(x_77, 2, x_76); +x_78 = l_Lean_Syntax_node2(x_32, x_16, x_75, 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_57); +return x_79; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_updateIndType___spec__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_updateIndType___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: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_10; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.toLevel", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toLevel", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ToLevel", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5; +x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1(size_t 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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_2, x_1); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_13 = lean_array_uget(x_3, x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_uset(x_3, x_2, x_14); +x_16 = lean_ctor_get(x_8, 5); +lean_inc(x_16); +x_17 = 0; +x_18 = l_Lean_SourceInfo_fromRef(x_16, x_17); +lean_dec(x_16); +x_19 = lean_ctor_get(x_8, 10); +lean_inc(x_19); +x_20 = lean_st_ref_get(x_9, 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_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; size_t x_39; size_t x_40; lean_object* x_41; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_environment_main_module(x_24); +x_26 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4; +x_27 = l_Lean_addMacroScope(x_25, x_26, x_19); +x_28 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2; +x_29 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8; +lean_inc(x_18); +x_30 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_30, 0, x_18); +lean_ctor_set(x_30, 1, x_28); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_29); +x_31 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_18); +lean_ctor_set_tag(x_20, 2); +lean_ctor_set(x_20, 1, x_31); +lean_ctor_set(x_20, 0, x_18); +x_32 = lean_mk_syntax_ident(x_13); +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_18); +x_34 = l_Lean_Syntax_node1(x_18, x_33, x_32); +x_35 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_18); +x_36 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_36, 0, x_18); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +x_38 = l_Lean_Syntax_node4(x_18, x_37, x_30, x_20, x_34, x_36); +x_39 = 1; +x_40 = lean_usize_add(x_2, x_39); +x_41 = lean_array_uset(x_15, x_2, x_38); +x_2 = x_40; +x_3 = x_41; +x_10 = x_23; +goto _start; +} +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; 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; size_t x_61; size_t x_62; lean_object* x_63; +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_ctor_get(x_43, 0); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_environment_main_module(x_45); +x_47 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4; +x_48 = l_Lean_addMacroScope(x_46, x_47, x_19); +x_49 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2; +x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8; +lean_inc(x_18); +x_51 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_51, 0, x_18); +lean_ctor_set(x_51, 1, x_49); +lean_ctor_set(x_51, 2, x_48); +lean_ctor_set(x_51, 3, x_50); +x_52 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_18); +x_53 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_53, 0, x_18); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_mk_syntax_ident(x_13); +x_55 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_18); +x_56 = l_Lean_Syntax_node1(x_18, x_55, x_54); +x_57 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_18); +x_58 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_58, 0, x_18); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +x_60 = l_Lean_Syntax_node4(x_18, x_59, x_51, x_53, x_56, x_58); +x_61 = 1; +x_62 = lean_usize_add(x_2, x_61); +x_63 = lean_array_uset(x_15, x_2, x_60); +x_2 = x_62; +x_3 = x_63; +x_10 = x_44; +goto _start; +} +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toExpr", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ToExpr", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("toTypeExpr", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2(lean_object* 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) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_5, x_4); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_6); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_26; +x_16 = lean_array_uget(x_3, x_5); +x_26 = !lean_is_exclusive(x_6); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_27 = lean_ctor_get(x_6, 0); +x_28 = lean_ctor_get(x_6, 1); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +x_31 = lean_ctor_get(x_27, 2); +lean_inc(x_31); +x_32 = lean_nat_dec_lt(x_30, x_31); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_16); +x_33 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_33, 0, x_6); +x_17 = x_33; +x_18 = x_13; +goto block_25; +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_27); +if (x_34 == 0) +{ +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_35 = lean_ctor_get(x_27, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_27, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_array_fget(x_29, x_30); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_30, x_39); +lean_dec(x_30); +lean_ctor_set(x_27, 1, x_40); +x_41 = lean_mk_syntax_ident(x_16); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_42 = l_Lean_Meta_isType(x_38, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_unbox(x_43); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_ctor_get(x_11, 5); +lean_inc(x_46); +x_47 = 0; +x_48 = l_Lean_SourceInfo_fromRef(x_46, x_47); +lean_dec(x_46); +x_49 = lean_ctor_get(x_11, 10); +lean_inc(x_49); +x_50 = lean_st_ref_get(x_12, x_45); +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(x_50); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_environment_main_module(x_53); +x_55 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_56 = l_Lean_addMacroScope(x_54, x_55, x_49); +x_57 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_58 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_48); +x_59 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_59, 0, x_48); +lean_ctor_set(x_59, 1, x_57); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set(x_59, 3, x_58); +x_60 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_48); +x_61 = l_Lean_Syntax_node1(x_48, x_60, x_41); +x_62 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_63 = l_Lean_Syntax_node2(x_48, x_62, x_59, x_61); +x_64 = lean_array_push(x_28, x_63); +lean_ctor_set(x_6, 1, x_64); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_6); +x_17 = x_65; +x_18 = x_52; +goto block_25; +} +else +{ +lean_object* x_66; lean_object* x_67; uint8_t 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; +x_66 = lean_ctor_get(x_42, 1); +lean_inc(x_66); +lean_dec(x_42); +x_67 = lean_ctor_get(x_11, 5); +lean_inc(x_67); +x_68 = 0; +x_69 = l_Lean_SourceInfo_fromRef(x_67, x_68); +lean_dec(x_67); +x_70 = lean_ctor_get(x_11, 10); +lean_inc(x_70); +x_71 = lean_st_ref_get(x_12, x_66); +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(x_71); +x_74 = lean_ctor_get(x_72, 0); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_environment_main_module(x_74); +x_76 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_77 = l_Lean_addMacroScope(x_75, x_76, x_70); +x_78 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_79 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_69); +x_80 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_80, 0, x_69); +lean_ctor_set(x_80, 1, x_78); +lean_ctor_set(x_80, 2, x_77); +lean_ctor_set(x_80, 3, x_79); +x_81 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_69); +x_82 = l_Lean_Syntax_node1(x_69, x_81, x_41); +x_83 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_84 = l_Lean_Syntax_node2(x_69, x_83, x_80, x_82); +x_85 = lean_array_push(x_28, x_84); +lean_ctor_set(x_6, 1, x_85); +x_86 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_86, 0, x_6); +x_17 = x_86; +x_18 = x_73; +goto block_25; +} +} +else +{ +uint8_t x_87; +lean_dec(x_41); +lean_dec(x_27); +lean_free_object(x_6); +lean_dec(x_28); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_87 = !lean_is_exclusive(x_42); +if (x_87 == 0) +{ +return x_42; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_42, 0); +x_89 = lean_ctor_get(x_42, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_42); +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 +{ +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_dec(x_27); +x_91 = lean_array_fget(x_29, x_30); +x_92 = lean_unsigned_to_nat(1u); +x_93 = lean_nat_add(x_30, x_92); +lean_dec(x_30); +x_94 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_94, 0, x_29); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set(x_94, 2, x_31); +x_95 = lean_mk_syntax_ident(x_16); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_96 = l_Lean_Meta_isType(x_91, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; uint8_t x_98; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_unbox(x_97); +lean_dec(x_97); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; uint8_t 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; +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +lean_dec(x_96); +x_100 = lean_ctor_get(x_11, 5); +lean_inc(x_100); +x_101 = 0; +x_102 = l_Lean_SourceInfo_fromRef(x_100, x_101); +lean_dec(x_100); +x_103 = lean_ctor_get(x_11, 10); +lean_inc(x_103); +x_104 = lean_st_ref_get(x_12, x_99); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_ctor_get(x_105, 0); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_environment_main_module(x_107); +x_109 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_110 = l_Lean_addMacroScope(x_108, x_109, x_103); +x_111 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_112 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_102); +x_113 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_113, 0, x_102); +lean_ctor_set(x_113, 1, x_111); +lean_ctor_set(x_113, 2, x_110); +lean_ctor_set(x_113, 3, x_112); +x_114 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_102); +x_115 = l_Lean_Syntax_node1(x_102, x_114, x_95); +x_116 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_117 = l_Lean_Syntax_node2(x_102, x_116, x_113, x_115); +x_118 = lean_array_push(x_28, x_117); +lean_ctor_set(x_6, 1, x_118); +lean_ctor_set(x_6, 0, x_94); +x_119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_119, 0, x_6); +x_17 = x_119; +x_18 = x_106; +goto block_25; +} +else +{ +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; 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; +x_120 = lean_ctor_get(x_96, 1); +lean_inc(x_120); +lean_dec(x_96); +x_121 = lean_ctor_get(x_11, 5); +lean_inc(x_121); +x_122 = 0; +x_123 = l_Lean_SourceInfo_fromRef(x_121, x_122); +lean_dec(x_121); +x_124 = lean_ctor_get(x_11, 10); +lean_inc(x_124); +x_125 = lean_st_ref_get(x_12, x_120); +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(x_125); +x_128 = lean_ctor_get(x_126, 0); +lean_inc(x_128); +lean_dec(x_126); +x_129 = lean_environment_main_module(x_128); +x_130 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_131 = l_Lean_addMacroScope(x_129, x_130, x_124); +x_132 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_133 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_123); +x_134 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_134, 0, x_123); +lean_ctor_set(x_134, 1, x_132); +lean_ctor_set(x_134, 2, x_131); +lean_ctor_set(x_134, 3, x_133); +x_135 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_123); +x_136 = l_Lean_Syntax_node1(x_123, x_135, x_95); +x_137 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_138 = l_Lean_Syntax_node2(x_123, x_137, x_134, x_136); +x_139 = lean_array_push(x_28, x_138); +lean_ctor_set(x_6, 1, x_139); +lean_ctor_set(x_6, 0, x_94); +x_140 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_140, 0, x_6); +x_17 = x_140; +x_18 = x_127; +goto block_25; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_95); +lean_dec(x_94); +lean_free_object(x_6); +lean_dec(x_28); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_141 = lean_ctor_get(x_96, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_96, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_143 = x_96; +} else { + lean_dec_ref(x_96); + x_143 = lean_box(0); +} +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; +x_145 = lean_ctor_get(x_6, 0); +x_146 = lean_ctor_get(x_6, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_6); +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_145, 1); +lean_inc(x_148); +x_149 = lean_ctor_get(x_145, 2); +lean_inc(x_149); +x_150 = lean_nat_dec_lt(x_148, x_149); +if (x_150 == 0) +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_149); +lean_dec(x_148); +lean_dec(x_147); +lean_dec(x_16); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_145); +lean_ctor_set(x_151, 1, x_146); +x_152 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_152, 0, x_151); +x_17 = x_152; +x_18 = x_13; +goto block_25; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + lean_ctor_release(x_145, 2); + x_153 = x_145; +} else { + lean_dec_ref(x_145); + x_153 = lean_box(0); +} +x_154 = lean_array_fget(x_147, x_148); +x_155 = lean_unsigned_to_nat(1u); +x_156 = lean_nat_add(x_148, x_155); +lean_dec(x_148); +if (lean_is_scalar(x_153)) { + x_157 = lean_alloc_ctor(0, 3, 0); +} else { + x_157 = x_153; +} +lean_ctor_set(x_157, 0, x_147); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_149); +x_158 = lean_mk_syntax_ident(x_16); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_159 = l_Lean_Meta_isType(x_154, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_159) == 0) +{ +lean_object* x_160; uint8_t x_161; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_unbox(x_160); +lean_dec(x_160); +if (x_161 == 0) +{ +lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_162 = lean_ctor_get(x_159, 1); +lean_inc(x_162); +lean_dec(x_159); +x_163 = lean_ctor_get(x_11, 5); +lean_inc(x_163); +x_164 = 0; +x_165 = l_Lean_SourceInfo_fromRef(x_163, x_164); +lean_dec(x_163); +x_166 = lean_ctor_get(x_11, 10); +lean_inc(x_166); +x_167 = lean_st_ref_get(x_12, x_162); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); +lean_dec(x_168); +x_171 = lean_environment_main_module(x_170); +x_172 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_173 = l_Lean_addMacroScope(x_171, x_172, x_166); +x_174 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_175 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_165); +x_176 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_176, 0, x_165); +lean_ctor_set(x_176, 1, x_174); +lean_ctor_set(x_176, 2, x_173); +lean_ctor_set(x_176, 3, x_175); +x_177 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_165); +x_178 = l_Lean_Syntax_node1(x_165, x_177, x_158); +x_179 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_180 = l_Lean_Syntax_node2(x_165, x_179, x_176, x_178); +x_181 = lean_array_push(x_146, x_180); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_157); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_183, 0, x_182); +x_17 = x_183; +x_18 = x_169; +goto block_25; +} +else +{ +lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_184 = lean_ctor_get(x_159, 1); +lean_inc(x_184); +lean_dec(x_159); +x_185 = lean_ctor_get(x_11, 5); +lean_inc(x_185); +x_186 = 0; +x_187 = l_Lean_SourceInfo_fromRef(x_185, x_186); +lean_dec(x_185); +x_188 = lean_ctor_get(x_11, 10); +lean_inc(x_188); +x_189 = lean_st_ref_get(x_12, x_184); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_ctor_get(x_190, 0); +lean_inc(x_192); +lean_dec(x_190); +x_193 = lean_environment_main_module(x_192); +x_194 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_195 = l_Lean_addMacroScope(x_193, x_194, x_188); +x_196 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_197 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_187); +x_198 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_198, 0, x_187); +lean_ctor_set(x_198, 1, x_196); +lean_ctor_set(x_198, 2, x_195); +lean_ctor_set(x_198, 3, x_197); +x_199 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_187); +x_200 = l_Lean_Syntax_node1(x_187, x_199, x_158); +x_201 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_202 = l_Lean_Syntax_node2(x_187, x_201, x_198, x_200); +x_203 = lean_array_push(x_146, x_202); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_157); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_204); +x_17 = x_205; +x_18 = x_191; +goto block_25; +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_146); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_206 = lean_ctor_get(x_159, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_159, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_208 = x_159; +} else { + lean_dec_ref(x_159); + 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_25: +{ +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +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; size_t x_22; size_t x_23; +x_21 = lean_ctor_get(x_17, 0); +lean_inc(x_21); +lean_dec(x_17); +x_22 = 1; +x_23 = lean_usize_add(x_5, x_22); +x_5 = x_23; +x_6 = x_21; +x_13 = x_18; +goto _start; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Expr.const", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("const", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8; +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7; +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term[_]", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("]", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("quotedName", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(".", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1(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, 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; size_t x_21; lean_object* x_22; +x_14 = lean_box(0); +x_15 = lean_array_get_size(x_5); +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_toSubarray___rarg(x_5, x_16, x_15); +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_array_size(x_1); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_22 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2(x_1, x_18, x_1, x_21, x_2, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t 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(x_22); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_26 = lean_ctor_get(x_23, 1); +x_27 = lean_ctor_get(x_23, 0); +lean_dec(x_27); +x_28 = lean_ctor_get(x_11, 5); +lean_inc(x_28); +x_29 = 0; +x_30 = l_Lean_SourceInfo_fromRef(x_28, x_29); +lean_dec(x_28); +x_31 = lean_ctor_get(x_11, 10); +lean_inc(x_31); +x_32 = lean_st_ref_get(x_12, x_24); +x_33 = !lean_is_exclusive(x_32); +if (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; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_environment_main_module(x_36); +x_38 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_39 = l_Lean_addMacroScope(x_37, x_38, x_31); +x_40 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_41 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_30); +x_42 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_42, 0, x_30); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_39); +lean_ctor_set(x_42, 3, x_41); +x_43 = lean_ctor_get(x_3, 0); +lean_inc(x_43); +lean_dec(x_3); +lean_inc(x_43); +x_44 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_14, x_43); +x_45 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_30); +lean_ctor_set_tag(x_32, 2); +lean_ctor_set(x_32, 1, x_45); +lean_ctor_set(x_32, 0, x_30); +x_46 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_47 = l_Lean_Syntax_SepArray_ofElems(x_46, x_4); +x_48 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_49 = l_Array_append___rarg(x_48, x_47); +lean_dec(x_47); +x_50 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_30); +x_51 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_51, 2, x_49); +x_52 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_30); +lean_ctor_set_tag(x_23, 2); +lean_ctor_set(x_23, 1, x_52); +lean_ctor_set(x_23, 0, x_30); +x_53 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_30); +x_54 = l_Lean_Syntax_node3(x_30, x_53, x_32, x_51, x_23); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_55 = l_Lean_quoteNameMk(x_43); +lean_inc(x_30); +x_56 = l_Lean_Syntax_node2(x_30, x_50, x_55, x_54); +x_57 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_58 = l_Lean_Syntax_node2(x_30, x_57, x_42, x_56); +x_59 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_58, x_26, x_9, x_10, x_11, x_12, x_35); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_26); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_43); +x_60 = lean_ctor_get(x_44, 0); +lean_inc(x_60); +lean_dec(x_44); +x_61 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_62 = l_String_intercalate(x_61, x_60); +x_63 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_64 = lean_string_append(x_63, x_62); +lean_dec(x_62); +x_65 = lean_box(2); +x_66 = l_Lean_Syntax_mkNameLit(x_64, x_65); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_14); +x_68 = lean_array_mk(x_67); +x_69 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_70 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_70, 0, x_65); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set(x_70, 2, x_68); +lean_inc(x_30); +x_71 = l_Lean_Syntax_node2(x_30, x_50, x_70, x_54); +x_72 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_73 = l_Lean_Syntax_node2(x_30, x_72, x_42, x_71); +x_74 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_73, x_26, x_9, x_10, x_11, x_12, x_35); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_26); +return x_74; +} +} +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_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; +x_75 = lean_ctor_get(x_32, 0); +x_76 = lean_ctor_get(x_32, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_32); +x_77 = lean_ctor_get(x_75, 0); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_environment_main_module(x_77); +x_79 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_80 = l_Lean_addMacroScope(x_78, x_79, x_31); +x_81 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_82 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_30); +x_83 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_83, 0, x_30); +lean_ctor_set(x_83, 1, x_81); +lean_ctor_set(x_83, 2, x_80); +lean_ctor_set(x_83, 3, x_82); +x_84 = lean_ctor_get(x_3, 0); +lean_inc(x_84); +lean_dec(x_3); +lean_inc(x_84); +x_85 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_14, x_84); +x_86 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_30); +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_30); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_89 = l_Lean_Syntax_SepArray_ofElems(x_88, x_4); +x_90 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_91 = l_Array_append___rarg(x_90, x_89); +lean_dec(x_89); +x_92 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_30); +x_93 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_93, 0, x_30); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_93, 2, x_91); +x_94 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_30); +lean_ctor_set_tag(x_23, 2); +lean_ctor_set(x_23, 1, x_94); +lean_ctor_set(x_23, 0, x_30); +x_95 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_30); +x_96 = l_Lean_Syntax_node3(x_30, x_95, x_87, x_93, x_23); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_97 = l_Lean_quoteNameMk(x_84); +lean_inc(x_30); +x_98 = l_Lean_Syntax_node2(x_30, x_92, x_97, x_96); +x_99 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_100 = l_Lean_Syntax_node2(x_30, x_99, x_83, x_98); +x_101 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_100, x_26, x_9, x_10, x_11, x_12, x_76); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_26); +return x_101; +} +else +{ +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_dec(x_84); +x_102 = lean_ctor_get(x_85, 0); +lean_inc(x_102); +lean_dec(x_85); +x_103 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_104 = l_String_intercalate(x_103, x_102); +x_105 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_106 = lean_string_append(x_105, x_104); +lean_dec(x_104); +x_107 = lean_box(2); +x_108 = l_Lean_Syntax_mkNameLit(x_106, x_107); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_14); +x_110 = lean_array_mk(x_109); +x_111 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_112 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_111); +lean_ctor_set(x_112, 2, x_110); +lean_inc(x_30); +x_113 = l_Lean_Syntax_node2(x_30, x_92, x_112, x_96); +x_114 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_115 = l_Lean_Syntax_node2(x_30, x_114, x_83, x_113); +x_116 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_115, x_26, x_9, x_10, x_11, x_12, x_76); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_26); +return x_116; +} +} +} +else +{ +lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_117 = lean_ctor_get(x_23, 1); +lean_inc(x_117); +lean_dec(x_23); +x_118 = lean_ctor_get(x_11, 5); +lean_inc(x_118); +x_119 = 0; +x_120 = l_Lean_SourceInfo_fromRef(x_118, x_119); +lean_dec(x_118); +x_121 = lean_ctor_get(x_11, 10); +lean_inc(x_121); +x_122 = lean_st_ref_get(x_12, x_24); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_125 = x_122; +} else { + lean_dec_ref(x_122); + x_125 = lean_box(0); +} +x_126 = lean_ctor_get(x_123, 0); +lean_inc(x_126); +lean_dec(x_123); +x_127 = lean_environment_main_module(x_126); +x_128 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_129 = l_Lean_addMacroScope(x_127, x_128, x_121); +x_130 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_131 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_120); +x_132 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_132, 0, x_120); +lean_ctor_set(x_132, 1, x_130); +lean_ctor_set(x_132, 2, x_129); +lean_ctor_set(x_132, 3, x_131); +x_133 = lean_ctor_get(x_3, 0); +lean_inc(x_133); +lean_dec(x_3); +lean_inc(x_133); +x_134 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_14, x_133); +x_135 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_120); +if (lean_is_scalar(x_125)) { + x_136 = lean_alloc_ctor(2, 2, 0); +} else { + x_136 = x_125; + lean_ctor_set_tag(x_136, 2); +} +lean_ctor_set(x_136, 0, x_120); +lean_ctor_set(x_136, 1, x_135); +x_137 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_138 = l_Lean_Syntax_SepArray_ofElems(x_137, x_4); +x_139 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_140 = l_Array_append___rarg(x_139, x_138); +lean_dec(x_138); +x_141 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_120); +x_142 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_142, 0, x_120); +lean_ctor_set(x_142, 1, x_141); +lean_ctor_set(x_142, 2, x_140); +x_143 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_120); +x_144 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_144, 0, x_120); +lean_ctor_set(x_144, 1, x_143); +x_145 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_120); +x_146 = l_Lean_Syntax_node3(x_120, x_145, x_136, x_142, x_144); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_147 = l_Lean_quoteNameMk(x_133); +lean_inc(x_120); +x_148 = l_Lean_Syntax_node2(x_120, x_141, x_147, x_146); +x_149 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_150 = l_Lean_Syntax_node2(x_120, x_149, x_132, x_148); +x_151 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_150, x_117, x_9, x_10, x_11, x_12, x_124); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_117); +return x_151; +} +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; 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_dec(x_133); +x_152 = lean_ctor_get(x_134, 0); +lean_inc(x_152); +lean_dec(x_134); +x_153 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_154 = l_String_intercalate(x_153, x_152); +x_155 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_156 = lean_string_append(x_155, x_154); +lean_dec(x_154); +x_157 = lean_box(2); +x_158 = l_Lean_Syntax_mkNameLit(x_156, x_157); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_14); +x_160 = lean_array_mk(x_159); +x_161 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_162 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_162, 0, x_157); +lean_ctor_set(x_162, 1, x_161); +lean_ctor_set(x_162, 2, x_160); +lean_inc(x_120); +x_163 = l_Lean_Syntax_node2(x_120, x_141, x_162, x_146); +x_164 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_165 = l_Lean_Syntax_node2(x_120, x_164, x_132, x_163); +x_166 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_165, x_117, x_9, x_10, x_11, x_12, x_124); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_117); +return x_166; +} +} +} +else +{ +uint8_t x_167; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +x_167 = !lean_is_exclusive(x_22); +if (x_167 == 0) +{ +return x_22; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_22, 0); +x_169 = lean_ctor_get(x_22, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_22); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_169); +return x_170; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1() { +_start: +{ +size_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_box_usize(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; size_t x_13; size_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_20; uint8_t x_21; lean_object* x_22; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +x_12 = lean_array_mk(x_11); +x_13 = lean_array_size(x_12); +x_14 = 0; +lean_inc(x_7); +x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1(x_13, x_14, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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(x_15); +x_18 = lean_ctor_get(x_10, 2); +lean_inc(x_18); +x_19 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1; +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___boxed), 13, 4); +lean_closure_set(x_20, 0, x_2); +lean_closure_set(x_20, 1, x_19); +lean_closure_set(x_20, 2, x_10); +lean_closure_set(x_20, 3, x_16); +x_21 = 0; +x_22 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___rarg(x_18, x_20, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___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: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; lean_object* x_15; +x_14 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_15 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1(x_1, x_14, 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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +return x_15; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("proj", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1(size_t 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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_2, x_1); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_13 = lean_array_uget(x_3, x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_uset(x_3, x_2, x_14); +x_16 = lean_ctor_get(x_8, 5); +lean_inc(x_16); +x_17 = 0; +x_18 = l_Lean_SourceInfo_fromRef(x_16, x_17); +lean_dec(x_16); +x_19 = lean_ctor_get(x_8, 10); +lean_inc(x_19); +x_20 = lean_st_ref_get(x_9, 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_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; size_t x_34; size_t x_35; lean_object* x_36; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_environment_main_module(x_24); +x_26 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +lean_inc(x_18); +lean_ctor_set_tag(x_20, 2); +lean_ctor_set(x_20, 1, x_26); +lean_ctor_set(x_20, 0, x_18); +x_27 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4; +x_28 = l_Lean_addMacroScope(x_25, x_27, x_19); +x_29 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3; +x_30 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8; +lean_inc(x_18); +x_31 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_29); +lean_ctor_set(x_31, 2, x_28); +lean_ctor_set(x_31, 3, x_30); +x_32 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2; +x_33 = l_Lean_Syntax_node3(x_18, x_32, x_13, x_20, x_31); +x_34 = 1; +x_35 = lean_usize_add(x_2, x_34); +x_36 = lean_array_uset(x_15, x_2, x_33); +x_2 = x_35; +x_3 = x_36; +x_10 = x_23; +goto _start; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; size_t x_51; size_t x_52; lean_object* x_53; +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_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_environment_main_module(x_40); +x_42 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +lean_inc(x_18); +x_43 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_43, 0, x_18); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4; +x_45 = l_Lean_addMacroScope(x_41, x_44, x_19); +x_46 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3; +x_47 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8; +lean_inc(x_18); +x_48 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_48, 0, x_18); +lean_ctor_set(x_48, 1, x_46); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set(x_48, 3, x_47); +x_49 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2; +x_50 = l_Lean_Syntax_node3(x_18, x_49, x_13, x_43, x_48); +x_51 = 1; +x_52 = lean_usize_add(x_2, x_51); +x_53 = lean_array_uset(x_15, x_2, x_50); +x_2 = x_52; +x_3 = x_53; +x_10 = x_39; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__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) { +_start: +{ +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_6, 5); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_12, 1, x_18); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_12); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_12, 1, x_19); +lean_ctor_set(x_12, 0, x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(1, 2, 0); +} else { + x_29 = x_27; + lean_ctor_set_tag(x_29, 1); +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("'", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' is not a constructor", 22, 22); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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) { +_start: +{ +lean_object* x_9; +lean_inc(x_2); +lean_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 6) +{ +uint8_t x_11; +lean_dec(x_2); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +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; +} +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_10); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = 0; +x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); +x_20 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__3(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +return x_9; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +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; +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("hole", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_2, 1); +x_15 = lean_nat_dec_lt(x_4, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_4); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_11, 5); +x_18 = 0; +x_19 = l_Lean_SourceInfo_fromRef(x_17, x_18); +x_20 = lean_st_ref_get(x_12, x_13); +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_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_22 = lean_ctor_get(x_20, 1); +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3; +lean_inc(x_19); +lean_ctor_set_tag(x_20, 2); +lean_ctor_set(x_20, 1, x_24); +lean_ctor_set(x_20, 0, x_19); +x_25 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2; +x_26 = l_Lean_Syntax_node1(x_19, x_25, x_20); +x_27 = lean_array_push(x_3, x_26); +x_28 = lean_ctor_get(x_2, 2); +x_29 = lean_nat_add(x_4, x_28); +lean_dec(x_4); +x_3 = x_27; +x_4 = x_29; +x_5 = lean_box(0); +x_6 = lean_box(0); +x_13 = x_22; +goto _start; +} +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; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_dec(x_20); +x_32 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3; +lean_inc(x_19); +x_33 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_33, 0, x_19); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2; +x_35 = l_Lean_Syntax_node1(x_19, x_34, x_33); +x_36 = lean_array_push(x_3, x_35); +x_37 = lean_ctor_get(x_2, 2); +x_38 = lean_nat_add(x_4, x_37); +lean_dec(x_4); +x_3 = x_36; +x_4 = x_38; +x_5 = lean_box(0); +x_6 = lean_box(0); +x_13 = x_31; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_7, 1); +x_20 = lean_nat_dec_lt(x_9, x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_3); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_29 = lean_ctor_get(x_8, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_dec(x_8); +x_31 = lean_ctor_get(x_1, 1); +x_32 = lean_array_get_size(x_31); +x_33 = lean_nat_dec_lt(x_9, x_32); +lean_dec(x_32); +x_34 = lean_ctor_get(x_16, 5); +lean_inc(x_34); +x_35 = 0; +x_36 = l_Lean_SourceInfo_fromRef(x_34, x_35); +lean_dec(x_34); +x_37 = lean_st_ref_get(x_17, x_18); +if (x_33 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = l_Lean_instInhabitedName; +x_254 = l_outOfBounds___rarg(x_253); +x_38 = x_254; +goto block_252; +} +else +{ +lean_object* x_255; +x_255 = lean_array_fget(x_31, x_9); +x_38 = x_255; +goto block_252; +} +block_28: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_7, 2); +x_26 = lean_nat_add(x_9, x_25); +lean_dec(x_9); +x_8 = x_24; +x_9 = x_26; +x_10 = lean_box(0); +x_11 = lean_box(0); +x_18 = x_23; +goto _start; +} +block_252: +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 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; uint8_t x_48; lean_object* x_49; +x_40 = lean_ctor_get(x_37, 1); +x_41 = lean_ctor_get(x_37, 0); +lean_dec(x_41); +x_42 = lean_mk_syntax_ident(x_38); +x_43 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3; +lean_inc(x_36); +lean_ctor_set_tag(x_37, 2); +lean_ctor_set(x_37, 1, x_43); +lean_ctor_set(x_37, 0, x_36); +x_44 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2; +lean_inc(x_36); +x_45 = l_Lean_Syntax_node1(x_36, x_44, x_37); +x_46 = lean_array_push(x_29, x_45); +x_47 = lean_array_get_size(x_5); +x_48 = lean_nat_dec_lt(x_9, x_47); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_164; lean_object* x_165; +x_164 = l_Lean_instInhabitedExpr; +x_165 = l_outOfBounds___rarg(x_164); +x_49 = x_165; +goto block_163; +} +else +{ +lean_object* x_166; +x_166 = lean_array_fget(x_5, x_9); +x_49 = x_166; +goto block_163; +} +block_163: +{ +lean_object* x_50; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_49); +x_50 = lean_infer_type(x_49, x_14, x_15, x_16, x_17, x_40); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +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(x_50); +x_53 = lean_ctor_get(x_2, 0); +x_54 = lean_ctor_get(x_53, 0); +x_55 = l_Lean_Expr_isAppOf(x_51, x_54); +lean_dec(x_51); +if (x_55 == 0) +{ +lean_object* x_56; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_56 = l_Lean_Meta_isType(x_49, x_14, x_15, x_16, x_17, x_52); +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_unbox(x_57); +lean_dec(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_ctor_get(x_16, 10); +lean_inc(x_60); +x_61 = lean_st_ref_get(x_17, x_59); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +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; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +x_65 = lean_ctor_get(x_63, 0); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_environment_main_module(x_65); +x_67 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_68 = l_Lean_addMacroScope(x_66, x_67, x_60); +x_69 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_70 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_36); +x_71 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_71, 0, x_36); +lean_ctor_set(x_71, 1, x_69); +lean_ctor_set(x_71, 2, x_68); +lean_ctor_set(x_71, 3, x_70); +x_72 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_73 = l_Lean_Syntax_node1(x_36, x_72, x_42); +x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_75 = l_Lean_Syntax_node2(x_36, x_74, x_71, x_73); +x_76 = lean_array_push(x_30, x_75); +lean_ctor_set(x_61, 1, x_76); +lean_ctor_set(x_61, 0, x_46); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_61); +x_22 = x_77; +x_23 = x_64; +goto block_28; +} +else +{ +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_78 = lean_ctor_get(x_61, 0); +x_79 = lean_ctor_get(x_61, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_61); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_environment_main_module(x_80); +x_82 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_83 = l_Lean_addMacroScope(x_81, x_82, x_60); +x_84 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_85 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_36); +x_86 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_86, 0, x_36); +lean_ctor_set(x_86, 1, x_84); +lean_ctor_set(x_86, 2, x_83); +lean_ctor_set(x_86, 3, x_85); +x_87 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_88 = l_Lean_Syntax_node1(x_36, x_87, x_42); +x_89 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_90 = l_Lean_Syntax_node2(x_36, x_89, x_86, x_88); +x_91 = lean_array_push(x_30, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_46); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +x_22 = x_93; +x_23 = x_79; +goto block_28; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_94 = lean_ctor_get(x_56, 1); +lean_inc(x_94); +lean_dec(x_56); +x_95 = lean_ctor_get(x_16, 10); +lean_inc(x_95); +x_96 = lean_st_ref_get(x_17, x_94); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_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; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_ctor_get(x_96, 1); +x_100 = lean_ctor_get(x_98, 0); +lean_inc(x_100); +lean_dec(x_98); +x_101 = lean_environment_main_module(x_100); +x_102 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_103 = l_Lean_addMacroScope(x_101, x_102, x_95); +x_104 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_105 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_36); +x_106 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_106, 0, x_36); +lean_ctor_set(x_106, 1, x_104); +lean_ctor_set(x_106, 2, x_103); +lean_ctor_set(x_106, 3, x_105); +x_107 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_108 = l_Lean_Syntax_node1(x_36, x_107, x_42); +x_109 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_110 = l_Lean_Syntax_node2(x_36, x_109, x_106, x_108); +x_111 = lean_array_push(x_30, x_110); +lean_ctor_set(x_96, 1, x_111); +lean_ctor_set(x_96, 0, x_46); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_96); +x_22 = x_112; +x_23 = x_99; +goto block_28; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; 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; +x_113 = lean_ctor_get(x_96, 0); +x_114 = lean_ctor_get(x_96, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_96); +x_115 = lean_ctor_get(x_113, 0); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_environment_main_module(x_115); +x_117 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_118 = l_Lean_addMacroScope(x_116, x_117, x_95); +x_119 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_120 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_36); +x_121 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_121, 0, x_36); +lean_ctor_set(x_121, 1, x_119); +lean_ctor_set(x_121, 2, x_118); +lean_ctor_set(x_121, 3, x_120); +x_122 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_123 = l_Lean_Syntax_node1(x_36, x_122, x_42); +x_124 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_125 = l_Lean_Syntax_node2(x_36, x_124, x_121, x_123); +x_126 = lean_array_push(x_30, x_125); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_126); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_127); +x_22 = x_128; +x_23 = x_114; +goto block_28; +} +} +} +else +{ +uint8_t x_129; +lean_dec(x_46); +lean_dec(x_42); +lean_dec(x_36); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_3); +x_129 = !lean_is_exclusive(x_56); +if (x_129 == 0) +{ +return x_56; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_56, 0); +x_131 = lean_ctor_get(x_56, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_56); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; +} +} +} +else +{ +lean_object* x_133; uint8_t x_134; +lean_dec(x_49); +x_133 = lean_st_ref_get(x_17, x_52); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_135 = lean_ctor_get(x_133, 1); +x_136 = lean_ctor_get(x_133, 0); +lean_dec(x_136); +lean_inc(x_3); +x_137 = lean_mk_syntax_ident(x_3); +x_138 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_139 = l_Array_append___rarg(x_138, x_4); +x_140 = lean_array_push(x_139, x_42); +x_141 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_142 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_142, 0, x_36); +lean_ctor_set(x_142, 1, x_141); +lean_ctor_set(x_142, 2, x_140); +x_143 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_144 = l_Lean_Syntax_node2(x_36, x_143, x_137, x_142); +x_145 = lean_array_push(x_30, x_144); +lean_ctor_set(x_133, 1, x_145); +lean_ctor_set(x_133, 0, x_46); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_133); +x_22 = x_146; +x_23 = x_135; +goto block_28; +} +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; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_147 = lean_ctor_get(x_133, 1); +lean_inc(x_147); +lean_dec(x_133); +lean_inc(x_3); +x_148 = lean_mk_syntax_ident(x_3); +x_149 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_150 = l_Array_append___rarg(x_149, x_4); +x_151 = lean_array_push(x_150, x_42); +x_152 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_153 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_153, 0, x_36); +lean_ctor_set(x_153, 1, x_152); +lean_ctor_set(x_153, 2, x_151); +x_154 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_155 = l_Lean_Syntax_node2(x_36, x_154, x_148, x_153); +x_156 = lean_array_push(x_30, x_155); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_46); +lean_ctor_set(x_157, 1, x_156); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_157); +x_22 = x_158; +x_23 = x_147; +goto block_28; +} +} +} +else +{ +uint8_t x_159; +lean_dec(x_49); +lean_dec(x_46); +lean_dec(x_42); +lean_dec(x_36); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_3); +x_159 = !lean_is_exclusive(x_50); +if (x_159 == 0) +{ +return x_50; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_50, 0); +x_161 = lean_ctor_get(x_50, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_50); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +} +} +else +{ +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; uint8_t x_175; lean_object* x_176; +x_167 = lean_ctor_get(x_37, 1); +lean_inc(x_167); +lean_dec(x_37); +x_168 = lean_mk_syntax_ident(x_38); +x_169 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3; +lean_inc(x_36); +x_170 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_170, 0, x_36); +lean_ctor_set(x_170, 1, x_169); +x_171 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2; +lean_inc(x_36); +x_172 = l_Lean_Syntax_node1(x_36, x_171, x_170); +x_173 = lean_array_push(x_29, x_172); +x_174 = lean_array_get_size(x_5); +x_175 = lean_nat_dec_lt(x_9, x_174); +lean_dec(x_174); +if (x_175 == 0) +{ +lean_object* x_249; lean_object* x_250; +x_249 = l_Lean_instInhabitedExpr; +x_250 = l_outOfBounds___rarg(x_249); +x_176 = x_250; +goto block_248; +} +else +{ +lean_object* x_251; +x_251 = lean_array_fget(x_5, x_9); +x_176 = x_251; +goto block_248; +} +block_248: +{ +lean_object* x_177; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_176); +x_177 = lean_infer_type(x_176, x_14, x_15, x_16, x_17, x_167); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_180 = lean_ctor_get(x_2, 0); +x_181 = lean_ctor_get(x_180, 0); +x_182 = l_Lean_Expr_isAppOf(x_178, x_181); +lean_dec(x_178); +if (x_182 == 0) +{ +lean_object* x_183; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_183 = l_Lean_Meta_isType(x_176, x_14, x_15, x_16, x_17, x_179); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; uint8_t x_185; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_unbox(x_184); +lean_dec(x_184); +if (x_185 == 0) +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec(x_183); +x_187 = lean_ctor_get(x_16, 10); +lean_inc(x_187); +x_188 = lean_st_ref_get(x_17, x_186); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_191 = x_188; +} else { + lean_dec_ref(x_188); + x_191 = lean_box(0); +} +x_192 = lean_ctor_get(x_189, 0); +lean_inc(x_192); +lean_dec(x_189); +x_193 = lean_environment_main_module(x_192); +x_194 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_195 = l_Lean_addMacroScope(x_193, x_194, x_187); +x_196 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_197 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_36); +x_198 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_198, 0, x_36); +lean_ctor_set(x_198, 1, x_196); +lean_ctor_set(x_198, 2, x_195); +lean_ctor_set(x_198, 3, x_197); +x_199 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_200 = l_Lean_Syntax_node1(x_36, x_199, x_168); +x_201 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_202 = l_Lean_Syntax_node2(x_36, x_201, x_198, x_200); +x_203 = lean_array_push(x_30, x_202); +if (lean_is_scalar(x_191)) { + x_204 = lean_alloc_ctor(0, 2, 0); +} else { + x_204 = x_191; +} +lean_ctor_set(x_204, 0, x_173); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_204); +x_22 = x_205; +x_23 = x_190; +goto block_28; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_206 = lean_ctor_get(x_183, 1); +lean_inc(x_206); +lean_dec(x_183); +x_207 = lean_ctor_get(x_16, 10); +lean_inc(x_207); +x_208 = lean_st_ref_get(x_17, x_206); +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_209, 0); +lean_inc(x_212); +lean_dec(x_209); +x_213 = lean_environment_main_module(x_212); +x_214 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_215 = l_Lean_addMacroScope(x_213, x_214, x_207); +x_216 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_217 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_36); +x_218 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_218, 0, x_36); +lean_ctor_set(x_218, 1, x_216); +lean_ctor_set(x_218, 2, x_215); +lean_ctor_set(x_218, 3, x_217); +x_219 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_220 = l_Lean_Syntax_node1(x_36, x_219, x_168); +x_221 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_222 = l_Lean_Syntax_node2(x_36, x_221, x_218, x_220); +x_223 = lean_array_push(x_30, x_222); +if (lean_is_scalar(x_211)) { + x_224 = lean_alloc_ctor(0, 2, 0); +} else { + x_224 = x_211; +} +lean_ctor_set(x_224, 0, x_173); +lean_ctor_set(x_224, 1, x_223); +x_225 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_225, 0, x_224); +x_22 = x_225; +x_23 = x_210; +goto block_28; +} +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_173); +lean_dec(x_168); +lean_dec(x_36); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_3); +x_226 = lean_ctor_get(x_183, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_183, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_228 = x_183; +} else { + lean_dec_ref(x_183); + x_228 = lean_box(0); +} +if (lean_is_scalar(x_228)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_228; +} +lean_ctor_set(x_229, 0, x_226); +lean_ctor_set(x_229, 1, x_227); +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_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_dec(x_176); +x_230 = lean_st_ref_get(x_17, x_179); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_232 = x_230; +} else { + lean_dec_ref(x_230); + x_232 = lean_box(0); +} +lean_inc(x_3); +x_233 = lean_mk_syntax_ident(x_3); +x_234 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_235 = l_Array_append___rarg(x_234, x_4); +x_236 = lean_array_push(x_235, x_168); +x_237 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_36); +x_238 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_238, 0, x_36); +lean_ctor_set(x_238, 1, x_237); +lean_ctor_set(x_238, 2, x_236); +x_239 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_240 = l_Lean_Syntax_node2(x_36, x_239, x_233, x_238); +x_241 = lean_array_push(x_30, x_240); +if (lean_is_scalar(x_232)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_232; +} +lean_ctor_set(x_242, 0, x_173); +lean_ctor_set(x_242, 1, x_241); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_242); +x_22 = x_243; +x_23 = x_231; +goto block_28; +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_176); +lean_dec(x_173); +lean_dec(x_168); +lean_dec(x_36); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_3); +x_244 = lean_ctor_get(x_177, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_177, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_246 = x_177; +} else { + lean_dec_ref(x_177); + x_246 = lean_box(0); +} +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); +} else { + x_247 = x_246; +} +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; +} +} +} +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("a", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_7, 1); +x_20 = lean_nat_dec_lt(x_9, x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; 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_161; lean_object* x_162; uint8_t x_163; +x_29 = lean_ctor_get(x_8, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_dec(x_8); +x_31 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2; +x_32 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_31, x_16, x_17, x_18); +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(x_32); +x_35 = lean_mk_syntax_ident(x_33); +lean_inc(x_35); +x_36 = lean_array_push(x_29, x_35); +x_161 = lean_nat_add(x_5, x_9); +x_162 = lean_array_get_size(x_4); +x_163 = lean_nat_dec_lt(x_161, x_162); +lean_dec(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; +lean_dec(x_161); +x_164 = l_Lean_instInhabitedExpr; +x_165 = l_outOfBounds___rarg(x_164); +x_37 = x_165; +goto block_160; +} +else +{ +lean_object* x_166; +x_166 = lean_array_fget(x_4, x_161); +lean_dec(x_161); +x_37 = x_166; +goto block_160; +} +block_28: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_7, 2); +x_26 = lean_nat_add(x_9, x_25); +lean_dec(x_9); +x_8 = x_24; +x_9 = x_26; +x_10 = lean_box(0); +x_11 = lean_box(0); +x_18 = x_23; +goto _start; +} +block_160: +{ +lean_object* x_38; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_37); +x_38 = lean_infer_type(x_37, x_14, x_15, x_16, x_17, x_34); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_1, 0); +x_42 = lean_ctor_get(x_41, 0); +x_43 = l_Lean_Expr_isAppOf(x_39, x_42); +lean_dec(x_39); +if (x_43 == 0) +{ +lean_object* x_44; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_44 = l_Lean_Meta_isType(x_37, x_14, x_15, x_16, x_17, x_40); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_ctor_get(x_16, 5); +lean_inc(x_48); +x_49 = 0; +x_50 = l_Lean_SourceInfo_fromRef(x_48, x_49); +lean_dec(x_48); +x_51 = lean_ctor_get(x_16, 10); +lean_inc(x_51); +x_52 = lean_st_ref_get(x_17, x_47); +x_53 = !lean_is_exclusive(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; 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_54 = lean_ctor_get(x_52, 0); +x_55 = lean_ctor_get(x_52, 1); +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_environment_main_module(x_56); +x_58 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_59 = l_Lean_addMacroScope(x_57, x_58, x_51); +x_60 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_61 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_50); +x_62 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_62, 0, x_50); +lean_ctor_set(x_62, 1, x_60); +lean_ctor_set(x_62, 2, x_59); +lean_ctor_set(x_62, 3, x_61); +x_63 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_50); +x_64 = l_Lean_Syntax_node1(x_50, x_63, x_35); +x_65 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_66 = l_Lean_Syntax_node2(x_50, x_65, x_62, x_64); +x_67 = lean_array_push(x_30, x_66); +lean_ctor_set(x_52, 1, x_67); +lean_ctor_set(x_52, 0, x_36); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_52); +x_22 = x_68; +x_23 = x_55; +goto block_28; +} +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; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_69 = lean_ctor_get(x_52, 0); +x_70 = lean_ctor_get(x_52, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_52); +x_71 = lean_ctor_get(x_69, 0); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_environment_main_module(x_71); +x_73 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +x_74 = l_Lean_addMacroScope(x_72, x_73, x_51); +x_75 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_76 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7; +lean_inc(x_50); +x_77 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_77, 0, x_50); +lean_ctor_set(x_77, 1, x_75); +lean_ctor_set(x_77, 2, x_74); +lean_ctor_set(x_77, 3, x_76); +x_78 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_50); +x_79 = l_Lean_Syntax_node1(x_50, x_78, x_35); +x_80 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_81 = l_Lean_Syntax_node2(x_50, x_80, x_77, x_79); +x_82 = lean_array_push(x_30, x_81); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_36); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_22 = x_84; +x_23 = x_70; +goto block_28; +} +} +else +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_85 = lean_ctor_get(x_44, 1); +lean_inc(x_85); +lean_dec(x_44); +x_86 = lean_ctor_get(x_16, 5); +lean_inc(x_86); +x_87 = 0; +x_88 = l_Lean_SourceInfo_fromRef(x_86, x_87); +lean_dec(x_86); +x_89 = lean_ctor_get(x_16, 10); +lean_inc(x_89); +x_90 = lean_st_ref_get(x_17, x_85); +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 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; +x_92 = lean_ctor_get(x_90, 0); +x_93 = lean_ctor_get(x_90, 1); +x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_environment_main_module(x_94); +x_96 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_97 = l_Lean_addMacroScope(x_95, x_96, x_89); +x_98 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_99 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_88); +x_100 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_100, 0, x_88); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_97); +lean_ctor_set(x_100, 3, x_99); +x_101 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_88); +x_102 = l_Lean_Syntax_node1(x_88, x_101, x_35); +x_103 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_104 = l_Lean_Syntax_node2(x_88, x_103, x_100, x_102); +x_105 = lean_array_push(x_30, x_104); +lean_ctor_set(x_90, 1, x_105); +lean_ctor_set(x_90, 0, x_36); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_90); +x_22 = x_106; +x_23 = x_93; +goto block_28; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; 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; +x_107 = lean_ctor_get(x_90, 0); +x_108 = lean_ctor_get(x_90, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_90); +x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_environment_main_module(x_109); +x_111 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_112 = l_Lean_addMacroScope(x_110, x_111, x_89); +x_113 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_114 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13; +lean_inc(x_88); +x_115 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_115, 0, x_88); +lean_ctor_set(x_115, 1, x_113); +lean_ctor_set(x_115, 2, x_112); +lean_ctor_set(x_115, 3, x_114); +x_116 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_88); +x_117 = l_Lean_Syntax_node1(x_88, x_116, x_35); +x_118 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_119 = l_Lean_Syntax_node2(x_88, x_118, x_115, x_117); +x_120 = lean_array_push(x_30, x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_36); +lean_ctor_set(x_121, 1, x_120); +x_122 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_122, 0, x_121); +x_22 = x_122; +x_23 = x_108; +goto block_28; +} +} +} +else +{ +uint8_t x_123; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_123 = !lean_is_exclusive(x_44); +if (x_123 == 0) +{ +return x_44; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_44, 0); +x_125 = lean_ctor_get(x_44, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_44); +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; +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +lean_dec(x_37); +x_127 = lean_ctor_get(x_16, 5); +lean_inc(x_127); +x_128 = 0; +x_129 = l_Lean_SourceInfo_fromRef(x_127, x_128); +lean_dec(x_127); +x_130 = lean_st_ref_get(x_17, x_40); +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_132 = lean_ctor_get(x_130, 1); +x_133 = lean_ctor_get(x_130, 0); +lean_dec(x_133); +lean_inc(x_2); +x_134 = lean_mk_syntax_ident(x_2); +x_135 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_136 = l_Array_append___rarg(x_135, x_3); +x_137 = lean_array_push(x_136, x_35); +x_138 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_129); +x_139 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_139, 0, x_129); +lean_ctor_set(x_139, 1, x_138); +lean_ctor_set(x_139, 2, x_137); +x_140 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_141 = l_Lean_Syntax_node2(x_129, x_140, x_134, x_139); +x_142 = lean_array_push(x_30, x_141); +lean_ctor_set(x_130, 1, x_142); +lean_ctor_set(x_130, 0, x_36); +x_143 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_143, 0, x_130); +x_22 = x_143; +x_23 = x_132; +goto block_28; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_144 = lean_ctor_get(x_130, 1); +lean_inc(x_144); +lean_dec(x_130); +lean_inc(x_2); +x_145 = lean_mk_syntax_ident(x_2); +x_146 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_147 = l_Array_append___rarg(x_146, x_3); +x_148 = lean_array_push(x_147, x_35); +x_149 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_129); +x_150 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_150, 0, x_129); +lean_ctor_set(x_150, 1, x_149); +lean_ctor_set(x_150, 2, x_148); +x_151 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +x_152 = l_Lean_Syntax_node2(x_129, x_151, x_145, x_150); +x_153 = lean_array_push(x_30, x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_36); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_155, 0, x_154); +x_22 = x_155; +x_23 = x_144; +goto block_28; +} +} +} +else +{ +uint8_t x_156; +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_156 = !lean_is_exclusive(x_38); +if (x_156 == 0) +{ +return x_38; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_38, 0); +x_158 = lean_ctor_get(x_38, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_38); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +} +} +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("matchAlt", 8, 8); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("|", 1, 1); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("=>", 2, 2); +return x_1; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_19 = lean_box(0); +x_20 = lean_ctor_get(x_1, 2); +x_21 = lean_unsigned_to_nat(0u); +x_22 = lean_unsigned_to_nat(1u); +lean_inc(x_20); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_20); +lean_ctor_set(x_23, 2, x_22); +x_24 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +x_25 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4(x_23, x_23, x_24, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_23); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_29 = lean_ctor_get(x_2, 3); +lean_inc(x_29); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_30, 2, x_22); +x_31 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_4); +x_32 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__5(x_3, x_1, x_4, x_5, x_10, x_30, x_30, x_31, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_28); +lean_dec(x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +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(x_32); +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_2, 4); +lean_inc(x_36); +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_21); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_22); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_38 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6(x_1, x_4, x_5, x_10, x_29, x_37, x_37, x_33, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_34); +lean_dec(x_37); +if (lean_obj_tag(x_38) == 0) +{ +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; uint8_t x_48; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_43 = x_39; +} else { + lean_dec_ref(x_39); + x_43 = lean_box(0); +} +x_44 = lean_ctor_get(x_16, 5); +lean_inc(x_44); +x_45 = 0; +x_46 = l_Lean_SourceInfo_fromRef(x_44, x_45); +lean_dec(x_44); +x_47 = lean_st_ref_get(x_17, x_40); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 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_117; lean_object* x_118; uint8_t x_119; +x_49 = lean_ctor_get(x_47, 1); +x_50 = lean_ctor_get(x_47, 0); +lean_dec(x_50); +x_51 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_46); +lean_ctor_set_tag(x_47, 2); +lean_ctor_set(x_47, 1, x_51); +lean_ctor_set(x_47, 0, x_46); +x_52 = lean_mk_syntax_ident(x_6); +x_53 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +lean_inc(x_46); +x_54 = l_Lean_Syntax_node2(x_46, x_53, x_47, x_52); +x_55 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_56 = l_Array_append___rarg(x_55, x_41); +lean_dec(x_41); +x_57 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_46); +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_46); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_56); +x_59 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_46); +x_60 = l_Lean_Syntax_node2(x_46, x_59, x_54, x_58); +x_61 = lean_array_push(x_27, x_60); +x_117 = lean_ctor_get(x_16, 10); +lean_inc(x_117); +x_118 = lean_st_ref_get(x_17, x_49); +x_119 = !lean_is_exclusive(x_118); +if (x_119 == 0) +{ +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; +x_120 = lean_ctor_get(x_118, 0); +x_121 = lean_ctor_get(x_118, 1); +x_122 = lean_ctor_get(x_120, 0); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_environment_main_module(x_122); +x_124 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_125 = l_Lean_addMacroScope(x_123, x_124, x_117); +x_126 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_127 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_46); +x_128 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_128, 0, x_46); +lean_ctor_set(x_128, 1, x_126); +lean_ctor_set(x_128, 2, x_125); +lean_ctor_set(x_128, 3, x_127); +x_129 = lean_ctor_get(x_8, 0); +lean_inc(x_129); +lean_dec(x_8); +lean_inc(x_129); +x_130 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_19, x_129); +x_131 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_46); +lean_ctor_set_tag(x_118, 2); +lean_ctor_set(x_118, 1, x_131); +lean_ctor_set(x_118, 0, x_46); +x_132 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_133 = l_Lean_Syntax_SepArray_ofElems(x_132, x_9); +x_134 = l_Array_append___rarg(x_55, x_133); +lean_dec(x_133); +lean_inc(x_46); +x_135 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_135, 0, x_46); +lean_ctor_set(x_135, 1, x_57); +lean_ctor_set(x_135, 2, x_134); +x_136 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_46); +lean_ctor_set_tag(x_25, 2); +lean_ctor_set(x_25, 1, x_136); +lean_ctor_set(x_25, 0, x_46); +x_137 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_46); +x_138 = l_Lean_Syntax_node3(x_46, x_137, x_118, x_135, x_25); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = l_Lean_quoteNameMk(x_129); +lean_inc(x_46); +x_140 = l_Lean_Syntax_node2(x_46, x_57, x_139, x_138); +lean_inc(x_46); +x_141 = l_Lean_Syntax_node2(x_46, x_59, x_128, x_140); +x_62 = x_141; +x_63 = x_121; +goto block_116; +} +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; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_129); +x_142 = lean_ctor_get(x_130, 0); +lean_inc(x_142); +lean_dec(x_130); +x_143 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_144 = l_String_intercalate(x_143, x_142); +x_145 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_146 = lean_string_append(x_145, x_144); +lean_dec(x_144); +x_147 = lean_box(2); +x_148 = l_Lean_Syntax_mkNameLit(x_146, x_147); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_19); +x_150 = lean_array_mk(x_149); +x_151 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_152 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_152, 0, x_147); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_150); +lean_inc(x_46); +x_153 = l_Lean_Syntax_node2(x_46, x_57, x_152, x_138); +lean_inc(x_46); +x_154 = l_Lean_Syntax_node2(x_46, x_59, x_128, x_153); +x_62 = x_154; +x_63 = x_121; +goto block_116; +} +} +else +{ +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; +x_155 = lean_ctor_get(x_118, 0); +x_156 = lean_ctor_get(x_118, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_118); +x_157 = lean_ctor_get(x_155, 0); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_environment_main_module(x_157); +x_159 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_160 = l_Lean_addMacroScope(x_158, x_159, x_117); +x_161 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_162 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_46); +x_163 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_163, 0, x_46); +lean_ctor_set(x_163, 1, x_161); +lean_ctor_set(x_163, 2, x_160); +lean_ctor_set(x_163, 3, x_162); +x_164 = lean_ctor_get(x_8, 0); +lean_inc(x_164); +lean_dec(x_8); +lean_inc(x_164); +x_165 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_19, x_164); +x_166 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_46); +x_167 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_167, 0, x_46); +lean_ctor_set(x_167, 1, x_166); +x_168 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_169 = l_Lean_Syntax_SepArray_ofElems(x_168, x_9); +x_170 = l_Array_append___rarg(x_55, x_169); +lean_dec(x_169); +lean_inc(x_46); +x_171 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_171, 0, x_46); +lean_ctor_set(x_171, 1, x_57); +lean_ctor_set(x_171, 2, x_170); +x_172 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_46); +lean_ctor_set_tag(x_25, 2); +lean_ctor_set(x_25, 1, x_172); +lean_ctor_set(x_25, 0, x_46); +x_173 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_46); +x_174 = l_Lean_Syntax_node3(x_46, x_173, x_167, x_171, x_25); +if (lean_obj_tag(x_165) == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = l_Lean_quoteNameMk(x_164); +lean_inc(x_46); +x_176 = l_Lean_Syntax_node2(x_46, x_57, x_175, x_174); +lean_inc(x_46); +x_177 = l_Lean_Syntax_node2(x_46, x_59, x_163, x_176); +x_62 = x_177; +x_63 = x_156; +goto block_116; +} +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; 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_dec(x_164); +x_178 = lean_ctor_get(x_165, 0); +lean_inc(x_178); +lean_dec(x_165); +x_179 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_180 = l_String_intercalate(x_179, x_178); +x_181 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_182 = lean_string_append(x_181, x_180); +lean_dec(x_180); +x_183 = lean_box(2); +x_184 = l_Lean_Syntax_mkNameLit(x_182, x_183); +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_19); +x_186 = lean_array_mk(x_185); +x_187 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_188 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_188, 0, x_183); +lean_ctor_set(x_188, 1, x_187); +lean_ctor_set(x_188, 2, x_186); +lean_inc(x_46); +x_189 = l_Lean_Syntax_node2(x_46, x_57, x_188, x_174); +lean_inc(x_46); +x_190 = l_Lean_Syntax_node2(x_46, x_59, x_163, x_189); +x_62 = x_190; +x_63 = x_156; +goto block_116; +} +} +block_116: +{ +lean_object* x_64; uint8_t x_65; +x_64 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_62, x_42, x_14, x_15, x_16, x_17, x_63); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_42); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_ctor_get(x_64, 1); +x_68 = lean_st_ref_get(x_17, x_67); +lean_dec(x_17); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; size_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +x_71 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_46); +lean_ctor_set_tag(x_64, 2); +lean_ctor_set(x_64, 1, x_71); +lean_ctor_set(x_64, 0, x_46); +x_72 = lean_array_size(x_61); +x_73 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_72, x_7, x_61); +x_74 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_75 = l_Lean_mkSepArray(x_73, x_74); +lean_dec(x_73); +x_76 = l_Array_append___rarg(x_55, x_75); +lean_dec(x_75); +lean_inc(x_46); +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_46); +lean_ctor_set(x_77, 1, x_57); +lean_ctor_set(x_77, 2, x_76); +lean_inc(x_46); +x_78 = l_Lean_Syntax_node1(x_46, x_57, x_77); +x_79 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_46); +if (lean_is_scalar(x_43)) { + x_80 = lean_alloc_ctor(2, 2, 0); +} else { + x_80 = x_43; + lean_ctor_set_tag(x_80, 2); +} +lean_ctor_set(x_80, 0, x_46); +lean_ctor_set(x_80, 1, x_79); +x_81 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_82 = l_Lean_Syntax_node4(x_46, x_81, x_64, x_78, x_80, x_66); +lean_ctor_set(x_68, 0, x_82); +return x_68; +} +else +{ +lean_object* x_83; lean_object* x_84; size_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_83 = lean_ctor_get(x_68, 1); +lean_inc(x_83); +lean_dec(x_68); +x_84 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_46); +lean_ctor_set_tag(x_64, 2); +lean_ctor_set(x_64, 1, x_84); +lean_ctor_set(x_64, 0, x_46); +x_85 = lean_array_size(x_61); +x_86 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_85, x_7, x_61); +x_87 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_88 = l_Lean_mkSepArray(x_86, x_87); +lean_dec(x_86); +x_89 = l_Array_append___rarg(x_55, x_88); +lean_dec(x_88); +lean_inc(x_46); +x_90 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_90, 0, x_46); +lean_ctor_set(x_90, 1, x_57); +lean_ctor_set(x_90, 2, x_89); +lean_inc(x_46); +x_91 = l_Lean_Syntax_node1(x_46, x_57, x_90); +x_92 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_46); +if (lean_is_scalar(x_43)) { + x_93 = lean_alloc_ctor(2, 2, 0); +} else { + x_93 = x_43; + lean_ctor_set_tag(x_93, 2); +} +lean_ctor_set(x_93, 0, x_46); +lean_ctor_set(x_93, 1, x_92); +x_94 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_95 = l_Lean_Syntax_node4(x_46, x_94, x_64, x_91, x_93, x_66); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_83); +return x_96; +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; size_t 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; +x_97 = lean_ctor_get(x_64, 0); +x_98 = lean_ctor_get(x_64, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_64); +x_99 = lean_st_ref_get(x_17, x_98); +lean_dec(x_17); +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 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_46); +x_103 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_103, 0, x_46); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_array_size(x_61); +x_105 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_104, x_7, x_61); +x_106 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_107 = l_Lean_mkSepArray(x_105, x_106); +lean_dec(x_105); +x_108 = l_Array_append___rarg(x_55, x_107); +lean_dec(x_107); +lean_inc(x_46); +x_109 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_109, 0, x_46); +lean_ctor_set(x_109, 1, x_57); +lean_ctor_set(x_109, 2, x_108); +lean_inc(x_46); +x_110 = l_Lean_Syntax_node1(x_46, x_57, x_109); +x_111 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_46); +if (lean_is_scalar(x_43)) { + x_112 = lean_alloc_ctor(2, 2, 0); +} else { + x_112 = x_43; + lean_ctor_set_tag(x_112, 2); +} +lean_ctor_set(x_112, 0, x_46); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_114 = l_Lean_Syntax_node4(x_46, x_113, x_103, x_110, x_112, x_97); +if (lean_is_scalar(x_101)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_101; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_100); +return x_115; +} +} +} +else +{ +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_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_191 = lean_ctor_get(x_47, 1); +lean_inc(x_191); +lean_dec(x_47); +x_192 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_46); +x_193 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_193, 0, x_46); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_mk_syntax_ident(x_6); +x_195 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +lean_inc(x_46); +x_196 = l_Lean_Syntax_node2(x_46, x_195, x_193, x_194); +x_197 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_198 = l_Array_append___rarg(x_197, x_41); +lean_dec(x_41); +x_199 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_46); +x_200 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_200, 0, x_46); +lean_ctor_set(x_200, 1, x_199); +lean_ctor_set(x_200, 2, x_198); +x_201 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_46); +x_202 = l_Lean_Syntax_node2(x_46, x_201, x_196, x_200); +x_203 = lean_array_push(x_27, x_202); +x_228 = lean_ctor_get(x_16, 10); +lean_inc(x_228); +x_229 = lean_st_ref_get(x_17, x_191); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_232 = x_229; +} else { + lean_dec_ref(x_229); + x_232 = lean_box(0); +} +x_233 = lean_ctor_get(x_230, 0); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_environment_main_module(x_233); +x_235 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_236 = l_Lean_addMacroScope(x_234, x_235, x_228); +x_237 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_238 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_46); +x_239 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_239, 0, x_46); +lean_ctor_set(x_239, 1, x_237); +lean_ctor_set(x_239, 2, x_236); +lean_ctor_set(x_239, 3, x_238); +x_240 = lean_ctor_get(x_8, 0); +lean_inc(x_240); +lean_dec(x_8); +lean_inc(x_240); +x_241 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_19, x_240); +x_242 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_46); +if (lean_is_scalar(x_232)) { + x_243 = lean_alloc_ctor(2, 2, 0); +} else { + x_243 = x_232; + lean_ctor_set_tag(x_243, 2); +} +lean_ctor_set(x_243, 0, x_46); +lean_ctor_set(x_243, 1, x_242); +x_244 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_245 = l_Lean_Syntax_SepArray_ofElems(x_244, x_9); +x_246 = l_Array_append___rarg(x_197, x_245); +lean_dec(x_245); +lean_inc(x_46); +x_247 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_247, 0, x_46); +lean_ctor_set(x_247, 1, x_199); +lean_ctor_set(x_247, 2, x_246); +x_248 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_46); +lean_ctor_set_tag(x_25, 2); +lean_ctor_set(x_25, 1, x_248); +lean_ctor_set(x_25, 0, x_46); +x_249 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_46); +x_250 = l_Lean_Syntax_node3(x_46, x_249, x_243, x_247, x_25); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = l_Lean_quoteNameMk(x_240); +lean_inc(x_46); +x_252 = l_Lean_Syntax_node2(x_46, x_199, x_251, x_250); +lean_inc(x_46); +x_253 = l_Lean_Syntax_node2(x_46, x_201, x_239, x_252); +x_204 = x_253; +x_205 = x_231; +goto block_227; +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +lean_dec(x_240); +x_254 = lean_ctor_get(x_241, 0); +lean_inc(x_254); +lean_dec(x_241); +x_255 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_256 = l_String_intercalate(x_255, x_254); +x_257 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_258 = lean_string_append(x_257, x_256); +lean_dec(x_256); +x_259 = lean_box(2); +x_260 = l_Lean_Syntax_mkNameLit(x_258, x_259); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_19); +x_262 = lean_array_mk(x_261); +x_263 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_264 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_264, 0, x_259); +lean_ctor_set(x_264, 1, x_263); +lean_ctor_set(x_264, 2, x_262); +lean_inc(x_46); +x_265 = l_Lean_Syntax_node2(x_46, x_199, x_264, x_250); +lean_inc(x_46); +x_266 = l_Lean_Syntax_node2(x_46, x_201, x_239, x_265); +x_204 = x_266; +x_205 = x_231; +goto block_227; +} +block_227: +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; size_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_206 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_204, x_42, x_14, x_15, x_16, x_17, x_205); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_42); +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_209 = x_206; +} else { + lean_dec_ref(x_206); + x_209 = lean_box(0); +} +x_210 = lean_st_ref_get(x_17, x_208); +lean_dec(x_17); +x_211 = lean_ctor_get(x_210, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_212 = x_210; +} else { + lean_dec_ref(x_210); + x_212 = lean_box(0); +} +x_213 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_46); +if (lean_is_scalar(x_209)) { + x_214 = lean_alloc_ctor(2, 2, 0); +} else { + x_214 = x_209; + lean_ctor_set_tag(x_214, 2); +} +lean_ctor_set(x_214, 0, x_46); +lean_ctor_set(x_214, 1, x_213); +x_215 = lean_array_size(x_203); +x_216 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_215, x_7, x_203); +x_217 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_218 = l_Lean_mkSepArray(x_216, x_217); +lean_dec(x_216); +x_219 = l_Array_append___rarg(x_197, x_218); +lean_dec(x_218); +lean_inc(x_46); +x_220 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_220, 0, x_46); +lean_ctor_set(x_220, 1, x_199); +lean_ctor_set(x_220, 2, x_219); +lean_inc(x_46); +x_221 = l_Lean_Syntax_node1(x_46, x_199, x_220); +x_222 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_46); +if (lean_is_scalar(x_43)) { + x_223 = lean_alloc_ctor(2, 2, 0); +} else { + x_223 = x_43; + lean_ctor_set_tag(x_223, 2); +} +lean_ctor_set(x_223, 0, x_46); +lean_ctor_set(x_223, 1, x_222); +x_224 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_225 = l_Lean_Syntax_node4(x_46, x_224, x_214, x_221, x_223, x_207); +if (lean_is_scalar(x_212)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_212; +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_211); +return x_226; +} +} +} +else +{ +uint8_t x_267; +lean_free_object(x_25); +lean_dec(x_27); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +x_267 = !lean_is_exclusive(x_38); +if (x_267 == 0) +{ +return x_38; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_268 = lean_ctor_get(x_38, 0); +x_269 = lean_ctor_get(x_38, 1); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_38); +x_270 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_270, 0, x_268); +lean_ctor_set(x_270, 1, x_269); +return x_270; +} +} +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_271 = lean_ctor_get(x_33, 0); +x_272 = lean_ctor_get(x_33, 1); +lean_inc(x_272); +lean_inc(x_271); +lean_dec(x_33); +x_273 = lean_ctor_get(x_2, 4); +lean_inc(x_273); +x_274 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_274, 0, x_21); +lean_ctor_set(x_274, 1, x_273); +lean_ctor_set(x_274, 2, x_22); +x_275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_275, 0, x_271); +lean_ctor_set(x_275, 1, x_272); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_276 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6(x_1, x_4, x_5, x_10, x_29, x_274, x_274, x_275, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_34); +lean_dec(x_274); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); +x_279 = lean_ctor_get(x_277, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_277, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_281 = x_277; +} else { + lean_dec_ref(x_277); + x_281 = lean_box(0); +} +x_282 = lean_ctor_get(x_16, 5); +lean_inc(x_282); +x_283 = 0; +x_284 = l_Lean_SourceInfo_fromRef(x_282, x_283); +lean_dec(x_282); +x_285 = lean_st_ref_get(x_17, x_278); +x_286 = lean_ctor_get(x_285, 1); +lean_inc(x_286); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_287 = x_285; +} else { + lean_dec_ref(x_285); + x_287 = lean_box(0); +} +x_288 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_284); +if (lean_is_scalar(x_287)) { + x_289 = lean_alloc_ctor(2, 2, 0); +} else { + x_289 = x_287; + lean_ctor_set_tag(x_289, 2); +} +lean_ctor_set(x_289, 0, x_284); +lean_ctor_set(x_289, 1, x_288); +x_290 = lean_mk_syntax_ident(x_6); +x_291 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +lean_inc(x_284); +x_292 = l_Lean_Syntax_node2(x_284, x_291, x_289, x_290); +x_293 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_294 = l_Array_append___rarg(x_293, x_279); +lean_dec(x_279); +x_295 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_284); +x_296 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_296, 0, x_284); +lean_ctor_set(x_296, 1, x_295); +lean_ctor_set(x_296, 2, x_294); +x_297 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_284); +x_298 = l_Lean_Syntax_node2(x_284, x_297, x_292, x_296); +x_299 = lean_array_push(x_27, x_298); +x_324 = lean_ctor_get(x_16, 10); +lean_inc(x_324); +x_325 = lean_st_ref_get(x_17, x_286); +x_326 = lean_ctor_get(x_325, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_325, 1); +lean_inc(x_327); +if (lean_is_exclusive(x_325)) { + lean_ctor_release(x_325, 0); + lean_ctor_release(x_325, 1); + x_328 = x_325; +} else { + lean_dec_ref(x_325); + x_328 = lean_box(0); +} +x_329 = lean_ctor_get(x_326, 0); +lean_inc(x_329); +lean_dec(x_326); +x_330 = lean_environment_main_module(x_329); +x_331 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_332 = l_Lean_addMacroScope(x_330, x_331, x_324); +x_333 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_334 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_284); +x_335 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_335, 0, x_284); +lean_ctor_set(x_335, 1, x_333); +lean_ctor_set(x_335, 2, x_332); +lean_ctor_set(x_335, 3, x_334); +x_336 = lean_ctor_get(x_8, 0); +lean_inc(x_336); +lean_dec(x_8); +lean_inc(x_336); +x_337 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_19, x_336); +x_338 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_284); +if (lean_is_scalar(x_328)) { + x_339 = lean_alloc_ctor(2, 2, 0); +} else { + x_339 = x_328; + lean_ctor_set_tag(x_339, 2); +} +lean_ctor_set(x_339, 0, x_284); +lean_ctor_set(x_339, 1, x_338); +x_340 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_341 = l_Lean_Syntax_SepArray_ofElems(x_340, x_9); +x_342 = l_Array_append___rarg(x_293, x_341); +lean_dec(x_341); +lean_inc(x_284); +x_343 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_343, 0, x_284); +lean_ctor_set(x_343, 1, x_295); +lean_ctor_set(x_343, 2, x_342); +x_344 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_284); +lean_ctor_set_tag(x_25, 2); +lean_ctor_set(x_25, 1, x_344); +lean_ctor_set(x_25, 0, x_284); +x_345 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_284); +x_346 = l_Lean_Syntax_node3(x_284, x_345, x_339, x_343, x_25); +if (lean_obj_tag(x_337) == 0) +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = l_Lean_quoteNameMk(x_336); +lean_inc(x_284); +x_348 = l_Lean_Syntax_node2(x_284, x_295, x_347, x_346); +lean_inc(x_284); +x_349 = l_Lean_Syntax_node2(x_284, x_297, x_335, x_348); +x_300 = x_349; +x_301 = x_327; +goto block_323; +} +else +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +lean_dec(x_336); +x_350 = lean_ctor_get(x_337, 0); +lean_inc(x_350); +lean_dec(x_337); +x_351 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_352 = l_String_intercalate(x_351, x_350); +x_353 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_354 = lean_string_append(x_353, x_352); +lean_dec(x_352); +x_355 = lean_box(2); +x_356 = l_Lean_Syntax_mkNameLit(x_354, x_355); +x_357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_19); +x_358 = lean_array_mk(x_357); +x_359 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_360 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_360, 0, x_355); +lean_ctor_set(x_360, 1, x_359); +lean_ctor_set(x_360, 2, x_358); +lean_inc(x_284); +x_361 = l_Lean_Syntax_node2(x_284, x_295, x_360, x_346); +lean_inc(x_284); +x_362 = l_Lean_Syntax_node2(x_284, x_297, x_335, x_361); +x_300 = x_362; +x_301 = x_327; +goto block_323; +} +block_323: +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; size_t x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_302 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_300, x_280, x_14, x_15, x_16, x_17, x_301); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_280); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); +lean_inc(x_304); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_305 = x_302; +} else { + lean_dec_ref(x_302); + x_305 = lean_box(0); +} +x_306 = lean_st_ref_get(x_17, x_304); +lean_dec(x_17); +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_308 = x_306; +} else { + lean_dec_ref(x_306); + x_308 = lean_box(0); +} +x_309 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_284); +if (lean_is_scalar(x_305)) { + x_310 = lean_alloc_ctor(2, 2, 0); +} else { + x_310 = x_305; + lean_ctor_set_tag(x_310, 2); +} +lean_ctor_set(x_310, 0, x_284); +lean_ctor_set(x_310, 1, x_309); +x_311 = lean_array_size(x_299); +x_312 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_311, x_7, x_299); +x_313 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_314 = l_Lean_mkSepArray(x_312, x_313); +lean_dec(x_312); +x_315 = l_Array_append___rarg(x_293, x_314); +lean_dec(x_314); +lean_inc(x_284); +x_316 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_316, 0, x_284); +lean_ctor_set(x_316, 1, x_295); +lean_ctor_set(x_316, 2, x_315); +lean_inc(x_284); +x_317 = l_Lean_Syntax_node1(x_284, x_295, x_316); +x_318 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_284); +if (lean_is_scalar(x_281)) { + x_319 = lean_alloc_ctor(2, 2, 0); +} else { + x_319 = x_281; + lean_ctor_set_tag(x_319, 2); +} +lean_ctor_set(x_319, 0, x_284); +lean_ctor_set(x_319, 1, x_318); +x_320 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_321 = l_Lean_Syntax_node4(x_284, x_320, x_310, x_317, x_319, x_303); +if (lean_is_scalar(x_308)) { + x_322 = lean_alloc_ctor(0, 2, 0); +} else { + x_322 = x_308; +} +lean_ctor_set(x_322, 0, x_321); +lean_ctor_set(x_322, 1, x_307); +return x_322; +} +} +else +{ +lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +lean_free_object(x_25); +lean_dec(x_27); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +x_363 = lean_ctor_get(x_276, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_276, 1); +lean_inc(x_364); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_365 = x_276; +} else { + lean_dec_ref(x_276); + x_365 = lean_box(0); +} +if (lean_is_scalar(x_365)) { + x_366 = lean_alloc_ctor(1, 2, 0); +} else { + x_366 = x_365; +} +lean_ctor_set(x_366, 0, x_363); +lean_ctor_set(x_366, 1, x_364); +return x_366; +} +} +} +else +{ +uint8_t x_367; +lean_free_object(x_25); +lean_dec(x_27); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_367 = !lean_is_exclusive(x_32); +if (x_367 == 0) +{ +return x_32; +} +else +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_368 = lean_ctor_get(x_32, 0); +x_369 = lean_ctor_get(x_32, 1); +lean_inc(x_369); +lean_inc(x_368); +lean_dec(x_32); +x_370 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_369); +return x_370; +} +} +} +else +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_371 = lean_ctor_get(x_25, 0); +x_372 = lean_ctor_get(x_25, 1); +lean_inc(x_372); +lean_inc(x_371); +lean_dec(x_25); +x_373 = lean_ctor_get(x_2, 3); +lean_inc(x_373); +x_374 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_374, 0, x_21); +lean_ctor_set(x_374, 1, x_373); +lean_ctor_set(x_374, 2, x_22); +x_375 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_4); +x_376 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__5(x_3, x_1, x_4, x_5, x_10, x_374, x_374, x_375, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_372); +lean_dec(x_374); +if (lean_obj_tag(x_376) == 0) +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +x_377 = lean_ctor_get(x_376, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_376, 1); +lean_inc(x_378); +lean_dec(x_376); +x_379 = lean_ctor_get(x_377, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_377, 1); +lean_inc(x_380); +if (lean_is_exclusive(x_377)) { + lean_ctor_release(x_377, 0); + lean_ctor_release(x_377, 1); + x_381 = x_377; +} else { + lean_dec_ref(x_377); + x_381 = lean_box(0); +} +x_382 = lean_ctor_get(x_2, 4); +lean_inc(x_382); +x_383 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_383, 0, x_21); +lean_ctor_set(x_383, 1, x_382); +lean_ctor_set(x_383, 2, x_22); +if (lean_is_scalar(x_381)) { + x_384 = lean_alloc_ctor(0, 2, 0); +} else { + x_384 = x_381; +} +lean_ctor_set(x_384, 0, x_379); +lean_ctor_set(x_384, 1, x_380); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_385 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6(x_1, x_4, x_5, x_10, x_373, x_383, x_383, x_384, x_21, lean_box(0), lean_box(0), x_12, x_13, x_14, x_15, x_16, x_17, x_378); +lean_dec(x_383); +if (lean_obj_tag(x_385) == 0) +{ +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; uint8_t x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; +x_386 = lean_ctor_get(x_385, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_385, 1); +lean_inc(x_387); +lean_dec(x_385); +x_388 = lean_ctor_get(x_386, 0); +lean_inc(x_388); +x_389 = lean_ctor_get(x_386, 1); +lean_inc(x_389); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_390 = x_386; +} else { + lean_dec_ref(x_386); + x_390 = lean_box(0); +} +x_391 = lean_ctor_get(x_16, 5); +lean_inc(x_391); +x_392 = 0; +x_393 = l_Lean_SourceInfo_fromRef(x_391, x_392); +lean_dec(x_391); +x_394 = lean_st_ref_get(x_17, x_387); +x_395 = lean_ctor_get(x_394, 1); +lean_inc(x_395); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_396 = x_394; +} else { + lean_dec_ref(x_394); + x_396 = lean_box(0); +} +x_397 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5; +lean_inc(x_393); +if (lean_is_scalar(x_396)) { + x_398 = lean_alloc_ctor(2, 2, 0); +} else { + x_398 = x_396; + lean_ctor_set_tag(x_398, 2); +} +lean_ctor_set(x_398, 0, x_393); +lean_ctor_set(x_398, 1, x_397); +x_399 = lean_mk_syntax_ident(x_6); +x_400 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4; +lean_inc(x_393); +x_401 = l_Lean_Syntax_node2(x_393, x_400, x_398, x_399); +x_402 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_403 = l_Array_append___rarg(x_402, x_388); +lean_dec(x_388); +x_404 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_393); +x_405 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_405, 0, x_393); +lean_ctor_set(x_405, 1, x_404); +lean_ctor_set(x_405, 2, x_403); +x_406 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_393); +x_407 = l_Lean_Syntax_node2(x_393, x_406, x_401, x_405); +x_408 = lean_array_push(x_371, x_407); +x_433 = lean_ctor_get(x_16, 10); +lean_inc(x_433); +x_434 = lean_st_ref_get(x_17, x_395); +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_434, 1); +lean_inc(x_436); +if (lean_is_exclusive(x_434)) { + lean_ctor_release(x_434, 0); + lean_ctor_release(x_434, 1); + x_437 = x_434; +} else { + lean_dec_ref(x_434); + x_437 = lean_box(0); +} +x_438 = lean_ctor_get(x_435, 0); +lean_inc(x_438); +lean_dec(x_435); +x_439 = lean_environment_main_module(x_438); +x_440 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5; +x_441 = l_Lean_addMacroScope(x_439, x_440, x_433); +x_442 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3; +x_443 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11; +lean_inc(x_393); +x_444 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_444, 0, x_393); +lean_ctor_set(x_444, 1, x_442); +lean_ctor_set(x_444, 2, x_441); +lean_ctor_set(x_444, 3, x_443); +x_445 = lean_ctor_get(x_8, 0); +lean_inc(x_445); +lean_dec(x_8); +lean_inc(x_445); +x_446 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_19, x_445); +x_447 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_393); +if (lean_is_scalar(x_437)) { + x_448 = lean_alloc_ctor(2, 2, 0); +} else { + x_448 = x_437; + lean_ctor_set_tag(x_448, 2); +} +lean_ctor_set(x_448, 0, x_393); +lean_ctor_set(x_448, 1, x_447); +x_449 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +x_450 = l_Lean_Syntax_SepArray_ofElems(x_449, x_9); +x_451 = l_Array_append___rarg(x_402, x_450); +lean_dec(x_450); +lean_inc(x_393); +x_452 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_452, 0, x_393); +lean_ctor_set(x_452, 1, x_404); +lean_ctor_set(x_452, 2, x_451); +x_453 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_393); +x_454 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_454, 0, x_393); +lean_ctor_set(x_454, 1, x_453); +x_455 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13; +lean_inc(x_393); +x_456 = l_Lean_Syntax_node3(x_393, x_455, x_448, x_452, x_454); +if (lean_obj_tag(x_446) == 0) +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; +x_457 = l_Lean_quoteNameMk(x_445); +lean_inc(x_393); +x_458 = l_Lean_Syntax_node2(x_393, x_404, x_457, x_456); +lean_inc(x_393); +x_459 = l_Lean_Syntax_node2(x_393, x_406, x_444, x_458); +x_409 = x_459; +x_410 = x_436; +goto block_432; +} +else +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; +lean_dec(x_445); +x_460 = lean_ctor_get(x_446, 0); +lean_inc(x_460); +lean_dec(x_446); +x_461 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18; +x_462 = l_String_intercalate(x_461, x_460); +x_463 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19; +x_464 = lean_string_append(x_463, x_462); +lean_dec(x_462); +x_465 = lean_box(2); +x_466 = l_Lean_Syntax_mkNameLit(x_464, x_465); +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_19); +x_468 = lean_array_mk(x_467); +x_469 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17; +x_470 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_470, 0, x_465); +lean_ctor_set(x_470, 1, x_469); +lean_ctor_set(x_470, 2, x_468); +lean_inc(x_393); +x_471 = l_Lean_Syntax_node2(x_393, x_404, x_470, x_456); +lean_inc(x_393); +x_472 = l_Lean_Syntax_node2(x_393, x_406, x_444, x_471); +x_409 = x_472; +x_410 = x_436; +goto block_432; +} +block_432: +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; size_t 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; +x_411 = l_Lean_Elab_Deriving_ToExpr_mkAppNTerm(x_409, x_389, x_14, x_15, x_16, x_17, x_410); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_389); +x_412 = lean_ctor_get(x_411, 0); +lean_inc(x_412); +x_413 = lean_ctor_get(x_411, 1); +lean_inc(x_413); +if (lean_is_exclusive(x_411)) { + lean_ctor_release(x_411, 0); + lean_ctor_release(x_411, 1); + x_414 = x_411; +} else { + lean_dec_ref(x_411); + x_414 = lean_box(0); +} +x_415 = lean_st_ref_get(x_17, x_413); +lean_dec(x_17); +x_416 = lean_ctor_get(x_415, 1); +lean_inc(x_416); +if (lean_is_exclusive(x_415)) { + lean_ctor_release(x_415, 0); + lean_ctor_release(x_415, 1); + x_417 = x_415; +} else { + lean_dec_ref(x_415); + x_417 = lean_box(0); +} +x_418 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4; +lean_inc(x_393); +if (lean_is_scalar(x_414)) { + x_419 = lean_alloc_ctor(2, 2, 0); +} else { + x_419 = x_414; + lean_ctor_set_tag(x_419, 2); +} +lean_ctor_set(x_419, 0, x_393); +lean_ctor_set(x_419, 1, x_418); +x_420 = lean_array_size(x_408); +x_421 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__2(x_420, x_7, x_408); +x_422 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_423 = l_Lean_mkSepArray(x_421, x_422); +lean_dec(x_421); +x_424 = l_Array_append___rarg(x_402, x_423); +lean_dec(x_423); +lean_inc(x_393); +x_425 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_425, 0, x_393); +lean_ctor_set(x_425, 1, x_404); +lean_ctor_set(x_425, 2, x_424); +lean_inc(x_393); +x_426 = l_Lean_Syntax_node1(x_393, x_404, x_425); +x_427 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6; +lean_inc(x_393); +if (lean_is_scalar(x_390)) { + x_428 = lean_alloc_ctor(2, 2, 0); +} else { + x_428 = x_390; + lean_ctor_set_tag(x_428, 2); +} +lean_ctor_set(x_428, 0, x_393); +lean_ctor_set(x_428, 1, x_427); +x_429 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3; +x_430 = l_Lean_Syntax_node4(x_393, x_429, x_419, x_426, x_428, x_412); +if (lean_is_scalar(x_417)) { + x_431 = lean_alloc_ctor(0, 2, 0); +} else { + x_431 = x_417; +} +lean_ctor_set(x_431, 0, x_430); +lean_ctor_set(x_431, 1, x_416); +return x_431; +} +} +else +{ +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; +lean_dec(x_371); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +x_473 = lean_ctor_get(x_385, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_385, 1); +lean_inc(x_474); +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + x_475 = x_385; +} else { + lean_dec_ref(x_385); + x_475 = lean_box(0); +} +if (lean_is_scalar(x_475)) { + x_476 = lean_alloc_ctor(1, 2, 0); +} else { + x_476 = x_475; +} +lean_ctor_set(x_476, 0, x_473); +lean_ctor_set(x_476, 1, x_474); +return x_476; +} +} +else +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; +lean_dec(x_371); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_477 = lean_ctor_get(x_376, 0); +lean_inc(x_477); +x_478 = lean_ctor_get(x_376, 1); +lean_inc(x_478); +if (lean_is_exclusive(x_376)) { + lean_ctor_release(x_376, 0); + lean_ctor_release(x_376, 1); + x_479 = x_376; +} else { + lean_dec_ref(x_376); + x_479 = lean_box(0); +} +if (lean_is_scalar(x_479)) { + x_480 = lean_alloc_ctor(1, 2, 0); +} else { + x_480 = x_479; +} +lean_ctor_set(x_480, 0, x_477); +lean_ctor_set(x_480, 1, x_478); +return x_480; +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_20; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_10, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +lean_dec(x_10); +lean_inc(x_13); +lean_inc(x_21); +x_23 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2(x_21, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +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; uint8_t x_30; lean_object* x_31; +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(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 2); +lean_inc(x_27); +x_28 = lean_box_usize(x_5); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +lean_inc(x_2); +x_29 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___boxed), 18, 9); +lean_closure_set(x_29, 0, x_2); +lean_closure_set(x_29, 1, x_24); +lean_closure_set(x_29, 2, x_1); +lean_closure_set(x_29, 3, x_3); +lean_closure_set(x_29, 4, x_4); +lean_closure_set(x_29, 5, x_21); +lean_closure_set(x_29, 6, x_28); +lean_closure_set(x_29, 7, x_26); +lean_closure_set(x_29, 8, x_6); +x_30 = 0; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_31 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___rarg(x_27, x_29, x_30, x_13, x_14, x_15, x_16, x_17, x_18, x_25); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_array_push(x_11, x_32); +x_10 = x_22; +x_11 = x_34; +x_12 = lean_box(0); +x_19 = x_33; +goto _start; +} +else +{ +uint8_t x_36; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +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(x_22); +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_23); +if (x_40 == 0) +{ +return x_23; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_23, 0); +x_42 = lean_ctor_get(x_23, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_23); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8(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; size_t x_8; size_t x_9; lean_object* x_10; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_10 = lean_array_uset(x_7, x_2, x_5); +x_2 = x_9; +x_3 = x_10; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; 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_12 = lean_array_size(x_4); +x_13 = 0; +lean_inc(x_9); +lean_inc(x_4); +x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1(x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_2, 4); +lean_inc(x_17); +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +lean_inc(x_17); +x_20 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7(x_1, x_2, x_3, x_4, x_13, x_15, x_17, x_18, x_17, x_17, x_19, lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_16); +lean_dec(x_17); +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_22; size_t x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_array_size(x_22); +x_24 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8(x_23, x_13, x_22); +lean_ctor_set(x_20, 0, x_24); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; size_t x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_20); +x_27 = lean_array_size(x_25); +x_28 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8(x_27, x_13, x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_20); +if (x_30 == 0) +{ +return x_20; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_20, 0); +x_32 = lean_ctor_get(x_20, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_20); +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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__5___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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, x_16, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___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, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_19; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; lean_object* x_20; +x_19 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_20 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_20; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +size_t x_20; lean_object* x_21; +x_20 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_21 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7(x_1, x_2, x_3, x_4, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__8(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("match", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("with", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("matchAlts", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprBody(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_13; +lean_inc(x_2); +lean_inc(x_1); +x_12 = l_Lean_Elab_Deriving_mkDiscrs(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_10); +lean_inc(x_9); +x_16 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +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(x_16); +x_19 = lean_ctor_get(x_9, 5); +lean_inc(x_19); +lean_dec(x_9); +x_20 = 0; +x_21 = l_Lean_SourceInfo_fromRef(x_19, x_20); +lean_dec(x_19); +x_22 = lean_st_ref_get(x_10, x_18); +lean_dec(x_10); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; size_t x_29; size_t 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; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1; +lean_inc(x_21); +lean_ctor_set_tag(x_12, 2); +lean_ctor_set(x_12, 1, x_25); +lean_ctor_set(x_12, 0, x_21); +x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_27 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_21); +x_28 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_26); +lean_ctor_set(x_28, 2, x_27); +x_29 = lean_array_size(x_14); +x_30 = 0; +x_31 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__20(x_29, x_30, x_14); +x_32 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_33 = l_Lean_mkSepArray(x_31, x_32); +lean_dec(x_31); +x_34 = l_Array_append___rarg(x_27, x_33); +lean_dec(x_33); +lean_inc(x_21); +x_35 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_35, 0, x_21); +lean_ctor_set(x_35, 1, x_26); +lean_ctor_set(x_35, 2, x_34); +x_36 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3; +lean_inc(x_21); +x_37 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_37, 0, x_21); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Array_append___rarg(x_27, x_17); +lean_dec(x_17); +lean_inc(x_21); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_21); +lean_ctor_set(x_39, 1, x_26); +lean_ctor_set(x_39, 2, x_38); +x_40 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5; +lean_inc(x_21); +x_41 = l_Lean_Syntax_node1(x_21, x_40, x_39); +x_42 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2; +lean_inc(x_28); +x_43 = l_Lean_Syntax_node6(x_21, x_42, x_12, x_28, x_28, x_35, x_37, x_41); +lean_ctor_set(x_22, 0, x_43); +return x_22; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 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_44 = lean_ctor_get(x_22, 1); +lean_inc(x_44); +lean_dec(x_22); +x_45 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1; +lean_inc(x_21); +lean_ctor_set_tag(x_12, 2); +lean_ctor_set(x_12, 1, x_45); +lean_ctor_set(x_12, 0, x_21); +x_46 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_47 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_21); +x_48 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_48, 0, x_21); +lean_ctor_set(x_48, 1, x_46); +lean_ctor_set(x_48, 2, x_47); +x_49 = lean_array_size(x_14); +x_50 = 0; +x_51 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__20(x_49, x_50, x_14); +x_52 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_53 = l_Lean_mkSepArray(x_51, x_52); +lean_dec(x_51); +x_54 = l_Array_append___rarg(x_47, x_53); +lean_dec(x_53); +lean_inc(x_21); +x_55 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_55, 0, x_21); +lean_ctor_set(x_55, 1, x_46); +lean_ctor_set(x_55, 2, x_54); +x_56 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3; +lean_inc(x_21); +x_57 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_57, 0, x_21); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Array_append___rarg(x_47, x_17); +lean_dec(x_17); +lean_inc(x_21); +x_59 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_59, 0, x_21); +lean_ctor_set(x_59, 1, x_46); +lean_ctor_set(x_59, 2, x_58); +x_60 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5; +lean_inc(x_21); +x_61 = l_Lean_Syntax_node1(x_21, x_60, x_59); +x_62 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2; +lean_inc(x_48); +x_63 = l_Lean_Syntax_node6(x_21, x_62, x_12, x_48, x_48, x_55, x_57, x_61); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_44); +return x_64; +} +} +else +{ +uint8_t x_65; +lean_free_object(x_12); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +x_65 = !lean_is_exclusive(x_16); +if (x_65 == 0) +{ +return x_16; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_16, 0); +x_67 = lean_ctor_get(x_16, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_16); +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; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_12, 0); +x_70 = lean_ctor_get(x_12, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +x_71 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; size_t x_85; size_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +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(x_71); +x_74 = lean_ctor_get(x_9, 5); +lean_inc(x_74); +lean_dec(x_9); +x_75 = 0; +x_76 = l_Lean_SourceInfo_fromRef(x_74, x_75); +lean_dec(x_74); +x_77 = lean_st_ref_get(x_10, x_73); +lean_dec(x_10); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +x_80 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1; +lean_inc(x_76); +x_81 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_81, 0, x_76); +lean_ctor_set(x_81, 1, x_80); +x_82 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_83 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_76); +x_84 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_84, 0, x_76); +lean_ctor_set(x_84, 1, x_82); +lean_ctor_set(x_84, 2, x_83); +x_85 = lean_array_size(x_69); +x_86 = 0; +x_87 = l_Array_mapMUnsafe_map___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__20(x_85, x_86, x_69); +x_88 = l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5; +x_89 = l_Lean_mkSepArray(x_87, x_88); +lean_dec(x_87); +x_90 = l_Array_append___rarg(x_83, x_89); +lean_dec(x_89); +lean_inc(x_76); +x_91 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_91, 0, x_76); +lean_ctor_set(x_91, 1, x_82); +lean_ctor_set(x_91, 2, x_90); +x_92 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3; +lean_inc(x_76); +x_93 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_93, 0, x_76); +lean_ctor_set(x_93, 1, x_92); +x_94 = l_Array_append___rarg(x_83, x_72); +lean_dec(x_72); +lean_inc(x_76); +x_95 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_95, 0, x_76); +lean_ctor_set(x_95, 1, x_82); +lean_ctor_set(x_95, 2, x_94); +x_96 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5; +lean_inc(x_76); +x_97 = l_Lean_Syntax_node1(x_76, x_96, x_95); +x_98 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2; +lean_inc(x_84); +x_99 = l_Lean_Syntax_node6(x_76, x_98, x_81, x_84, x_84, x_91, x_93, x_97); +if (lean_is_scalar(x_79)) { + x_100 = lean_alloc_ctor(0, 2, 0); +} else { + x_100 = x_79; +} +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_78); +return x_100; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_69); +lean_dec(x_10); +lean_dec(x_9); +x_101 = lean_ctor_get(x_71, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_71, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_103 = x_71; +} else { + lean_dec_ref(x_71); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("localinst", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("letDecl", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("letIdDecl", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("typeSpec", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___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; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Elab", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Deriving", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14; +x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":=", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structInst", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("{", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structInstFields", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structInstField", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structInstLVal", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structInstFieldDef", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("optEllipsis", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_lt(x_7, x_6); +if (x_16 == 0) +{ +lean_object* x_17; +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(x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_8); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_28; +x_18 = lean_array_uget(x_5, x_7); +x_28 = !lean_is_exclusive(x_8); +if (x_28 == 0) +{ +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_29 = lean_ctor_get(x_8, 0); +x_30 = lean_ctor_get(x_8, 1); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_29, 2); +lean_inc(x_33); +x_34 = lean_nat_dec_lt(x_32, x_33); +if (x_34 == 0) +{ +lean_object* x_35; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_18); +x_35 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_35, 0, x_8); +x_19 = x_35; +x_20 = x_15; +goto block_27; +} +else +{ +uint8_t x_36; +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; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_37 = lean_ctor_get(x_29, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_29, 0); +lean_dec(x_39); +x_40 = lean_array_fget(x_31, x_32); +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_32, x_41); +lean_dec(x_32); +lean_ctor_set(x_29, 1, x_42); +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_18); +x_43 = l_Lean_Elab_Deriving_mkInductArgNames(x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_ctor_get(x_18, 1); +lean_inc(x_46); +x_47 = lean_array_get_size(x_44); +lean_inc(x_46); +x_48 = l_Array_toSubarray___rarg(x_44, x_46, x_47); +x_49 = l_Array_ofSubarray___rarg(x_48); +lean_dec(x_48); +lean_inc(x_49); +x_50 = l_Lean_Elab_Deriving_mkImplicitBinders(x_49, x_9, x_10, x_11, x_12, x_13, x_14, x_45); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 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_object* x_60; lean_object* x_61; uint8_t x_62; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +x_54 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_55 = l_Array_toSubarray___rarg(x_1, x_54, x_46); +x_56 = l_Array_ofSubarray___rarg(x_55); +lean_dec(x_55); +x_57 = l_Array_append___rarg(x_56, x_49); +lean_dec(x_49); +x_58 = lean_array_get_size(x_57); +x_59 = l_Array_toSubarray___rarg(x_57, x_54, x_58); +x_60 = l_Array_ofSubarray___rarg(x_59); +lean_dec(x_59); +lean_inc(x_18); +x_61 = l_Lean_Elab_Deriving_mkInductiveApp(x_18, x_60, x_9, x_10, x_11, x_12, x_13, x_14, x_53); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +x_65 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +x_66 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_65, x_13, x_14, x_64); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_66, 0); +x_69 = lean_ctor_get(x_66, 1); +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_1); +x_70 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_69); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +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(x_70); +x_73 = lean_ctor_get(x_13, 5); +lean_inc(x_73); +x_74 = 0; +x_75 = l_Lean_SourceInfo_fromRef(x_73, x_74); +lean_dec(x_73); +x_76 = lean_ctor_get(x_13, 10); +lean_inc(x_76); +x_77 = lean_st_ref_get(x_14, x_72); +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +lean_dec(x_79); +x_82 = lean_environment_main_module(x_81); +x_83 = lean_mk_syntax_ident(x_68); +x_84 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_85 = l_Array_append___rarg(x_84, x_52); +lean_dec(x_52); +x_86 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_75); +x_87 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_87, 0, x_75); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_87, 2, x_85); +x_88 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_75); +lean_ctor_set_tag(x_77, 2); +lean_ctor_set(x_77, 1, x_88); +lean_ctor_set(x_77, 0, x_75); +x_89 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_76); +lean_inc(x_82); +x_90 = l_Lean_addMacroScope(x_82, x_89, x_76); +x_91 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_92 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_75); +x_93 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_93, 0, x_75); +lean_ctor_set(x_93, 1, x_91); +lean_ctor_set(x_93, 2, x_90); +lean_ctor_set(x_93, 3, x_92); +lean_inc(x_75); +x_94 = l_Lean_Syntax_node1(x_75, x_86, x_63); +x_95 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_75); +x_96 = l_Lean_Syntax_node2(x_75, x_95, x_93, x_94); +x_97 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_75); +x_98 = l_Lean_Syntax_node2(x_75, x_97, x_77, x_96); +lean_inc(x_75); +x_99 = l_Lean_Syntax_node1(x_75, x_86, x_98); +x_100 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_75); +lean_ctor_set_tag(x_66, 2); +lean_ctor_set(x_66, 1, x_100); +lean_ctor_set(x_66, 0, x_75); +x_101 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_75); +lean_ctor_set_tag(x_61, 2); +lean_ctor_set(x_61, 1, x_101); +lean_ctor_set(x_61, 0, x_75); +lean_inc(x_75); +x_102 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_102, 0, x_75); +lean_ctor_set(x_102, 1, x_86); +lean_ctor_set(x_102, 2, x_84); +x_103 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_76); +lean_inc(x_82); +x_104 = l_Lean_addMacroScope(x_82, x_103, x_76); +x_105 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_106 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_75); +x_107 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_107, 0, x_75); +lean_ctor_set(x_107, 1, x_105); +lean_ctor_set(x_107, 2, x_104); +lean_ctor_set(x_107, 3, x_106); +x_108 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_102); +lean_inc(x_75); +x_109 = l_Lean_Syntax_node2(x_75, x_108, x_107, x_102); +x_110 = lean_mk_syntax_ident(x_40); +x_111 = l_Array_append___rarg(x_84, x_2); +lean_inc(x_75); +x_112 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_112, 0, x_75); +lean_ctor_set(x_112, 1, x_86); +lean_ctor_set(x_112, 2, x_111); +lean_inc(x_75); +x_113 = l_Lean_Syntax_node2(x_75, x_95, x_110, x_112); +x_114 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_66); +lean_inc(x_75); +x_115 = l_Lean_Syntax_node2(x_75, x_114, x_66, x_113); +lean_inc_n(x_102, 2); +lean_inc(x_75); +x_116 = l_Lean_Syntax_node3(x_75, x_86, x_102, x_102, x_115); +x_117 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_75); +x_118 = l_Lean_Syntax_node2(x_75, x_117, x_109, x_116); +x_119 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_75); +lean_ctor_set_tag(x_50, 2); +lean_ctor_set(x_50, 1, x_119); +lean_ctor_set(x_50, 0, x_75); +x_120 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_121 = l_Lean_addMacroScope(x_82, x_120, x_76); +x_122 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_123 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_75); +x_124 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_124, 0, x_75); +lean_ctor_set(x_124, 1, x_122); +lean_ctor_set(x_124, 2, x_121); +lean_ctor_set(x_124, 3, x_123); +lean_inc(x_102); +lean_inc(x_75); +x_125 = l_Lean_Syntax_node2(x_75, x_108, x_124, x_102); +lean_inc(x_66); +lean_inc(x_75); +x_126 = l_Lean_Syntax_node2(x_75, x_114, x_66, x_71); +lean_inc_n(x_102, 2); +lean_inc(x_75); +x_127 = l_Lean_Syntax_node3(x_75, x_86, x_102, x_102, x_126); +lean_inc(x_75); +x_128 = l_Lean_Syntax_node2(x_75, x_117, x_125, x_127); +lean_inc(x_75); +x_129 = l_Lean_Syntax_node3(x_75, x_86, x_118, x_50, x_128); +x_130 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_75); +x_131 = l_Lean_Syntax_node1(x_75, x_130, x_129); +x_132 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_102); +lean_inc(x_75); +x_133 = l_Lean_Syntax_node1(x_75, x_132, x_102); +x_134 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_75); +x_135 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_135, 0, x_75); +lean_ctor_set(x_135, 1, x_134); +x_136 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_102); +lean_inc(x_75); +x_137 = l_Lean_Syntax_node6(x_75, x_136, x_61, x_102, x_131, x_133, x_102, x_135); +x_138 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_75); +x_139 = l_Lean_Syntax_node5(x_75, x_138, x_83, x_87, x_99, x_66, x_137); +x_140 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_141 = l_Lean_Syntax_node1(x_75, x_140, x_139); +x_142 = lean_array_push(x_30, x_141); +lean_ctor_set(x_8, 1, x_142); +x_143 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_143, 0, x_8); +x_19 = x_143; +x_20 = x_80; +goto block_27; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_144 = lean_ctor_get(x_77, 0); +x_145 = lean_ctor_get(x_77, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_77); +x_146 = lean_ctor_get(x_144, 0); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_environment_main_module(x_146); +x_148 = lean_mk_syntax_ident(x_68); +x_149 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_150 = l_Array_append___rarg(x_149, x_52); +lean_dec(x_52); +x_151 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_75); +x_152 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_152, 0, x_75); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_150); +x_153 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_75); +x_154 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_154, 0, x_75); +lean_ctor_set(x_154, 1, x_153); +x_155 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_76); +lean_inc(x_147); +x_156 = l_Lean_addMacroScope(x_147, x_155, x_76); +x_157 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_158 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_75); +x_159 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_159, 0, x_75); +lean_ctor_set(x_159, 1, x_157); +lean_ctor_set(x_159, 2, x_156); +lean_ctor_set(x_159, 3, x_158); +lean_inc(x_75); +x_160 = l_Lean_Syntax_node1(x_75, x_151, x_63); +x_161 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_75); +x_162 = l_Lean_Syntax_node2(x_75, x_161, x_159, x_160); +x_163 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_75); +x_164 = l_Lean_Syntax_node2(x_75, x_163, x_154, x_162); +lean_inc(x_75); +x_165 = l_Lean_Syntax_node1(x_75, x_151, x_164); +x_166 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_75); +lean_ctor_set_tag(x_66, 2); +lean_ctor_set(x_66, 1, x_166); +lean_ctor_set(x_66, 0, x_75); +x_167 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_75); +lean_ctor_set_tag(x_61, 2); +lean_ctor_set(x_61, 1, x_167); +lean_ctor_set(x_61, 0, x_75); +lean_inc(x_75); +x_168 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_168, 0, x_75); +lean_ctor_set(x_168, 1, x_151); +lean_ctor_set(x_168, 2, x_149); +x_169 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_76); +lean_inc(x_147); +x_170 = l_Lean_addMacroScope(x_147, x_169, x_76); +x_171 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_172 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_75); +x_173 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_173, 0, x_75); +lean_ctor_set(x_173, 1, x_171); +lean_ctor_set(x_173, 2, x_170); +lean_ctor_set(x_173, 3, x_172); +x_174 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_168); +lean_inc(x_75); +x_175 = l_Lean_Syntax_node2(x_75, x_174, x_173, x_168); +x_176 = lean_mk_syntax_ident(x_40); +x_177 = l_Array_append___rarg(x_149, x_2); +lean_inc(x_75); +x_178 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_178, 0, x_75); +lean_ctor_set(x_178, 1, x_151); +lean_ctor_set(x_178, 2, x_177); +lean_inc(x_75); +x_179 = l_Lean_Syntax_node2(x_75, x_161, x_176, x_178); +x_180 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_66); +lean_inc(x_75); +x_181 = l_Lean_Syntax_node2(x_75, x_180, x_66, x_179); +lean_inc_n(x_168, 2); +lean_inc(x_75); +x_182 = l_Lean_Syntax_node3(x_75, x_151, x_168, x_168, x_181); +x_183 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_75); +x_184 = l_Lean_Syntax_node2(x_75, x_183, x_175, x_182); +x_185 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_75); +lean_ctor_set_tag(x_50, 2); +lean_ctor_set(x_50, 1, x_185); +lean_ctor_set(x_50, 0, x_75); +x_186 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_187 = l_Lean_addMacroScope(x_147, x_186, x_76); +x_188 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_189 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_75); +x_190 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_190, 0, x_75); +lean_ctor_set(x_190, 1, x_188); +lean_ctor_set(x_190, 2, x_187); +lean_ctor_set(x_190, 3, x_189); +lean_inc(x_168); +lean_inc(x_75); +x_191 = l_Lean_Syntax_node2(x_75, x_174, x_190, x_168); +lean_inc(x_66); +lean_inc(x_75); +x_192 = l_Lean_Syntax_node2(x_75, x_180, x_66, x_71); +lean_inc_n(x_168, 2); +lean_inc(x_75); +x_193 = l_Lean_Syntax_node3(x_75, x_151, x_168, x_168, x_192); +lean_inc(x_75); +x_194 = l_Lean_Syntax_node2(x_75, x_183, x_191, x_193); +lean_inc(x_75); +x_195 = l_Lean_Syntax_node3(x_75, x_151, x_184, x_50, x_194); +x_196 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_75); +x_197 = l_Lean_Syntax_node1(x_75, x_196, x_195); +x_198 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_168); +lean_inc(x_75); +x_199 = l_Lean_Syntax_node1(x_75, x_198, x_168); +x_200 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_75); +x_201 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_201, 0, x_75); +lean_ctor_set(x_201, 1, x_200); +x_202 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_168); +lean_inc(x_75); +x_203 = l_Lean_Syntax_node6(x_75, x_202, x_61, x_168, x_197, x_199, x_168, x_201); +x_204 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_75); +x_205 = l_Lean_Syntax_node5(x_75, x_204, x_148, x_152, x_165, x_66, x_203); +x_206 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_207 = l_Lean_Syntax_node1(x_75, x_206, x_205); +x_208 = lean_array_push(x_30, x_207); +lean_ctor_set(x_8, 1, x_208); +x_209 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_209, 0, x_8); +x_19 = x_209; +x_20 = x_145; +goto block_27; +} +} +else +{ +uint8_t x_210; +lean_free_object(x_66); +lean_dec(x_68); +lean_free_object(x_61); +lean_dec(x_63); +lean_free_object(x_50); +lean_dec(x_52); +lean_dec(x_29); +lean_dec(x_40); +lean_free_object(x_8); +lean_dec(x_30); +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(x_1); +x_210 = !lean_is_exclusive(x_70); +if (x_210 == 0) +{ +return x_70; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_70, 0); +x_212 = lean_ctor_get(x_70, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_70); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; +} +} +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_66, 0); +x_215 = lean_ctor_get(x_66, 1); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_66); +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_1); +x_216 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_215); +if (lean_obj_tag(x_216) == 0) +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_217 = lean_ctor_get(x_216, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_216, 1); +lean_inc(x_218); +lean_dec(x_216); +x_219 = lean_ctor_get(x_13, 5); +lean_inc(x_219); +x_220 = 0; +x_221 = l_Lean_SourceInfo_fromRef(x_219, x_220); +lean_dec(x_219); +x_222 = lean_ctor_get(x_13, 10); +lean_inc(x_222); +x_223 = lean_st_ref_get(x_14, x_218); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +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; +} else { + lean_dec_ref(x_223); + x_226 = lean_box(0); +} +x_227 = lean_ctor_get(x_224, 0); +lean_inc(x_227); +lean_dec(x_224); +x_228 = lean_environment_main_module(x_227); +x_229 = lean_mk_syntax_ident(x_214); +x_230 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_231 = l_Array_append___rarg(x_230, x_52); +lean_dec(x_52); +x_232 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_221); +x_233 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_233, 0, x_221); +lean_ctor_set(x_233, 1, x_232); +lean_ctor_set(x_233, 2, x_231); +x_234 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_221); +if (lean_is_scalar(x_226)) { + x_235 = lean_alloc_ctor(2, 2, 0); +} else { + x_235 = x_226; + lean_ctor_set_tag(x_235, 2); +} +lean_ctor_set(x_235, 0, x_221); +lean_ctor_set(x_235, 1, x_234); +x_236 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_222); +lean_inc(x_228); +x_237 = l_Lean_addMacroScope(x_228, x_236, x_222); +x_238 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_239 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_221); +x_240 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_240, 0, x_221); +lean_ctor_set(x_240, 1, x_238); +lean_ctor_set(x_240, 2, x_237); +lean_ctor_set(x_240, 3, x_239); +lean_inc(x_221); +x_241 = l_Lean_Syntax_node1(x_221, x_232, x_63); +x_242 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_221); +x_243 = l_Lean_Syntax_node2(x_221, x_242, x_240, x_241); +x_244 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_221); +x_245 = l_Lean_Syntax_node2(x_221, x_244, x_235, x_243); +lean_inc(x_221); +x_246 = l_Lean_Syntax_node1(x_221, x_232, x_245); +x_247 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_221); +x_248 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_248, 0, x_221); +lean_ctor_set(x_248, 1, x_247); +x_249 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_221); +lean_ctor_set_tag(x_61, 2); +lean_ctor_set(x_61, 1, x_249); +lean_ctor_set(x_61, 0, x_221); +lean_inc(x_221); +x_250 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_250, 0, x_221); +lean_ctor_set(x_250, 1, x_232); +lean_ctor_set(x_250, 2, x_230); +x_251 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_222); +lean_inc(x_228); +x_252 = l_Lean_addMacroScope(x_228, x_251, x_222); +x_253 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_254 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_221); +x_255 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_255, 0, x_221); +lean_ctor_set(x_255, 1, x_253); +lean_ctor_set(x_255, 2, x_252); +lean_ctor_set(x_255, 3, x_254); +x_256 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_250); +lean_inc(x_221); +x_257 = l_Lean_Syntax_node2(x_221, x_256, x_255, x_250); +x_258 = lean_mk_syntax_ident(x_40); +x_259 = l_Array_append___rarg(x_230, x_2); +lean_inc(x_221); +x_260 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_260, 0, x_221); +lean_ctor_set(x_260, 1, x_232); +lean_ctor_set(x_260, 2, x_259); +lean_inc(x_221); +x_261 = l_Lean_Syntax_node2(x_221, x_242, x_258, x_260); +x_262 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_248); +lean_inc(x_221); +x_263 = l_Lean_Syntax_node2(x_221, x_262, x_248, x_261); +lean_inc_n(x_250, 2); +lean_inc(x_221); +x_264 = l_Lean_Syntax_node3(x_221, x_232, x_250, x_250, x_263); +x_265 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_221); +x_266 = l_Lean_Syntax_node2(x_221, x_265, x_257, x_264); +x_267 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_221); +lean_ctor_set_tag(x_50, 2); +lean_ctor_set(x_50, 1, x_267); +lean_ctor_set(x_50, 0, x_221); +x_268 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_269 = l_Lean_addMacroScope(x_228, x_268, x_222); +x_270 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_271 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_221); +x_272 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_272, 0, x_221); +lean_ctor_set(x_272, 1, x_270); +lean_ctor_set(x_272, 2, x_269); +lean_ctor_set(x_272, 3, x_271); +lean_inc(x_250); +lean_inc(x_221); +x_273 = l_Lean_Syntax_node2(x_221, x_256, x_272, x_250); +lean_inc(x_248); +lean_inc(x_221); +x_274 = l_Lean_Syntax_node2(x_221, x_262, x_248, x_217); +lean_inc_n(x_250, 2); +lean_inc(x_221); +x_275 = l_Lean_Syntax_node3(x_221, x_232, x_250, x_250, x_274); +lean_inc(x_221); +x_276 = l_Lean_Syntax_node2(x_221, x_265, x_273, x_275); +lean_inc(x_221); +x_277 = l_Lean_Syntax_node3(x_221, x_232, x_266, x_50, x_276); +x_278 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_221); +x_279 = l_Lean_Syntax_node1(x_221, x_278, x_277); +x_280 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_250); +lean_inc(x_221); +x_281 = l_Lean_Syntax_node1(x_221, x_280, x_250); +x_282 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_221); +x_283 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_283, 0, x_221); +lean_ctor_set(x_283, 1, x_282); +x_284 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_250); +lean_inc(x_221); +x_285 = l_Lean_Syntax_node6(x_221, x_284, x_61, x_250, x_279, x_281, x_250, x_283); +x_286 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_221); +x_287 = l_Lean_Syntax_node5(x_221, x_286, x_229, x_233, x_246, x_248, x_285); +x_288 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_289 = l_Lean_Syntax_node1(x_221, x_288, x_287); +x_290 = lean_array_push(x_30, x_289); +lean_ctor_set(x_8, 1, x_290); +x_291 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_291, 0, x_8); +x_19 = x_291; +x_20 = x_225; +goto block_27; +} +else +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +lean_dec(x_214); +lean_free_object(x_61); +lean_dec(x_63); +lean_free_object(x_50); +lean_dec(x_52); +lean_dec(x_29); +lean_dec(x_40); +lean_free_object(x_8); +lean_dec(x_30); +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(x_1); +x_292 = lean_ctor_get(x_216, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_216, 1); +lean_inc(x_293); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_294 = x_216; +} else { + lean_dec_ref(x_216); + x_294 = lean_box(0); +} +if (lean_is_scalar(x_294)) { + x_295 = lean_alloc_ctor(1, 2, 0); +} else { + x_295 = x_294; +} +lean_ctor_set(x_295, 0, x_292); +lean_ctor_set(x_295, 1, x_293); +return x_295; +} +} +} +else +{ +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; +x_296 = lean_ctor_get(x_61, 0); +x_297 = lean_ctor_get(x_61, 1); +lean_inc(x_297); +lean_inc(x_296); +lean_dec(x_61); +x_298 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +x_299 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_298, x_13, x_14, x_297); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_299, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + x_302 = x_299; +} else { + lean_dec_ref(x_299); + x_302 = lean_box(0); +} +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_1); +x_303 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_301); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = lean_ctor_get(x_13, 5); +lean_inc(x_306); +x_307 = 0; +x_308 = l_Lean_SourceInfo_fromRef(x_306, x_307); +lean_dec(x_306); +x_309 = lean_ctor_get(x_13, 10); +lean_inc(x_309); +x_310 = lean_st_ref_get(x_14, x_305); +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_310, 1); +lean_inc(x_312); +if (lean_is_exclusive(x_310)) { + lean_ctor_release(x_310, 0); + lean_ctor_release(x_310, 1); + x_313 = x_310; +} else { + lean_dec_ref(x_310); + x_313 = lean_box(0); +} +x_314 = lean_ctor_get(x_311, 0); +lean_inc(x_314); +lean_dec(x_311); +x_315 = lean_environment_main_module(x_314); +x_316 = lean_mk_syntax_ident(x_300); +x_317 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_318 = l_Array_append___rarg(x_317, x_52); +lean_dec(x_52); +x_319 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_308); +x_320 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_320, 0, x_308); +lean_ctor_set(x_320, 1, x_319); +lean_ctor_set(x_320, 2, x_318); +x_321 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_308); +if (lean_is_scalar(x_313)) { + x_322 = lean_alloc_ctor(2, 2, 0); +} else { + x_322 = x_313; + lean_ctor_set_tag(x_322, 2); +} +lean_ctor_set(x_322, 0, x_308); +lean_ctor_set(x_322, 1, x_321); +x_323 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_309); +lean_inc(x_315); +x_324 = l_Lean_addMacroScope(x_315, x_323, x_309); +x_325 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_326 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_308); +x_327 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_327, 0, x_308); +lean_ctor_set(x_327, 1, x_325); +lean_ctor_set(x_327, 2, x_324); +lean_ctor_set(x_327, 3, x_326); +lean_inc(x_308); +x_328 = l_Lean_Syntax_node1(x_308, x_319, x_296); +x_329 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_308); +x_330 = l_Lean_Syntax_node2(x_308, x_329, x_327, x_328); +x_331 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_308); +x_332 = l_Lean_Syntax_node2(x_308, x_331, x_322, x_330); +lean_inc(x_308); +x_333 = l_Lean_Syntax_node1(x_308, x_319, x_332); +x_334 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_308); +if (lean_is_scalar(x_302)) { + x_335 = lean_alloc_ctor(2, 2, 0); +} else { + x_335 = x_302; + lean_ctor_set_tag(x_335, 2); +} +lean_ctor_set(x_335, 0, x_308); +lean_ctor_set(x_335, 1, x_334); +x_336 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_308); +x_337 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_337, 0, x_308); +lean_ctor_set(x_337, 1, x_336); +lean_inc(x_308); +x_338 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_338, 0, x_308); +lean_ctor_set(x_338, 1, x_319); +lean_ctor_set(x_338, 2, x_317); +x_339 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_309); +lean_inc(x_315); +x_340 = l_Lean_addMacroScope(x_315, x_339, x_309); +x_341 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_342 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_308); +x_343 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_343, 0, x_308); +lean_ctor_set(x_343, 1, x_341); +lean_ctor_set(x_343, 2, x_340); +lean_ctor_set(x_343, 3, x_342); +x_344 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_338); +lean_inc(x_308); +x_345 = l_Lean_Syntax_node2(x_308, x_344, x_343, x_338); +x_346 = lean_mk_syntax_ident(x_40); +x_347 = l_Array_append___rarg(x_317, x_2); +lean_inc(x_308); +x_348 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_348, 0, x_308); +lean_ctor_set(x_348, 1, x_319); +lean_ctor_set(x_348, 2, x_347); +lean_inc(x_308); +x_349 = l_Lean_Syntax_node2(x_308, x_329, x_346, x_348); +x_350 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_335); +lean_inc(x_308); +x_351 = l_Lean_Syntax_node2(x_308, x_350, x_335, x_349); +lean_inc_n(x_338, 2); +lean_inc(x_308); +x_352 = l_Lean_Syntax_node3(x_308, x_319, x_338, x_338, x_351); +x_353 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_308); +x_354 = l_Lean_Syntax_node2(x_308, x_353, x_345, x_352); +x_355 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_308); +lean_ctor_set_tag(x_50, 2); +lean_ctor_set(x_50, 1, x_355); +lean_ctor_set(x_50, 0, x_308); +x_356 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_357 = l_Lean_addMacroScope(x_315, x_356, x_309); +x_358 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_359 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_308); +x_360 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_360, 0, x_308); +lean_ctor_set(x_360, 1, x_358); +lean_ctor_set(x_360, 2, x_357); +lean_ctor_set(x_360, 3, x_359); +lean_inc(x_338); +lean_inc(x_308); +x_361 = l_Lean_Syntax_node2(x_308, x_344, x_360, x_338); +lean_inc(x_335); +lean_inc(x_308); +x_362 = l_Lean_Syntax_node2(x_308, x_350, x_335, x_304); +lean_inc_n(x_338, 2); +lean_inc(x_308); +x_363 = l_Lean_Syntax_node3(x_308, x_319, x_338, x_338, x_362); +lean_inc(x_308); +x_364 = l_Lean_Syntax_node2(x_308, x_353, x_361, x_363); +lean_inc(x_308); +x_365 = l_Lean_Syntax_node3(x_308, x_319, x_354, x_50, x_364); +x_366 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_308); +x_367 = l_Lean_Syntax_node1(x_308, x_366, x_365); +x_368 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_338); +lean_inc(x_308); +x_369 = l_Lean_Syntax_node1(x_308, x_368, x_338); +x_370 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_308); +x_371 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_371, 0, x_308); +lean_ctor_set(x_371, 1, x_370); +x_372 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_338); +lean_inc(x_308); +x_373 = l_Lean_Syntax_node6(x_308, x_372, x_337, x_338, x_367, x_369, x_338, x_371); +x_374 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_308); +x_375 = l_Lean_Syntax_node5(x_308, x_374, x_316, x_320, x_333, x_335, x_373); +x_376 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_377 = l_Lean_Syntax_node1(x_308, x_376, x_375); +x_378 = lean_array_push(x_30, x_377); +lean_ctor_set(x_8, 1, x_378); +x_379 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_379, 0, x_8); +x_19 = x_379; +x_20 = x_312; +goto block_27; +} +else +{ +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +lean_dec(x_302); +lean_dec(x_300); +lean_dec(x_296); +lean_free_object(x_50); +lean_dec(x_52); +lean_dec(x_29); +lean_dec(x_40); +lean_free_object(x_8); +lean_dec(x_30); +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(x_1); +x_380 = lean_ctor_get(x_303, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_303, 1); +lean_inc(x_381); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_382 = x_303; +} else { + lean_dec_ref(x_303); + x_382 = lean_box(0); +} +if (lean_is_scalar(x_382)) { + x_383 = lean_alloc_ctor(1, 2, 0); +} else { + x_383 = x_382; +} +lean_ctor_set(x_383, 0, x_380); +lean_ctor_set(x_383, 1, x_381); +return x_383; +} +} +} +else +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_384 = lean_ctor_get(x_50, 0); +x_385 = lean_ctor_get(x_50, 1); +lean_inc(x_385); +lean_inc(x_384); +lean_dec(x_50); +x_386 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_387 = l_Array_toSubarray___rarg(x_1, x_386, x_46); +x_388 = l_Array_ofSubarray___rarg(x_387); +lean_dec(x_387); +x_389 = l_Array_append___rarg(x_388, x_49); +lean_dec(x_49); +x_390 = lean_array_get_size(x_389); +x_391 = l_Array_toSubarray___rarg(x_389, x_386, x_390); +x_392 = l_Array_ofSubarray___rarg(x_391); +lean_dec(x_391); +lean_inc(x_18); +x_393 = l_Lean_Elab_Deriving_mkInductiveApp(x_18, x_392, x_9, x_10, x_11, x_12, x_13, x_14, x_385); +x_394 = lean_ctor_get(x_393, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_393, 1); +lean_inc(x_395); +if (lean_is_exclusive(x_393)) { + lean_ctor_release(x_393, 0); + lean_ctor_release(x_393, 1); + x_396 = x_393; +} else { + lean_dec_ref(x_393); + x_396 = lean_box(0); +} +x_397 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +x_398 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_397, x_13, x_14, x_395); +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_398, 1); +lean_inc(x_400); +if (lean_is_exclusive(x_398)) { + lean_ctor_release(x_398, 0); + lean_ctor_release(x_398, 1); + x_401 = x_398; +} else { + lean_dec_ref(x_398); + x_401 = lean_box(0); +} +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_1); +x_402 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_400); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +x_403 = lean_ctor_get(x_402, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_402, 1); +lean_inc(x_404); +lean_dec(x_402); +x_405 = lean_ctor_get(x_13, 5); +lean_inc(x_405); +x_406 = 0; +x_407 = l_Lean_SourceInfo_fromRef(x_405, x_406); +lean_dec(x_405); +x_408 = lean_ctor_get(x_13, 10); +lean_inc(x_408); +x_409 = lean_st_ref_get(x_14, x_404); +x_410 = lean_ctor_get(x_409, 0); +lean_inc(x_410); +x_411 = lean_ctor_get(x_409, 1); +lean_inc(x_411); +if (lean_is_exclusive(x_409)) { + lean_ctor_release(x_409, 0); + lean_ctor_release(x_409, 1); + x_412 = x_409; +} else { + lean_dec_ref(x_409); + x_412 = lean_box(0); +} +x_413 = lean_ctor_get(x_410, 0); +lean_inc(x_413); +lean_dec(x_410); +x_414 = lean_environment_main_module(x_413); +x_415 = lean_mk_syntax_ident(x_399); +x_416 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_417 = l_Array_append___rarg(x_416, x_384); +lean_dec(x_384); +x_418 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_407); +x_419 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_419, 0, x_407); +lean_ctor_set(x_419, 1, x_418); +lean_ctor_set(x_419, 2, x_417); +x_420 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_407); +if (lean_is_scalar(x_412)) { + x_421 = lean_alloc_ctor(2, 2, 0); +} else { + x_421 = x_412; + lean_ctor_set_tag(x_421, 2); +} +lean_ctor_set(x_421, 0, x_407); +lean_ctor_set(x_421, 1, x_420); +x_422 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_408); +lean_inc(x_414); +x_423 = l_Lean_addMacroScope(x_414, x_422, x_408); +x_424 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_425 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_407); +x_426 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_426, 0, x_407); +lean_ctor_set(x_426, 1, x_424); +lean_ctor_set(x_426, 2, x_423); +lean_ctor_set(x_426, 3, x_425); +lean_inc(x_407); +x_427 = l_Lean_Syntax_node1(x_407, x_418, x_394); +x_428 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_407); +x_429 = l_Lean_Syntax_node2(x_407, x_428, x_426, x_427); +x_430 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_407); +x_431 = l_Lean_Syntax_node2(x_407, x_430, x_421, x_429); +lean_inc(x_407); +x_432 = l_Lean_Syntax_node1(x_407, x_418, x_431); +x_433 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_407); +if (lean_is_scalar(x_401)) { + x_434 = lean_alloc_ctor(2, 2, 0); +} else { + x_434 = x_401; + lean_ctor_set_tag(x_434, 2); +} +lean_ctor_set(x_434, 0, x_407); +lean_ctor_set(x_434, 1, x_433); +x_435 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_407); +if (lean_is_scalar(x_396)) { + x_436 = lean_alloc_ctor(2, 2, 0); +} else { + x_436 = x_396; + lean_ctor_set_tag(x_436, 2); +} +lean_ctor_set(x_436, 0, x_407); +lean_ctor_set(x_436, 1, x_435); +lean_inc(x_407); +x_437 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_437, 0, x_407); +lean_ctor_set(x_437, 1, x_418); +lean_ctor_set(x_437, 2, x_416); +x_438 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_408); +lean_inc(x_414); +x_439 = l_Lean_addMacroScope(x_414, x_438, x_408); +x_440 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_441 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_407); +x_442 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_442, 0, x_407); +lean_ctor_set(x_442, 1, x_440); +lean_ctor_set(x_442, 2, x_439); +lean_ctor_set(x_442, 3, x_441); +x_443 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_437); +lean_inc(x_407); +x_444 = l_Lean_Syntax_node2(x_407, x_443, x_442, x_437); +x_445 = lean_mk_syntax_ident(x_40); +x_446 = l_Array_append___rarg(x_416, x_2); +lean_inc(x_407); +x_447 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_447, 0, x_407); +lean_ctor_set(x_447, 1, x_418); +lean_ctor_set(x_447, 2, x_446); +lean_inc(x_407); +x_448 = l_Lean_Syntax_node2(x_407, x_428, x_445, x_447); +x_449 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_434); +lean_inc(x_407); +x_450 = l_Lean_Syntax_node2(x_407, x_449, x_434, x_448); +lean_inc_n(x_437, 2); +lean_inc(x_407); +x_451 = l_Lean_Syntax_node3(x_407, x_418, x_437, x_437, x_450); +x_452 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_407); +x_453 = l_Lean_Syntax_node2(x_407, x_452, x_444, x_451); +x_454 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_407); +x_455 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_455, 0, x_407); +lean_ctor_set(x_455, 1, x_454); +x_456 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_457 = l_Lean_addMacroScope(x_414, x_456, x_408); +x_458 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_459 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_407); +x_460 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_460, 0, x_407); +lean_ctor_set(x_460, 1, x_458); +lean_ctor_set(x_460, 2, x_457); +lean_ctor_set(x_460, 3, x_459); +lean_inc(x_437); +lean_inc(x_407); +x_461 = l_Lean_Syntax_node2(x_407, x_443, x_460, x_437); +lean_inc(x_434); +lean_inc(x_407); +x_462 = l_Lean_Syntax_node2(x_407, x_449, x_434, x_403); +lean_inc_n(x_437, 2); +lean_inc(x_407); +x_463 = l_Lean_Syntax_node3(x_407, x_418, x_437, x_437, x_462); +lean_inc(x_407); +x_464 = l_Lean_Syntax_node2(x_407, x_452, x_461, x_463); +lean_inc(x_407); +x_465 = l_Lean_Syntax_node3(x_407, x_418, x_453, x_455, x_464); +x_466 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_407); +x_467 = l_Lean_Syntax_node1(x_407, x_466, x_465); +x_468 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_437); +lean_inc(x_407); +x_469 = l_Lean_Syntax_node1(x_407, x_468, x_437); +x_470 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_407); +x_471 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_471, 0, x_407); +lean_ctor_set(x_471, 1, x_470); +x_472 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_437); +lean_inc(x_407); +x_473 = l_Lean_Syntax_node6(x_407, x_472, x_436, x_437, x_467, x_469, x_437, x_471); +x_474 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_407); +x_475 = l_Lean_Syntax_node5(x_407, x_474, x_415, x_419, x_432, x_434, x_473); +x_476 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_477 = l_Lean_Syntax_node1(x_407, x_476, x_475); +x_478 = lean_array_push(x_30, x_477); +lean_ctor_set(x_8, 1, x_478); +x_479 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_479, 0, x_8); +x_19 = x_479; +x_20 = x_411; +goto block_27; +} +else +{ +lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; +lean_dec(x_401); +lean_dec(x_399); +lean_dec(x_396); +lean_dec(x_394); +lean_dec(x_384); +lean_dec(x_29); +lean_dec(x_40); +lean_free_object(x_8); +lean_dec(x_30); +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(x_1); +x_480 = lean_ctor_get(x_402, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_402, 1); +lean_inc(x_481); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + x_482 = x_402; +} else { + lean_dec_ref(x_402); + x_482 = lean_box(0); +} +if (lean_is_scalar(x_482)) { + x_483 = lean_alloc_ctor(1, 2, 0); +} else { + x_483 = x_482; +} +lean_ctor_set(x_483, 0, x_480); +lean_ctor_set(x_483, 1, x_481); +return x_483; +} +} +} +else +{ +uint8_t x_484; +lean_dec(x_29); +lean_dec(x_40); +lean_free_object(x_8); +lean_dec(x_30); +lean_dec(x_18); +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(x_1); +x_484 = !lean_is_exclusive(x_43); +if (x_484 == 0) +{ +return x_43; +} +else +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; +x_485 = lean_ctor_get(x_43, 0); +x_486 = lean_ctor_get(x_43, 1); +lean_inc(x_486); +lean_inc(x_485); +lean_dec(x_43); +x_487 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_487, 0, x_485); +lean_ctor_set(x_487, 1, x_486); +return x_487; +} +} +} +else +{ +lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +lean_dec(x_29); +x_488 = lean_array_fget(x_31, x_32); +x_489 = lean_unsigned_to_nat(1u); +x_490 = lean_nat_add(x_32, x_489); +lean_dec(x_32); +x_491 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_491, 0, x_31); +lean_ctor_set(x_491, 1, x_490); +lean_ctor_set(x_491, 2, x_33); +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_18); +x_492 = l_Lean_Elab_Deriving_mkInductArgNames(x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_492) == 0) +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); +x_494 = lean_ctor_get(x_492, 1); +lean_inc(x_494); +lean_dec(x_492); +x_495 = lean_ctor_get(x_18, 1); +lean_inc(x_495); +x_496 = lean_array_get_size(x_493); +lean_inc(x_495); +x_497 = l_Array_toSubarray___rarg(x_493, x_495, x_496); +x_498 = l_Array_ofSubarray___rarg(x_497); +lean_dec(x_497); +lean_inc(x_498); +x_499 = l_Lean_Elab_Deriving_mkImplicitBinders(x_498, x_9, x_10, x_11, x_12, x_13, x_14, x_494); +x_500 = lean_ctor_get(x_499, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_499, 1); +lean_inc(x_501); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + x_502 = x_499; +} else { + lean_dec_ref(x_499); + x_502 = lean_box(0); +} +x_503 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_504 = l_Array_toSubarray___rarg(x_1, x_503, x_495); +x_505 = l_Array_ofSubarray___rarg(x_504); +lean_dec(x_504); +x_506 = l_Array_append___rarg(x_505, x_498); +lean_dec(x_498); +x_507 = lean_array_get_size(x_506); +x_508 = l_Array_toSubarray___rarg(x_506, x_503, x_507); +x_509 = l_Array_ofSubarray___rarg(x_508); +lean_dec(x_508); +lean_inc(x_18); +x_510 = l_Lean_Elab_Deriving_mkInductiveApp(x_18, x_509, x_9, x_10, x_11, x_12, x_13, x_14, x_501); +x_511 = lean_ctor_get(x_510, 0); +lean_inc(x_511); +x_512 = lean_ctor_get(x_510, 1); +lean_inc(x_512); +if (lean_is_exclusive(x_510)) { + lean_ctor_release(x_510, 0); + lean_ctor_release(x_510, 1); + x_513 = x_510; +} else { + lean_dec_ref(x_510); + x_513 = lean_box(0); +} +x_514 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +x_515 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_514, x_13, x_14, x_512); +x_516 = lean_ctor_get(x_515, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_515, 1); +lean_inc(x_517); +if (lean_is_exclusive(x_515)) { + lean_ctor_release(x_515, 0); + lean_ctor_release(x_515, 1); + x_518 = x_515; +} else { + lean_dec_ref(x_515); + x_518 = lean_box(0); +} +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_1); +x_519 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_517); +if (lean_obj_tag(x_519) == 0) +{ +lean_object* x_520; lean_object* x_521; lean_object* x_522; uint8_t x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; +x_520 = lean_ctor_get(x_519, 0); +lean_inc(x_520); +x_521 = lean_ctor_get(x_519, 1); +lean_inc(x_521); +lean_dec(x_519); +x_522 = lean_ctor_get(x_13, 5); +lean_inc(x_522); +x_523 = 0; +x_524 = l_Lean_SourceInfo_fromRef(x_522, x_523); +lean_dec(x_522); +x_525 = lean_ctor_get(x_13, 10); +lean_inc(x_525); +x_526 = lean_st_ref_get(x_14, x_521); +x_527 = lean_ctor_get(x_526, 0); +lean_inc(x_527); +x_528 = lean_ctor_get(x_526, 1); +lean_inc(x_528); +if (lean_is_exclusive(x_526)) { + lean_ctor_release(x_526, 0); + lean_ctor_release(x_526, 1); + x_529 = x_526; +} else { + lean_dec_ref(x_526); + x_529 = lean_box(0); +} +x_530 = lean_ctor_get(x_527, 0); +lean_inc(x_530); +lean_dec(x_527); +x_531 = lean_environment_main_module(x_530); +x_532 = lean_mk_syntax_ident(x_516); +x_533 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_534 = l_Array_append___rarg(x_533, x_500); +lean_dec(x_500); +x_535 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_524); +x_536 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_536, 0, x_524); +lean_ctor_set(x_536, 1, x_535); +lean_ctor_set(x_536, 2, x_534); +x_537 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_524); +if (lean_is_scalar(x_529)) { + x_538 = lean_alloc_ctor(2, 2, 0); +} else { + x_538 = x_529; + lean_ctor_set_tag(x_538, 2); +} +lean_ctor_set(x_538, 0, x_524); +lean_ctor_set(x_538, 1, x_537); +x_539 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_525); +lean_inc(x_531); +x_540 = l_Lean_addMacroScope(x_531, x_539, x_525); +x_541 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_542 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_524); +x_543 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_543, 0, x_524); +lean_ctor_set(x_543, 1, x_541); +lean_ctor_set(x_543, 2, x_540); +lean_ctor_set(x_543, 3, x_542); +lean_inc(x_524); +x_544 = l_Lean_Syntax_node1(x_524, x_535, x_511); +x_545 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_524); +x_546 = l_Lean_Syntax_node2(x_524, x_545, x_543, x_544); +x_547 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_524); +x_548 = l_Lean_Syntax_node2(x_524, x_547, x_538, x_546); +lean_inc(x_524); +x_549 = l_Lean_Syntax_node1(x_524, x_535, x_548); +x_550 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_524); +if (lean_is_scalar(x_518)) { + x_551 = lean_alloc_ctor(2, 2, 0); +} else { + x_551 = x_518; + lean_ctor_set_tag(x_551, 2); +} +lean_ctor_set(x_551, 0, x_524); +lean_ctor_set(x_551, 1, x_550); +x_552 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_524); +if (lean_is_scalar(x_513)) { + x_553 = lean_alloc_ctor(2, 2, 0); +} else { + x_553 = x_513; + lean_ctor_set_tag(x_553, 2); +} +lean_ctor_set(x_553, 0, x_524); +lean_ctor_set(x_553, 1, x_552); +lean_inc(x_524); +x_554 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_554, 0, x_524); +lean_ctor_set(x_554, 1, x_535); +lean_ctor_set(x_554, 2, x_533); +x_555 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_525); +lean_inc(x_531); +x_556 = l_Lean_addMacroScope(x_531, x_555, x_525); +x_557 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_558 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_524); +x_559 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_559, 0, x_524); +lean_ctor_set(x_559, 1, x_557); +lean_ctor_set(x_559, 2, x_556); +lean_ctor_set(x_559, 3, x_558); +x_560 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_554); +lean_inc(x_524); +x_561 = l_Lean_Syntax_node2(x_524, x_560, x_559, x_554); +x_562 = lean_mk_syntax_ident(x_488); +x_563 = l_Array_append___rarg(x_533, x_2); +lean_inc(x_524); +x_564 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_564, 0, x_524); +lean_ctor_set(x_564, 1, x_535); +lean_ctor_set(x_564, 2, x_563); +lean_inc(x_524); +x_565 = l_Lean_Syntax_node2(x_524, x_545, x_562, x_564); +x_566 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_551); +lean_inc(x_524); +x_567 = l_Lean_Syntax_node2(x_524, x_566, x_551, x_565); +lean_inc_n(x_554, 2); +lean_inc(x_524); +x_568 = l_Lean_Syntax_node3(x_524, x_535, x_554, x_554, x_567); +x_569 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_524); +x_570 = l_Lean_Syntax_node2(x_524, x_569, x_561, x_568); +x_571 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_524); +if (lean_is_scalar(x_502)) { + x_572 = lean_alloc_ctor(2, 2, 0); +} else { + x_572 = x_502; + lean_ctor_set_tag(x_572, 2); +} +lean_ctor_set(x_572, 0, x_524); +lean_ctor_set(x_572, 1, x_571); +x_573 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_574 = l_Lean_addMacroScope(x_531, x_573, x_525); +x_575 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_576 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_524); +x_577 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_577, 0, x_524); +lean_ctor_set(x_577, 1, x_575); +lean_ctor_set(x_577, 2, x_574); +lean_ctor_set(x_577, 3, x_576); +lean_inc(x_554); +lean_inc(x_524); +x_578 = l_Lean_Syntax_node2(x_524, x_560, x_577, x_554); +lean_inc(x_551); +lean_inc(x_524); +x_579 = l_Lean_Syntax_node2(x_524, x_566, x_551, x_520); +lean_inc_n(x_554, 2); +lean_inc(x_524); +x_580 = l_Lean_Syntax_node3(x_524, x_535, x_554, x_554, x_579); +lean_inc(x_524); +x_581 = l_Lean_Syntax_node2(x_524, x_569, x_578, x_580); +lean_inc(x_524); +x_582 = l_Lean_Syntax_node3(x_524, x_535, x_570, x_572, x_581); +x_583 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_524); +x_584 = l_Lean_Syntax_node1(x_524, x_583, x_582); +x_585 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_554); +lean_inc(x_524); +x_586 = l_Lean_Syntax_node1(x_524, x_585, x_554); +x_587 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_524); +x_588 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_588, 0, x_524); +lean_ctor_set(x_588, 1, x_587); +x_589 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_554); +lean_inc(x_524); +x_590 = l_Lean_Syntax_node6(x_524, x_589, x_553, x_554, x_584, x_586, x_554, x_588); +x_591 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_524); +x_592 = l_Lean_Syntax_node5(x_524, x_591, x_532, x_536, x_549, x_551, x_590); +x_593 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_594 = l_Lean_Syntax_node1(x_524, x_593, x_592); +x_595 = lean_array_push(x_30, x_594); +lean_ctor_set(x_8, 1, x_595); +lean_ctor_set(x_8, 0, x_491); +x_596 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_596, 0, x_8); +x_19 = x_596; +x_20 = x_528; +goto block_27; +} +else +{ +lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +lean_dec(x_518); +lean_dec(x_516); +lean_dec(x_513); +lean_dec(x_511); +lean_dec(x_502); +lean_dec(x_500); +lean_dec(x_491); +lean_dec(x_488); +lean_free_object(x_8); +lean_dec(x_30); +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(x_1); +x_597 = lean_ctor_get(x_519, 0); +lean_inc(x_597); +x_598 = lean_ctor_get(x_519, 1); +lean_inc(x_598); +if (lean_is_exclusive(x_519)) { + lean_ctor_release(x_519, 0); + lean_ctor_release(x_519, 1); + x_599 = x_519; +} else { + lean_dec_ref(x_519); + x_599 = lean_box(0); +} +if (lean_is_scalar(x_599)) { + x_600 = lean_alloc_ctor(1, 2, 0); +} else { + x_600 = x_599; +} +lean_ctor_set(x_600, 0, x_597); +lean_ctor_set(x_600, 1, x_598); +return x_600; +} +} +else +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; +lean_dec(x_491); +lean_dec(x_488); +lean_free_object(x_8); +lean_dec(x_30); +lean_dec(x_18); +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(x_1); +x_601 = lean_ctor_get(x_492, 0); +lean_inc(x_601); +x_602 = lean_ctor_get(x_492, 1); +lean_inc(x_602); +if (lean_is_exclusive(x_492)) { + lean_ctor_release(x_492, 0); + lean_ctor_release(x_492, 1); + x_603 = x_492; +} else { + lean_dec_ref(x_492); + x_603 = lean_box(0); +} +if (lean_is_scalar(x_603)) { + x_604 = lean_alloc_ctor(1, 2, 0); +} else { + x_604 = x_603; +} +lean_ctor_set(x_604, 0, x_601); +lean_ctor_set(x_604, 1, x_602); +return x_604; +} +} +} +} +else +{ +lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; uint8_t x_610; +x_605 = lean_ctor_get(x_8, 0); +x_606 = lean_ctor_get(x_8, 1); +lean_inc(x_606); +lean_inc(x_605); +lean_dec(x_8); +x_607 = lean_ctor_get(x_605, 0); +lean_inc(x_607); +x_608 = lean_ctor_get(x_605, 1); +lean_inc(x_608); +x_609 = lean_ctor_get(x_605, 2); +lean_inc(x_609); +x_610 = lean_nat_dec_lt(x_608, x_609); +if (x_610 == 0) +{ +lean_object* x_611; lean_object* x_612; +lean_dec(x_609); +lean_dec(x_608); +lean_dec(x_607); +lean_dec(x_18); +x_611 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_611, 0, x_605); +lean_ctor_set(x_611, 1, x_606); +x_612 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_612, 0, x_611); +x_19 = x_612; +x_20 = x_15; +goto block_27; +} +else +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; +if (lean_is_exclusive(x_605)) { + lean_ctor_release(x_605, 0); + lean_ctor_release(x_605, 1); + lean_ctor_release(x_605, 2); + x_613 = x_605; +} else { + lean_dec_ref(x_605); + x_613 = lean_box(0); +} +x_614 = lean_array_fget(x_607, x_608); +x_615 = lean_unsigned_to_nat(1u); +x_616 = lean_nat_add(x_608, x_615); +lean_dec(x_608); +if (lean_is_scalar(x_613)) { + x_617 = lean_alloc_ctor(0, 3, 0); +} else { + x_617 = x_613; +} +lean_ctor_set(x_617, 0, x_607); +lean_ctor_set(x_617, 1, x_616); +lean_ctor_set(x_617, 2, x_609); +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_18); +x_618 = l_Lean_Elab_Deriving_mkInductArgNames(x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_618) == 0) +{ +lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_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; +x_619 = lean_ctor_get(x_618, 0); +lean_inc(x_619); +x_620 = lean_ctor_get(x_618, 1); +lean_inc(x_620); +lean_dec(x_618); +x_621 = lean_ctor_get(x_18, 1); +lean_inc(x_621); +x_622 = lean_array_get_size(x_619); +lean_inc(x_621); +x_623 = l_Array_toSubarray___rarg(x_619, x_621, x_622); +x_624 = l_Array_ofSubarray___rarg(x_623); +lean_dec(x_623); +lean_inc(x_624); +x_625 = l_Lean_Elab_Deriving_mkImplicitBinders(x_624, x_9, x_10, x_11, x_12, x_13, x_14, x_620); +x_626 = lean_ctor_get(x_625, 0); +lean_inc(x_626); +x_627 = lean_ctor_get(x_625, 1); +lean_inc(x_627); +if (lean_is_exclusive(x_625)) { + lean_ctor_release(x_625, 0); + lean_ctor_release(x_625, 1); + x_628 = x_625; +} else { + lean_dec_ref(x_625); + x_628 = lean_box(0); +} +x_629 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_630 = l_Array_toSubarray___rarg(x_1, x_629, x_621); +x_631 = l_Array_ofSubarray___rarg(x_630); +lean_dec(x_630); +x_632 = l_Array_append___rarg(x_631, x_624); +lean_dec(x_624); +x_633 = lean_array_get_size(x_632); +x_634 = l_Array_toSubarray___rarg(x_632, x_629, x_633); +x_635 = l_Array_ofSubarray___rarg(x_634); +lean_dec(x_634); +lean_inc(x_18); +x_636 = l_Lean_Elab_Deriving_mkInductiveApp(x_18, x_635, x_9, x_10, x_11, x_12, x_13, x_14, x_627); +x_637 = lean_ctor_get(x_636, 0); +lean_inc(x_637); +x_638 = lean_ctor_get(x_636, 1); +lean_inc(x_638); +if (lean_is_exclusive(x_636)) { + lean_ctor_release(x_636, 0); + lean_ctor_release(x_636, 1); + x_639 = x_636; +} else { + lean_dec_ref(x_636); + x_639 = lean_box(0); +} +x_640 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2; +x_641 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_640, x_13, x_14, x_638); +x_642 = lean_ctor_get(x_641, 0); +lean_inc(x_642); +x_643 = lean_ctor_get(x_641, 1); +lean_inc(x_643); +if (lean_is_exclusive(x_641)) { + lean_ctor_release(x_641, 0); + lean_ctor_release(x_641, 1); + x_644 = x_641; +} else { + lean_dec_ref(x_641); + x_644 = lean_box(0); +} +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_1); +x_645 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_18, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_643); +if (lean_obj_tag(x_645) == 0) +{ +lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 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_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_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; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; +x_646 = lean_ctor_get(x_645, 0); +lean_inc(x_646); +x_647 = lean_ctor_get(x_645, 1); +lean_inc(x_647); +lean_dec(x_645); +x_648 = lean_ctor_get(x_13, 5); +lean_inc(x_648); +x_649 = 0; +x_650 = l_Lean_SourceInfo_fromRef(x_648, x_649); +lean_dec(x_648); +x_651 = lean_ctor_get(x_13, 10); +lean_inc(x_651); +x_652 = lean_st_ref_get(x_14, x_647); +x_653 = lean_ctor_get(x_652, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_652, 1); +lean_inc(x_654); +if (lean_is_exclusive(x_652)) { + lean_ctor_release(x_652, 0); + lean_ctor_release(x_652, 1); + x_655 = x_652; +} else { + lean_dec_ref(x_652); + x_655 = lean_box(0); +} +x_656 = lean_ctor_get(x_653, 0); +lean_inc(x_656); +lean_dec(x_653); +x_657 = lean_environment_main_module(x_656); +x_658 = lean_mk_syntax_ident(x_642); +x_659 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_660 = l_Array_append___rarg(x_659, x_626); +lean_dec(x_626); +x_661 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_650); +x_662 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_662, 0, x_650); +lean_ctor_set(x_662, 1, x_661); +lean_ctor_set(x_662, 2, x_660); +x_663 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_650); +if (lean_is_scalar(x_655)) { + x_664 = lean_alloc_ctor(2, 2, 0); +} else { + x_664 = x_655; + lean_ctor_set_tag(x_664, 2); +} +lean_ctor_set(x_664, 0, x_650); +lean_ctor_set(x_664, 1, x_663); +x_665 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_651); +lean_inc(x_657); +x_666 = l_Lean_addMacroScope(x_657, x_665, x_651); +x_667 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_668 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_650); +x_669 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_669, 0, x_650); +lean_ctor_set(x_669, 1, x_667); +lean_ctor_set(x_669, 2, x_666); +lean_ctor_set(x_669, 3, x_668); +lean_inc(x_650); +x_670 = l_Lean_Syntax_node1(x_650, x_661, x_637); +x_671 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_650); +x_672 = l_Lean_Syntax_node2(x_650, x_671, x_669, x_670); +x_673 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_650); +x_674 = l_Lean_Syntax_node2(x_650, x_673, x_664, x_672); +lean_inc(x_650); +x_675 = l_Lean_Syntax_node1(x_650, x_661, x_674); +x_676 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_650); +if (lean_is_scalar(x_644)) { + x_677 = lean_alloc_ctor(2, 2, 0); +} else { + x_677 = x_644; + lean_ctor_set_tag(x_677, 2); +} +lean_ctor_set(x_677, 0, x_650); +lean_ctor_set(x_677, 1, x_676); +x_678 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28; +lean_inc(x_650); +if (lean_is_scalar(x_639)) { + x_679 = lean_alloc_ctor(2, 2, 0); +} else { + x_679 = x_639; + lean_ctor_set_tag(x_679, 2); +} +lean_ctor_set(x_679, 0, x_650); +lean_ctor_set(x_679, 1, x_678); +lean_inc(x_650); +x_680 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_680, 0, x_650); +lean_ctor_set(x_680, 1, x_661); +lean_ctor_set(x_680, 2, x_659); +x_681 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_651); +lean_inc(x_657); +x_682 = l_Lean_addMacroScope(x_657, x_681, x_651); +x_683 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_684 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_650); +x_685 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_685, 0, x_650); +lean_ctor_set(x_685, 1, x_683); +lean_ctor_set(x_685, 2, x_682); +lean_ctor_set(x_685, 3, x_684); +x_686 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_680); +lean_inc(x_650); +x_687 = l_Lean_Syntax_node2(x_650, x_686, x_685, x_680); +x_688 = lean_mk_syntax_ident(x_614); +x_689 = l_Array_append___rarg(x_659, x_2); +lean_inc(x_650); +x_690 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_690, 0, x_650); +lean_ctor_set(x_690, 1, x_661); +lean_ctor_set(x_690, 2, x_689); +lean_inc(x_650); +x_691 = l_Lean_Syntax_node2(x_650, x_671, x_688, x_690); +x_692 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_677); +lean_inc(x_650); +x_693 = l_Lean_Syntax_node2(x_650, x_692, x_677, x_691); +lean_inc_n(x_680, 2); +lean_inc(x_650); +x_694 = l_Lean_Syntax_node3(x_650, x_661, x_680, x_680, x_693); +x_695 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_650); +x_696 = l_Lean_Syntax_node2(x_650, x_695, x_687, x_694); +x_697 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13; +lean_inc(x_650); +if (lean_is_scalar(x_628)) { + x_698 = lean_alloc_ctor(2, 2, 0); +} else { + x_698 = x_628; + lean_ctor_set_tag(x_698, 2); +} +lean_ctor_set(x_698, 0, x_650); +lean_ctor_set(x_698, 1, x_697); +x_699 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_700 = l_Lean_addMacroScope(x_657, x_699, x_651); +x_701 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_702 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_650); +x_703 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_703, 0, x_650); +lean_ctor_set(x_703, 1, x_701); +lean_ctor_set(x_703, 2, x_700); +lean_ctor_set(x_703, 3, x_702); +lean_inc(x_680); +lean_inc(x_650); +x_704 = l_Lean_Syntax_node2(x_650, x_686, x_703, x_680); +lean_inc(x_677); +lean_inc(x_650); +x_705 = l_Lean_Syntax_node2(x_650, x_692, x_677, x_646); +lean_inc_n(x_680, 2); +lean_inc(x_650); +x_706 = l_Lean_Syntax_node3(x_650, x_661, x_680, x_680, x_705); +lean_inc(x_650); +x_707 = l_Lean_Syntax_node2(x_650, x_695, x_704, x_706); +lean_inc(x_650); +x_708 = l_Lean_Syntax_node3(x_650, x_661, x_696, x_698, x_707); +x_709 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_650); +x_710 = l_Lean_Syntax_node1(x_650, x_709, x_708); +x_711 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42; +lean_inc(x_680); +lean_inc(x_650); +x_712 = l_Lean_Syntax_node1(x_650, x_711, x_680); +x_713 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_650); +x_714 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_714, 0, x_650); +lean_ctor_set(x_714, 1, x_713); +x_715 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27; +lean_inc(x_680); +lean_inc(x_650); +x_716 = l_Lean_Syntax_node6(x_650, x_715, x_679, x_680, x_710, x_712, x_680, x_714); +x_717 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6; +lean_inc(x_650); +x_718 = l_Lean_Syntax_node5(x_650, x_717, x_658, x_662, x_675, x_677, x_716); +x_719 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4; +x_720 = l_Lean_Syntax_node1(x_650, x_719, x_718); +x_721 = lean_array_push(x_606, x_720); +x_722 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_722, 0, x_617); +lean_ctor_set(x_722, 1, x_721); +x_723 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_723, 0, x_722); +x_19 = x_723; +x_20 = x_654; +goto block_27; +} +else +{ +lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; +lean_dec(x_644); +lean_dec(x_642); +lean_dec(x_639); +lean_dec(x_637); +lean_dec(x_628); +lean_dec(x_626); +lean_dec(x_617); +lean_dec(x_614); +lean_dec(x_606); +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(x_1); +x_724 = lean_ctor_get(x_645, 0); +lean_inc(x_724); +x_725 = lean_ctor_get(x_645, 1); +lean_inc(x_725); +if (lean_is_exclusive(x_645)) { + lean_ctor_release(x_645, 0); + lean_ctor_release(x_645, 1); + x_726 = x_645; +} else { + lean_dec_ref(x_645); + x_726 = lean_box(0); +} +if (lean_is_scalar(x_726)) { + x_727 = lean_alloc_ctor(1, 2, 0); +} else { + x_727 = x_726; +} +lean_ctor_set(x_727, 0, x_724); +lean_ctor_set(x_727, 1, x_725); +return x_727; +} +} +else +{ +lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; +lean_dec(x_617); +lean_dec(x_614); +lean_dec(x_606); +lean_dec(x_18); +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(x_1); +x_728 = lean_ctor_get(x_618, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_618, 1); +lean_inc(x_729); +if (lean_is_exclusive(x_618)) { + lean_ctor_release(x_618, 0); + lean_ctor_release(x_618, 1); + x_730 = x_618; +} else { + lean_dec_ref(x_618); + x_730 = lean_box(0); +} +if (lean_is_scalar(x_730)) { + x_731 = lean_alloc_ctor(1, 2, 0); +} else { + x_731 = x_730; +} +lean_ctor_set(x_731, 0, x_728); +lean_ctor_set(x_731, 1, x_729); +return x_731; +} +} +} +block_27: +{ +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_21; lean_object* x_22; +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(x_1); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(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; +} +else +{ +lean_object* x_23; size_t x_24; size_t x_25; +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +lean_dec(x_19); +x_24 = 1; +x_25 = lean_usize_add(x_7, x_24); +x_7 = x_25; +x_8 = x_23; +x_15 = x_20; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; size_t x_19; size_t x_20; lean_object* x_21; +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +x_12 = lean_array_get_size(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_toSubarray___rarg(x_11, x_13, x_12); +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +lean_dec(x_1); +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_14); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_array_size(x_15); +x_20 = 0; +x_21 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1(x_2, x_3, x_15, x_16, x_15, x_19, x_20, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_15); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_21); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +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; +x_29 = !lean_is_exclusive(x_21); +if (x_29 == 0) +{ +return x_21; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_21, 0); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_21); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___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: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_17 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___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_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_11; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("inst", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("explicitBinder", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("(", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10; +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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(")", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1(size_t 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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_2, x_1); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +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_array_uget(x_3, x_2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_uset(x_3, x_2, x_14); +x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2; +x_17 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_16, x_8, x_9, x_10); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_mk_syntax_ident(x_19); +x_22 = lean_ctor_get(x_8, 5); +lean_inc(x_22); +x_23 = 0; +x_24 = l_Lean_SourceInfo_fromRef(x_22, x_23); +lean_dec(x_22); +x_25 = lean_ctor_get(x_8, 10); +lean_inc(x_25); +x_26 = lean_st_ref_get(x_9, x_20); +x_27 = !lean_is_exclusive(x_26); +if (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; 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; size_t x_57; size_t x_58; lean_object* x_59; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_environment_main_module(x_30); +x_32 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +lean_inc(x_24); +lean_ctor_set_tag(x_26, 2); +lean_ctor_set(x_26, 1, x_32); +lean_ctor_set(x_26, 0, x_24); +x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_21); +lean_inc(x_24); +x_34 = l_Lean_Syntax_node1(x_24, x_33, x_21); +x_35 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_24); +lean_ctor_set_tag(x_17, 2); +lean_ctor_set(x_17, 1, x_35); +lean_ctor_set(x_17, 0, x_24); +x_36 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_37 = l_Lean_addMacroScope(x_31, x_36, x_25); +x_38 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_39 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_24); +x_40 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_40, 0, x_24); +lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 2, x_37); +lean_ctor_set(x_40, 3, x_39); +x_41 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_24); +x_42 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_42, 0, x_24); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_mk_syntax_ident(x_13); +lean_inc(x_24); +x_44 = l_Lean_Syntax_node1(x_24, x_33, x_43); +x_45 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_24); +x_46 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_46, 0, x_24); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_24); +x_48 = l_Lean_Syntax_node4(x_24, x_47, x_40, x_42, x_44, x_46); +lean_inc(x_24); +x_49 = l_Lean_Syntax_node2(x_24, x_33, x_17, x_48); +x_50 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_24); +x_51 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_51, 0, x_24); +lean_ctor_set(x_51, 1, x_33); +lean_ctor_set(x_51, 2, x_50); +x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +lean_inc(x_24); +x_53 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_53, 0, x_24); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4; +x_55 = l_Lean_Syntax_node5(x_24, x_54, x_26, x_34, x_49, x_51, x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_21); +lean_ctor_set(x_56, 1, x_55); +x_57 = 1; +x_58 = lean_usize_add(x_2, x_57); +x_59 = lean_array_uset(x_15, x_2, x_56); +x_2 = x_58; +x_3 = x_59; +x_10 = x_29; +goto _start; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; size_t x_91; size_t x_92; lean_object* x_93; +x_61 = lean_ctor_get(x_26, 0); +x_62 = lean_ctor_get(x_26, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_26); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +lean_dec(x_61); +x_64 = lean_environment_main_module(x_63); +x_65 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +lean_inc(x_24); +x_66 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_66, 0, x_24); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_21); +lean_inc(x_24); +x_68 = l_Lean_Syntax_node1(x_24, x_67, x_21); +x_69 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_24); +lean_ctor_set_tag(x_17, 2); +lean_ctor_set(x_17, 1, x_69); +lean_ctor_set(x_17, 0, x_24); +x_70 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_71 = l_Lean_addMacroScope(x_64, x_70, x_25); +x_72 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_73 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_24); +x_74 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_74, 0, x_24); +lean_ctor_set(x_74, 1, x_72); +lean_ctor_set(x_74, 2, x_71); +lean_ctor_set(x_74, 3, x_73); +x_75 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_24); +x_76 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_76, 0, x_24); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_mk_syntax_ident(x_13); +lean_inc(x_24); +x_78 = l_Lean_Syntax_node1(x_24, x_67, x_77); +x_79 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_24); +x_80 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_80, 0, x_24); +lean_ctor_set(x_80, 1, x_79); +x_81 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_24); +x_82 = l_Lean_Syntax_node4(x_24, x_81, x_74, x_76, x_78, x_80); +lean_inc(x_24); +x_83 = l_Lean_Syntax_node2(x_24, x_67, x_17, x_82); +x_84 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_24); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_24); +lean_ctor_set(x_85, 1, x_67); +lean_ctor_set(x_85, 2, x_84); +x_86 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +lean_inc(x_24); +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_24); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4; +x_89 = l_Lean_Syntax_node5(x_24, x_88, x_66, x_68, x_83, x_85, x_87); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_21); +lean_ctor_set(x_90, 1, x_89); +x_91 = 1; +x_92 = lean_usize_add(x_2, x_91); +x_93 = lean_array_uset(x_15, x_2, x_90); +x_2 = x_92; +x_3 = x_93; +x_10 = x_62; +goto _start; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t 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; size_t x_135; size_t x_136; lean_object* x_137; +x_95 = lean_ctor_get(x_17, 0); +x_96 = lean_ctor_get(x_17, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_17); +x_97 = lean_mk_syntax_ident(x_95); +x_98 = lean_ctor_get(x_8, 5); +lean_inc(x_98); +x_99 = 0; +x_100 = l_Lean_SourceInfo_fromRef(x_98, x_99); +lean_dec(x_98); +x_101 = lean_ctor_get(x_8, 10); +lean_inc(x_101); +x_102 = lean_st_ref_get(x_9, x_96); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; +} else { + lean_dec_ref(x_102); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_103, 0); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_environment_main_module(x_106); +x_108 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +lean_inc(x_100); +if (lean_is_scalar(x_105)) { + x_109 = lean_alloc_ctor(2, 2, 0); +} else { + x_109 = x_105; + lean_ctor_set_tag(x_109, 2); +} +lean_ctor_set(x_109, 0, x_100); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_97); +lean_inc(x_100); +x_111 = l_Lean_Syntax_node1(x_100, x_110, x_97); +x_112 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_100); +x_113 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_113, 0, x_100); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_115 = l_Lean_addMacroScope(x_107, x_114, x_101); +x_116 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_117 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_100); +x_118 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_118, 0, x_100); +lean_ctor_set(x_118, 1, x_116); +lean_ctor_set(x_118, 2, x_115); +lean_ctor_set(x_118, 3, x_117); +x_119 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_100); +x_120 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_120, 0, x_100); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_mk_syntax_ident(x_13); +lean_inc(x_100); +x_122 = l_Lean_Syntax_node1(x_100, x_110, x_121); +x_123 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_100); +x_124 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_124, 0, x_100); +lean_ctor_set(x_124, 1, x_123); +x_125 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_100); +x_126 = l_Lean_Syntax_node4(x_100, x_125, x_118, x_120, x_122, x_124); +lean_inc(x_100); +x_127 = l_Lean_Syntax_node2(x_100, x_110, x_113, x_126); +x_128 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_100); +x_129 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_129, 0, x_100); +lean_ctor_set(x_129, 1, x_110); +lean_ctor_set(x_129, 2, x_128); +x_130 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +lean_inc(x_100); +x_131 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_131, 0, x_100); +lean_ctor_set(x_131, 1, x_130); +x_132 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4; +x_133 = l_Lean_Syntax_node5(x_100, x_132, x_109, x_111, x_127, x_129, x_131); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_97); +lean_ctor_set(x_134, 1, x_133); +x_135 = 1; +x_136 = lean_usize_add(x_2, x_135); +x_137 = lean_array_uset(x_15, x_2, x_134); +x_2 = x_136; +x_3 = x_137; +x_10 = x_104; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2(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; size_t x_8; size_t x_9; lean_object* x_10; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_10 = lean_array_uset(x_7, x_2, x_5); +x_2 = x_9; +x_3 = x_10; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__3(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_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +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_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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) { +_start: +{ +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_6, 5); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_12, 1, x_18); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_12); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_12, 1, x_19); +lean_ctor_set(x_12, 0, x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(1, 2, 0); +} else { + x_29 = x_27; + lean_ctor_set_tag(x_29, 1); +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("bracketedBinder", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Command", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declaration", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declModifiers", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("private", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("definition", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("def", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declId", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_2 = l_String_toSubstring_x27(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22; +x_2 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21; +x_2 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declValSimple", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Termination", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("suffix", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("partial", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("(internal error) expecting inst binder", 38, 38); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_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; uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_16 = lean_box(0); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_dec(x_1); +x_18 = lean_box(0); +x_19 = l_Array_back_x21___rarg(x_18, x_17); +x_20 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4; +lean_inc(x_19); +x_21 = l_Lean_Syntax_isOfKind(x_19, x_20); +if (x_21 == 0) +{ +lean_object* x_228; lean_object* x_229; uint8_t x_230; +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_228 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34; +x_229 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(x_228, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_13); +x_230 = !lean_is_exclusive(x_229); +if (x_230 == 0) +{ +return x_229; +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_229, 0); +x_232 = lean_ctor_get(x_229, 1); +lean_inc(x_232); +lean_inc(x_231); +lean_dec(x_229); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +return x_233; +} +} +else +{ +lean_object* x_234; lean_object* x_235; uint8_t x_236; +x_234 = lean_unsigned_to_nat(1u); +x_235 = l_Lean_Syntax_getArg(x_19, x_234); +lean_inc(x_235); +x_236 = l_Lean_Syntax_matchesNull(x_235, x_234); +if (x_236 == 0) +{ +lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_dec(x_235); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_237 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34; +x_238 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(x_237, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_13); +x_239 = !lean_is_exclusive(x_238); +if (x_239 == 0) +{ +return x_238; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_238, 0); +x_241 = lean_ctor_get(x_238, 1); +lean_inc(x_241); +lean_inc(x_240); +lean_dec(x_238); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_241); +return x_242; +} +} +else +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_243 = lean_unsigned_to_nat(0u); +x_244 = l_Lean_Syntax_getArg(x_235, x_243); +lean_dec(x_235); +x_245 = lean_unsigned_to_nat(2u); +x_246 = l_Lean_Syntax_getArg(x_19, x_245); +lean_inc(x_246); +x_247 = l_Lean_Syntax_matchesNull(x_246, x_245); +if (x_247 == 0) +{ +lean_object* x_248; lean_object* x_249; uint8_t x_250; +lean_dec(x_246); +lean_dec(x_244); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_248 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34; +x_249 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(x_248, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_13); +x_250 = !lean_is_exclusive(x_249); +if (x_250 == 0) +{ +return x_249; +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_249, 0); +x_252 = lean_ctor_get(x_249, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_249); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; +} +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; +x_254 = l_Lean_Syntax_getArg(x_246, x_234); +lean_dec(x_246); +x_255 = lean_unsigned_to_nat(3u); +x_256 = l_Lean_Syntax_getArg(x_19, x_255); +lean_dec(x_19); +x_257 = l_Lean_Syntax_matchesNull(x_256, x_243); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; uint8_t x_260; +lean_dec(x_254); +lean_dec(x_244); +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_258 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34; +x_259 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(x_258, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_13); +x_260 = !lean_is_exclusive(x_259); +if (x_260 == 0) +{ +return x_259; +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_259, 0); +x_262 = lean_ctor_get(x_259, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_259); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +return x_263; +} +} +else +{ +lean_object* x_264; +x_264 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_6, x_254, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); +x_267 = lean_ctor_get(x_13, 5); +lean_inc(x_267); +x_268 = 0; +x_269 = l_Lean_SourceInfo_fromRef(x_267, x_268); +lean_dec(x_267); +x_270 = lean_st_ref_get(x_14, x_266); +x_271 = !lean_is_exclusive(x_270); +if (x_271 == 0) +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_272 = lean_ctor_get(x_270, 1); +x_273 = lean_ctor_get(x_270, 0); +lean_dec(x_273); +x_274 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +lean_inc(x_269); +lean_ctor_set_tag(x_270, 2); +lean_ctor_set(x_270, 1, x_274); +lean_ctor_set(x_270, 0, x_269); +x_275 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_269); +x_276 = l_Lean_Syntax_node1(x_269, x_275, x_244); +x_277 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_269); +x_278 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_278, 0, x_269); +lean_ctor_set(x_278, 1, x_277); +lean_inc(x_269); +x_279 = l_Lean_Syntax_node2(x_269, x_275, x_278, x_265); +x_280 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_269); +x_281 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_281, 0, x_269); +lean_ctor_set(x_281, 1, x_275); +lean_ctor_set(x_281, 2, x_280); +x_282 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +lean_inc(x_269); +x_283 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_283, 0, x_269); +lean_ctor_set(x_283, 1, x_282); +x_284 = l_Lean_Syntax_node5(x_269, x_20, x_270, x_276, x_279, x_281, x_283); +x_22 = x_284; +x_23 = x_272; +goto block_227; +} +else +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_285 = lean_ctor_get(x_270, 1); +lean_inc(x_285); +lean_dec(x_270); +x_286 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5; +lean_inc(x_269); +x_287 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_287, 0, x_269); +lean_ctor_set(x_287, 1, x_286); +x_288 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_269); +x_289 = l_Lean_Syntax_node1(x_269, x_288, x_244); +x_290 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_269); +x_291 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_291, 0, x_269); +lean_ctor_set(x_291, 1, x_290); +lean_inc(x_269); +x_292 = l_Lean_Syntax_node2(x_269, x_288, x_291, x_265); +x_293 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_269); +x_294 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_294, 0, x_269); +lean_ctor_set(x_294, 1, x_288); +lean_ctor_set(x_294, 2, x_293); +x_295 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14; +lean_inc(x_269); +x_296 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_296, 0, x_269); +lean_ctor_set(x_296, 1, x_295); +x_297 = l_Lean_Syntax_node5(x_269, x_20, x_287, x_289, x_292, x_294, x_296); +x_22 = x_297; +x_23 = x_285; +goto block_227; +} +} +else +{ +uint8_t x_298; +lean_dec(x_244); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_5); +x_298 = !lean_is_exclusive(x_264); +if (x_298 == 0) +{ +return x_264; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_264, 0); +x_300 = lean_ctor_get(x_264, 1); +lean_inc(x_300); +lean_inc(x_299); +lean_dec(x_264); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +return x_301; +} +} +} +} +} +} +block_227: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_24 = lean_array_pop(x_17); +x_25 = l_Array_append___rarg(x_24, x_2); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_16); +x_27 = lean_array_mk(x_26); +x_28 = lean_array_size(x_27); +x_29 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3; +x_30 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__3(x_29, x_28, x_3, x_27); +x_31 = l_Array_append___rarg(x_25, x_30); +lean_dec(x_30); +x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*2); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_33 = lean_ctor_get(x_13, 5); +lean_inc(x_33); +x_34 = 0; +x_35 = l_Lean_SourceInfo_fromRef(x_33, x_34); +lean_dec(x_33); +x_36 = lean_ctor_get(x_13, 10); +lean_inc(x_36); +lean_dec(x_13); +x_37 = lean_st_ref_get(x_14, x_23); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +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; +x_39 = lean_ctor_get(x_37, 0); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_environment_main_module(x_40); +x_42 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_43 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_35); +x_44 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_44, 0, x_35); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 2, x_43); +x_45 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +lean_inc(x_35); +x_46 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10; +lean_inc(x_35); +x_48 = l_Lean_Syntax_node1(x_35, x_47, x_46); +lean_inc(x_35); +x_49 = l_Lean_Syntax_node1(x_35, x_42, x_48); +x_50 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_44, 5); +lean_inc(x_35); +x_51 = l_Lean_Syntax_node6(x_35, x_50, x_44, x_44, x_49, x_44, x_44, x_44); +x_52 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13; +lean_inc(x_35); +x_53 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_53, 0, x_35); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_mk_syntax_ident(x_5); +x_55 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15; +lean_inc(x_44); +lean_inc(x_35); +x_56 = l_Lean_Syntax_node2(x_35, x_55, x_54, x_44); +x_57 = l_Array_append___rarg(x_43, x_31); +lean_dec(x_31); +lean_inc(x_35); +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_35); +lean_ctor_set(x_58, 1, x_42); +lean_ctor_set(x_58, 2, x_57); +x_59 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_35); +x_60 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_60, 0, x_35); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19; +x_62 = l_Lean_addMacroScope(x_41, x_61, x_36); +x_63 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18; +x_64 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25; +lean_inc(x_35); +x_65 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_65, 0, x_35); +lean_ctor_set(x_65, 1, x_63); +lean_ctor_set(x_65, 2, x_62); +lean_ctor_set(x_65, 3, x_64); +x_66 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_35); +x_67 = l_Lean_Syntax_node2(x_35, x_66, x_60, x_65); +lean_inc(x_35); +x_68 = l_Lean_Syntax_node1(x_35, x_42, x_67); +x_69 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17; +lean_inc(x_35); +x_70 = l_Lean_Syntax_node2(x_35, x_69, x_58, x_68); +x_71 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_35); +x_72 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_72, 0, x_35); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30; +lean_inc_n(x_44, 2); +lean_inc(x_35); +x_74 = l_Lean_Syntax_node2(x_35, x_73, x_44, x_44); +x_75 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27; +lean_inc(x_44); +lean_inc(x_35); +x_76 = l_Lean_Syntax_node4(x_35, x_75, x_72, x_7, x_74, x_44); +x_77 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12; +lean_inc(x_35); +x_78 = l_Lean_Syntax_node5(x_35, x_77, x_53, x_56, x_70, x_76, x_44); +x_79 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_80 = l_Lean_Syntax_node2(x_35, x_79, x_51, x_78); +lean_ctor_set(x_37, 0, x_80); +return x_37; +} +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; 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; +x_81 = lean_ctor_get(x_37, 0); +x_82 = lean_ctor_get(x_37, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_37); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_environment_main_module(x_83); +x_85 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_86 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_35); +x_87 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_87, 0, x_35); +lean_ctor_set(x_87, 1, x_85); +lean_ctor_set(x_87, 2, x_86); +x_88 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +lean_inc(x_35); +x_89 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_89, 0, x_35); +lean_ctor_set(x_89, 1, x_88); +x_90 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10; +lean_inc(x_35); +x_91 = l_Lean_Syntax_node1(x_35, x_90, x_89); +lean_inc(x_35); +x_92 = l_Lean_Syntax_node1(x_35, x_85, x_91); +x_93 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_87, 5); +lean_inc(x_35); +x_94 = l_Lean_Syntax_node6(x_35, x_93, x_87, x_87, x_92, x_87, x_87, x_87); +x_95 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13; +lean_inc(x_35); +x_96 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_96, 0, x_35); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_mk_syntax_ident(x_5); +x_98 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15; +lean_inc(x_87); +lean_inc(x_35); +x_99 = l_Lean_Syntax_node2(x_35, x_98, x_97, x_87); +x_100 = l_Array_append___rarg(x_86, x_31); +lean_dec(x_31); +lean_inc(x_35); +x_101 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_101, 0, x_35); +lean_ctor_set(x_101, 1, x_85); +lean_ctor_set(x_101, 2, x_100); +x_102 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_35); +x_103 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_103, 0, x_35); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19; +x_105 = l_Lean_addMacroScope(x_84, x_104, x_36); +x_106 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18; +x_107 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25; +lean_inc(x_35); +x_108 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_108, 0, x_35); +lean_ctor_set(x_108, 1, x_106); +lean_ctor_set(x_108, 2, x_105); +lean_ctor_set(x_108, 3, x_107); +x_109 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_35); +x_110 = l_Lean_Syntax_node2(x_35, x_109, x_103, x_108); +lean_inc(x_35); +x_111 = l_Lean_Syntax_node1(x_35, x_85, x_110); +x_112 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17; +lean_inc(x_35); +x_113 = l_Lean_Syntax_node2(x_35, x_112, x_101, x_111); +x_114 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_35); +x_115 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_115, 0, x_35); +lean_ctor_set(x_115, 1, x_114); +x_116 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30; +lean_inc_n(x_87, 2); +lean_inc(x_35); +x_117 = l_Lean_Syntax_node2(x_35, x_116, x_87, x_87); +x_118 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27; +lean_inc(x_87); +lean_inc(x_35); +x_119 = l_Lean_Syntax_node4(x_35, x_118, x_115, x_7, x_117, x_87); +x_120 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12; +lean_inc(x_35); +x_121 = l_Lean_Syntax_node5(x_35, x_120, x_96, x_99, x_113, x_119, x_87); +x_122 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_123 = l_Lean_Syntax_node2(x_35, x_122, x_94, x_121); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_82); +return x_124; +} +} +else +{ +lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; +x_125 = lean_ctor_get(x_13, 5); +lean_inc(x_125); +x_126 = 0; +x_127 = l_Lean_SourceInfo_fromRef(x_125, x_126); +lean_dec(x_125); +x_128 = lean_ctor_get(x_13, 10); +lean_inc(x_128); +lean_dec(x_13); +x_129 = lean_st_ref_get(x_14, x_23); +x_130 = !lean_is_exclusive(x_129); +if (x_130 == 0) +{ +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; +x_131 = lean_ctor_get(x_129, 0); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_environment_main_module(x_132); +x_134 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_135 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_127); +x_136 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_136, 0, x_127); +lean_ctor_set(x_136, 1, x_134); +lean_ctor_set(x_136, 2, x_135); +x_137 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +lean_inc(x_127); +x_138 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_138, 0, x_127); +lean_ctor_set(x_138, 1, x_137); +x_139 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10; +lean_inc(x_127); +x_140 = l_Lean_Syntax_node1(x_127, x_139, x_138); +lean_inc(x_127); +x_141 = l_Lean_Syntax_node1(x_127, x_134, x_140); +x_142 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31; +lean_inc(x_127); +x_143 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_143, 0, x_127); +lean_ctor_set(x_143, 1, x_142); +x_144 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32; +lean_inc(x_127); +x_145 = l_Lean_Syntax_node1(x_127, x_144, x_143); +lean_inc(x_127); +x_146 = l_Lean_Syntax_node1(x_127, x_134, x_145); +x_147 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_136, 4); +lean_inc(x_127); +x_148 = l_Lean_Syntax_node6(x_127, x_147, x_136, x_136, x_141, x_136, x_136, x_146); +x_149 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13; +lean_inc(x_127); +x_150 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_mk_syntax_ident(x_5); +x_152 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15; +lean_inc(x_136); +lean_inc(x_127); +x_153 = l_Lean_Syntax_node2(x_127, x_152, x_151, x_136); +x_154 = l_Array_append___rarg(x_135, x_31); +lean_dec(x_31); +lean_inc(x_127); +x_155 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_155, 0, x_127); +lean_ctor_set(x_155, 1, x_134); +lean_ctor_set(x_155, 2, x_154); +x_156 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_127); +x_157 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_157, 0, x_127); +lean_ctor_set(x_157, 1, x_156); +x_158 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19; +x_159 = l_Lean_addMacroScope(x_133, x_158, x_128); +x_160 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18; +x_161 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25; +lean_inc(x_127); +x_162 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_162, 0, x_127); +lean_ctor_set(x_162, 1, x_160); +lean_ctor_set(x_162, 2, x_159); +lean_ctor_set(x_162, 3, x_161); +x_163 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_127); +x_164 = l_Lean_Syntax_node2(x_127, x_163, x_157, x_162); +lean_inc(x_127); +x_165 = l_Lean_Syntax_node1(x_127, x_134, x_164); +x_166 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17; +lean_inc(x_127); +x_167 = l_Lean_Syntax_node2(x_127, x_166, x_155, x_165); +x_168 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_127); +x_169 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_169, 0, x_127); +lean_ctor_set(x_169, 1, x_168); +x_170 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30; +lean_inc_n(x_136, 2); +lean_inc(x_127); +x_171 = l_Lean_Syntax_node2(x_127, x_170, x_136, x_136); +x_172 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27; +lean_inc(x_136); +lean_inc(x_127); +x_173 = l_Lean_Syntax_node4(x_127, x_172, x_169, x_7, x_171, x_136); +x_174 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12; +lean_inc(x_127); +x_175 = l_Lean_Syntax_node5(x_127, x_174, x_150, x_153, x_167, x_173, x_136); +x_176 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_177 = l_Lean_Syntax_node2(x_127, x_176, x_148, x_175); +lean_ctor_set(x_129, 0, x_177); +return x_129; +} +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; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_178 = lean_ctor_get(x_129, 0); +x_179 = lean_ctor_get(x_129, 1); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_129); +x_180 = lean_ctor_get(x_178, 0); +lean_inc(x_180); +lean_dec(x_178); +x_181 = lean_environment_main_module(x_180); +x_182 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_183 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_127); +x_184 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_184, 0, x_127); +lean_ctor_set(x_184, 1, x_182); +lean_ctor_set(x_184, 2, x_183); +x_185 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9; +lean_inc(x_127); +x_186 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_186, 0, x_127); +lean_ctor_set(x_186, 1, x_185); +x_187 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10; +lean_inc(x_127); +x_188 = l_Lean_Syntax_node1(x_127, x_187, x_186); +lean_inc(x_127); +x_189 = l_Lean_Syntax_node1(x_127, x_182, x_188); +x_190 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31; +lean_inc(x_127); +x_191 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_191, 0, x_127); +lean_ctor_set(x_191, 1, x_190); +x_192 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32; +lean_inc(x_127); +x_193 = l_Lean_Syntax_node1(x_127, x_192, x_191); +lean_inc(x_127); +x_194 = l_Lean_Syntax_node1(x_127, x_182, x_193); +x_195 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_184, 4); +lean_inc(x_127); +x_196 = l_Lean_Syntax_node6(x_127, x_195, x_184, x_184, x_189, x_184, x_184, x_194); +x_197 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13; +lean_inc(x_127); +x_198 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_198, 0, x_127); +lean_ctor_set(x_198, 1, x_197); +x_199 = lean_mk_syntax_ident(x_5); +x_200 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15; +lean_inc(x_184); +lean_inc(x_127); +x_201 = l_Lean_Syntax_node2(x_127, x_200, x_199, x_184); +x_202 = l_Array_append___rarg(x_183, x_31); +lean_dec(x_31); +lean_inc(x_127); +x_203 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_203, 0, x_127); +lean_ctor_set(x_203, 1, x_182); +lean_ctor_set(x_203, 2, x_202); +x_204 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_127); +x_205 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_205, 0, x_127); +lean_ctor_set(x_205, 1, x_204); +x_206 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19; +x_207 = l_Lean_addMacroScope(x_181, x_206, x_128); +x_208 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18; +x_209 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25; +lean_inc(x_127); +x_210 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_210, 0, x_127); +lean_ctor_set(x_210, 1, x_208); +lean_ctor_set(x_210, 2, x_207); +lean_ctor_set(x_210, 3, x_209); +x_211 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_127); +x_212 = l_Lean_Syntax_node2(x_127, x_211, x_205, x_210); +lean_inc(x_127); +x_213 = l_Lean_Syntax_node1(x_127, x_182, x_212); +x_214 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17; +lean_inc(x_127); +x_215 = l_Lean_Syntax_node2(x_127, x_214, x_203, x_213); +x_216 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_127); +x_217 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_217, 0, x_127); +lean_ctor_set(x_217, 1, x_216); +x_218 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30; +lean_inc_n(x_184, 2); +lean_inc(x_127); +x_219 = l_Lean_Syntax_node2(x_127, x_218, x_184, x_184); +x_220 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27; +lean_inc(x_184); +lean_inc(x_127); +x_221 = l_Lean_Syntax_node4(x_127, x_220, x_217, x_7, x_219, x_184); +x_222 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12; +lean_inc(x_127); +x_223 = l_Lean_Syntax_node5(x_127, x_222, x_198, x_201, x_215, x_221, x_184); +x_224 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_225 = l_Lean_Syntax_node2(x_127, x_224, x_196, x_223); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_179); +return x_226; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_array_get_size(x_10); +x_12 = lean_nat_dec_lt(x_2, x_11); +lean_dec(x_11); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +x_14 = lean_array_get_size(x_13); +x_15 = lean_nat_dec_lt(x_2, x_14); +lean_dec(x_14); +if (x_12 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_10); +x_70 = l_Lean_instInhabitedName; +x_71 = l_outOfBounds___rarg(x_70); +x_16 = x_71; +goto block_69; +} +else +{ +lean_object* x_72; +x_72 = lean_array_fget(x_10, x_2); +lean_dec(x_10); +x_16 = x_72; +goto block_69; +} +block_69: +{ +lean_object* x_17; +if (x_15 == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_13); +x_66 = l_Lean_instInhabitedInductiveVal; +x_67 = l_outOfBounds___rarg(x_66); +x_17 = x_67; +goto block_65; +} +else +{ +lean_object* x_68; +x_68 = lean_array_fget(x_13, x_2); +lean_dec(x_13); +x_17 = x_68; +goto block_65; +} +block_65: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +x_19 = lean_unsigned_to_nat(1u); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_17); +x_20 = l_Lean_Elab_Deriving_mkHeader(x_18, x_19, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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; size_t x_26; size_t 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; size_t x_34; lean_object* x_35; lean_object* x_36; +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(x_20); +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_array_mk(x_24); +x_26 = lean_array_size(x_25); +x_27 = 0; +lean_inc(x_7); +x_28 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1(x_26, x_27, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +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(x_28); +x_31 = l_Array_unzip___rarg(x_29); +lean_dec(x_29); +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(x_31); +x_34 = lean_array_size(x_32); +x_35 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2(x_34, x_27, x_32); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_35); +lean_inc(x_16); +lean_inc(x_17); +lean_inc(x_21); +x_36 = l_Lean_Elab_Deriving_ToExpr_mkToExprBody(x_21, x_17, x_16, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_36) == 0) +{ +uint8_t x_37; +x_37 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_35); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_box(0); +x_41 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1(x_21, x_33, x_27, x_1, x_16, x_17, x_38, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +lean_dec(x_33); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +lean_dec(x_36); +x_44 = lean_ctor_get(x_21, 1); +lean_inc(x_44); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_45 = l_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls(x_1, x_44, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_43); +lean_dec(x_35); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +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(x_45); +x_48 = l_Lean_Elab_Deriving_mkLet(x_46, x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_47); +lean_dec(x_46); +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(x_48); +x_51 = lean_box(0); +x_52 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1(x_21, x_33, x_27, x_1, x_16, x_17, x_49, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_50); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +lean_dec(x_33); +return x_52; +} +else +{ +uint8_t x_53; +lean_dec(x_42); +lean_dec(x_33); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +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_1); +x_53 = !lean_is_exclusive(x_45); +if (x_53 == 0) +{ +return x_45; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_45, 0); +x_55 = lean_ctor_get(x_45, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_45); +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_57; +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +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_1); +x_57 = !lean_is_exclusive(x_36); +if (x_57 == 0) +{ +return x_36; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_36, 0); +x_59 = lean_ctor_get(x_36, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_36); +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 +{ +uint8_t x_61; +lean_dec(x_17); +lean_dec(x_16); +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_1); +x_61 = !lean_is_exclusive(x_20); +if (x_61 == 0) +{ +return x_20; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_20, 0); +x_63 = lean_ctor_get(x_20, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_20); +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; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__2(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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; 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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__3(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; lean_object* x_17; +x_16 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_17 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1(x_1, x_2, x_16, 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_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___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: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_3, 1); +x_16 = lean_nat_dec_lt(x_5, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_4); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +else +{ +lean_object* x_18; +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_1); +x_18 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction(x_1, x_5, x_8, x_9, x_10, x_11, x_12, x_13, 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(x_18); +x_21 = lean_array_push(x_4, x_19); +x_22 = lean_ctor_get(x_3, 2); +x_23 = lean_nat_add(x_5, x_22); +lean_dec(x_5); +x_4 = x_21; +x_5 = x_23; +x_6 = lean_box(0); +x_7 = lean_box(0); +x_14 = x_20; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +return x_18; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_18); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("mutual", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("end", 3, 3); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions(lean_object* x_1, lean_object* x_2, 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; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_array_get_size(x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_10); +lean_ctor_set(x_13, 2, x_12); +x_14 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +lean_inc(x_7); +lean_inc(x_6); +x_15 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___spec__1(x_1, x_13, x_13, x_14, x_11, lean_box(0), lean_box(0), x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +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(x_15); +x_18 = lean_ctor_get(x_6, 5); +lean_inc(x_18); +lean_dec(x_6); +x_19 = 0; +x_20 = l_Lean_SourceInfo_fromRef(x_18, x_19); +lean_dec(x_18); +x_21 = lean_st_ref_get(x_7, x_17); +lean_dec(x_7); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1; +lean_inc(x_20); +x_25 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_27 = l_Array_append___rarg(x_26, x_16); +lean_dec(x_16); +x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_20); +x_29 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_29, 0, x_20); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_29, 2, x_27); +x_30 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3; +lean_inc(x_20); +x_31 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2; +x_33 = l_Lean_Syntax_node3(x_20, x_32, x_25, x_29, x_31); +lean_ctor_set(x_21, 0, x_33); +return x_21; +} +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; +x_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); +lean_dec(x_21); +x_35 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1; +lean_inc(x_20); +x_36 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_36, 0, x_20); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +x_38 = l_Array_append___rarg(x_37, x_16); +lean_dec(x_16); +x_39 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_20); +x_40 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_40, 0, x_20); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_40, 2, x_38); +x_41 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3; +lean_inc(x_20); +x_42 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_42, 0, x_20); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2; +x_44 = l_Lean_Syntax_node3(x_20, x_43, x_36, x_40, x_42); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_34); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_7); +lean_dec(x_6); +x_46 = !lean_is_exclusive(x_15); +if (x_46 == 0) +{ +return x_15; +} +else +{ +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_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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___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); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instBinder", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_3, x_2); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +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_14 = lean_array_uget(x_4, x_3); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_uset(x_4, x_3, x_15); +x_17 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2; +x_18 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_17, x_9, x_10, x_11); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +x_22 = lean_mk_syntax_ident(x_20); +x_23 = lean_ctor_get(x_9, 5); +lean_inc(x_23); +x_24 = 0; +x_25 = l_Lean_SourceInfo_fromRef(x_23, x_24); +lean_dec(x_23); +x_26 = lean_ctor_get(x_9, 10); +lean_inc(x_26); +x_27 = lean_st_ref_get(x_10, x_21); +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; 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; size_t x_55; size_t x_56; lean_object* x_57; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_environment_main_module(x_31); +x_33 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_25); +lean_ctor_set_tag(x_27, 2); +lean_ctor_set(x_27, 1, x_33); +lean_ctor_set(x_27, 0, x_25); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_25); +lean_ctor_set_tag(x_18, 2); +lean_ctor_set(x_18, 1, x_34); +lean_ctor_set(x_18, 0, x_25); +x_35 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_22); +lean_inc(x_25); +x_36 = l_Lean_Syntax_node2(x_25, x_35, x_22, x_18); +x_37 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_38 = l_Lean_addMacroScope(x_32, x_37, x_26); +x_39 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_40 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_25); +x_41 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_41, 0, x_25); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_38); +lean_ctor_set(x_41, 3, x_40); +x_42 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_25); +x_43 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_43, 0, x_25); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_mk_syntax_ident(x_14); +lean_inc(x_25); +x_45 = l_Lean_Syntax_node1(x_25, x_35, x_44); +x_46 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_25); +x_47 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_47, 0, x_25); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_25); +x_49 = l_Lean_Syntax_node4(x_25, x_48, x_41, x_43, x_45, x_47); +x_50 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_25); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_25); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2; +x_53 = l_Lean_Syntax_node4(x_25, x_52, x_27, x_36, x_49, x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_22); +lean_ctor_set(x_54, 1, x_53); +x_55 = 1; +x_56 = lean_usize_add(x_3, x_55); +x_57 = lean_array_uset(x_16, x_3, x_54); +x_3 = x_56; +x_4 = x_57; +x_11 = x_30; +goto _start; +} +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; 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; size_t x_86; size_t x_87; lean_object* x_88; +x_59 = lean_ctor_get(x_27, 0); +x_60 = lean_ctor_get(x_27, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_27); +x_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_environment_main_module(x_61); +x_63 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_25); +x_64 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_64, 0, x_25); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_25); +lean_ctor_set_tag(x_18, 2); +lean_ctor_set(x_18, 1, x_65); +lean_ctor_set(x_18, 0, x_25); +x_66 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_22); +lean_inc(x_25); +x_67 = l_Lean_Syntax_node2(x_25, x_66, x_22, x_18); +x_68 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_69 = l_Lean_addMacroScope(x_62, x_68, x_26); +x_70 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_71 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_25); +x_72 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_72, 0, x_25); +lean_ctor_set(x_72, 1, x_70); +lean_ctor_set(x_72, 2, x_69); +lean_ctor_set(x_72, 3, x_71); +x_73 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_25); +x_74 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_74, 0, x_25); +lean_ctor_set(x_74, 1, x_73); +x_75 = lean_mk_syntax_ident(x_14); +lean_inc(x_25); +x_76 = l_Lean_Syntax_node1(x_25, x_66, x_75); +x_77 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_25); +x_78 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_78, 0, x_25); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_25); +x_80 = l_Lean_Syntax_node4(x_25, x_79, x_72, x_74, x_76, x_78); +x_81 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_25); +x_82 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_82, 0, x_25); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2; +x_84 = l_Lean_Syntax_node4(x_25, x_83, x_64, x_67, x_80, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_22); +lean_ctor_set(x_85, 1, x_84); +x_86 = 1; +x_87 = lean_usize_add(x_3, x_86); +x_88 = lean_array_uset(x_16, x_3, x_85); +x_3 = x_87; +x_4 = x_88; +x_11 = x_60; +goto _start; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t 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; size_t x_127; size_t x_128; lean_object* x_129; +x_90 = lean_ctor_get(x_18, 0); +x_91 = lean_ctor_get(x_18, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_18); +x_92 = lean_mk_syntax_ident(x_90); +x_93 = lean_ctor_get(x_9, 5); +lean_inc(x_93); +x_94 = 0; +x_95 = l_Lean_SourceInfo_fromRef(x_93, x_94); +lean_dec(x_93); +x_96 = lean_ctor_get(x_9, 10); +lean_inc(x_96); +x_97 = lean_st_ref_get(x_10, x_91); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; +} else { + lean_dec_ref(x_97); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +lean_dec(x_98); +x_102 = lean_environment_main_module(x_101); +x_103 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14; +lean_inc(x_95); +if (lean_is_scalar(x_100)) { + x_104 = lean_alloc_ctor(2, 2, 0); +} else { + x_104 = x_100; + lean_ctor_set_tag(x_104, 2); +} +lean_ctor_set(x_104, 0, x_95); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_95); +x_106 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_106, 0, x_95); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +lean_inc(x_92); +lean_inc(x_95); +x_108 = l_Lean_Syntax_node2(x_95, x_107, x_92, x_106); +x_109 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7; +x_110 = l_Lean_addMacroScope(x_102, x_109, x_96); +x_111 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6; +x_112 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13; +lean_inc(x_95); +x_113 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_113, 0, x_95); +lean_ctor_set(x_113, 1, x_111); +lean_ctor_set(x_113, 2, x_110); +lean_ctor_set(x_113, 3, x_112); +x_114 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8; +lean_inc(x_95); +x_115 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_115, 0, x_95); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_mk_syntax_ident(x_14); +lean_inc(x_95); +x_117 = l_Lean_Syntax_node1(x_95, x_107, x_116); +x_118 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14; +lean_inc(x_95); +x_119 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_119, 0, x_95); +lean_ctor_set(x_119, 1, x_118); +x_120 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7; +lean_inc(x_95); +x_121 = l_Lean_Syntax_node4(x_95, x_120, x_113, x_115, x_117, x_119); +x_122 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15; +lean_inc(x_95); +x_123 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_123, 0, x_95); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2; +x_125 = l_Lean_Syntax_node4(x_95, x_124, x_104, x_108, x_121, x_123); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_92); +lean_ctor_set(x_126, 1, x_125); +x_127 = 1; +x_128 = lean_usize_add(x_3, x_127); +x_129 = lean_array_uset(x_16, x_3, x_126); +x_3 = x_128; +x_4 = x_129; +x_11 = x_99; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(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_lt(x_3, x_2); +if (x_5 == 0) +{ +return x_4; +} +else +{ +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_6 = lean_array_uget(x_4, x_3); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_4, x_3, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_11 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_10; +x_4 = x_11; +goto _start; +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instance", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("attrKind", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__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_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("declSig", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("whereStructInst", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2; +x_3 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("where", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___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; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_6, x_5); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_27; +x_17 = lean_array_uget(x_4, x_6); +x_27 = !lean_is_exclusive(x_7); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_28 = lean_ctor_get(x_7, 0); +x_29 = lean_ctor_get(x_7, 1); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_28, 2); +lean_inc(x_32); +x_33 = lean_nat_dec_lt(x_31, x_32); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_17); +x_34 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_34, 0, x_7); +x_18 = x_34; +x_19 = x_14; +goto block_26; +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_28); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_36 = lean_ctor_get(x_28, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_28, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_28, 0); +lean_dec(x_38); +x_39 = lean_array_fget(x_30, x_31); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_31, x_40); +lean_dec(x_31); +lean_ctor_set(x_28, 1, x_41); +x_42 = lean_ctor_get(x_17, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_1, x_43); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_17); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_7); +x_18 = x_45; +x_19 = x_14; +goto block_26; +} +else +{ +lean_object* x_46; +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_17); +x_46 = l_Lean_Elab_Deriving_mkInductArgNames(x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_46) == 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; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +lean_inc(x_47); +x_49 = l_Lean_Elab_Deriving_mkImplicitBinders(x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_48); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +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_47); +lean_inc(x_17); +x_53 = l_Lean_Elab_Deriving_mkInstImplicitBinders(x_52, x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; lean_object* x_62; uint8_t x_63; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_box(0); +x_57 = l_Array_append___rarg(x_50, x_54); +lean_dec(x_54); +x_58 = lean_ctor_get(x_42, 1); +lean_inc(x_58); +lean_dec(x_42); +x_59 = lean_array_mk(x_58); +x_60 = lean_array_size(x_59); +x_61 = 0; +lean_inc(x_12); +x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(x_56, x_60, x_61, x_59, x_8, x_9, x_10, x_11, x_12, x_13, x_55); +x_63 = !lean_is_exclusive(x_62); +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_62, 0); +x_65 = lean_ctor_get(x_62, 1); +x_66 = l_Array_unzip___rarg(x_64); +lean_dec(x_64); +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; uint8_t x_72; +x_68 = lean_ctor_get(x_66, 0); +x_69 = lean_ctor_get(x_66, 1); +x_70 = l_Array_append___rarg(x_57, x_69); +lean_dec(x_69); +lean_inc(x_47); +lean_inc(x_17); +x_71 = l_Lean_Elab_Deriving_mkInductiveApp(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_65); +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 0); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_8); +lean_inc(x_17); +x_75 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_73, x_8, x_9, x_10, x_11, x_12, x_13, x_74); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_78 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_77); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_ctor_get(x_12, 5); +lean_inc(x_81); +x_82 = 0; +x_83 = l_Lean_SourceInfo_fromRef(x_81, x_82); +lean_dec(x_81); +x_84 = lean_ctor_get(x_12, 10); +lean_inc(x_84); +x_85 = lean_st_ref_get(x_13, x_80); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 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; size_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 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; +x_87 = lean_ctor_get(x_85, 0); +x_88 = lean_ctor_get(x_85, 1); +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +lean_dec(x_87); +x_90 = lean_environment_main_module(x_89); +x_91 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_92 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_83); +x_93 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_93, 0, x_83); +lean_ctor_set(x_93, 1, x_91); +lean_ctor_set(x_93, 2, x_92); +x_94 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_93, 6); +lean_inc(x_83); +x_95 = l_Lean_Syntax_node6(x_83, x_94, x_93, x_93, x_93, x_93, x_93, x_93); +x_96 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_93); +lean_inc(x_83); +x_97 = l_Lean_Syntax_node1(x_83, x_96, x_93); +x_98 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_83); +lean_ctor_set_tag(x_85, 2); +lean_ctor_set(x_85, 1, x_98); +lean_ctor_set(x_85, 0, x_83); +x_99 = l_Array_append___rarg(x_92, x_70); +lean_dec(x_70); +lean_inc(x_83); +x_100 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_100, 0, x_83); +lean_ctor_set(x_100, 1, x_91); +lean_ctor_set(x_100, 2, x_99); +x_101 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_83); +lean_ctor_set_tag(x_71, 2); +lean_ctor_set(x_71, 1, x_101); +lean_ctor_set(x_71, 0, x_83); +x_102 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_84); +lean_inc(x_90); +x_103 = l_Lean_addMacroScope(x_90, x_102, x_84); +x_104 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_105 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_83); +x_106 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_106, 0, x_83); +lean_ctor_set(x_106, 1, x_104); +lean_ctor_set(x_106, 2, x_103); +lean_ctor_set(x_106, 3, x_105); +lean_inc(x_83); +x_107 = l_Lean_Syntax_node1(x_83, x_91, x_76); +x_108 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_83); +x_109 = l_Lean_Syntax_node2(x_83, x_108, x_106, x_107); +x_110 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_83); +x_111 = l_Lean_Syntax_node2(x_83, x_110, x_71, x_109); +x_112 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_83); +x_113 = l_Lean_Syntax_node2(x_83, x_112, x_100, x_111); +x_114 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_83); +lean_ctor_set_tag(x_66, 2); +lean_ctor_set(x_66, 1, x_114); +lean_ctor_set(x_66, 0, x_83); +x_115 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_84); +lean_inc(x_90); +x_116 = l_Lean_addMacroScope(x_90, x_115, x_84); +x_117 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_118 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_83); +x_119 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_119, 0, x_83); +lean_ctor_set(x_119, 1, x_117); +lean_ctor_set(x_119, 2, x_116); +lean_ctor_set(x_119, 3, x_118); +x_120 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_93); +lean_inc(x_83); +x_121 = l_Lean_Syntax_node2(x_83, x_120, x_119, x_93); +x_122 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_83); +lean_ctor_set_tag(x_62, 2); +lean_ctor_set(x_62, 1, x_122); +lean_ctor_set(x_62, 0, x_83); +x_123 = lean_mk_syntax_ident(x_39); +x_124 = lean_array_size(x_68); +x_125 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_126 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_125, x_124, x_61, x_68); +x_127 = l_Array_append___rarg(x_92, x_126); +lean_dec(x_126); +lean_inc(x_83); +x_128 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_128, 0, x_83); +lean_ctor_set(x_128, 1, x_91); +lean_ctor_set(x_128, 2, x_127); +lean_inc(x_83); +x_129 = l_Lean_Syntax_node2(x_83, x_108, x_123, x_128); +x_130 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_62); +lean_inc(x_83); +x_131 = l_Lean_Syntax_node2(x_83, x_130, x_62, x_129); +lean_inc_n(x_93, 2); +lean_inc(x_83); +x_132 = l_Lean_Syntax_node3(x_83, x_91, x_93, x_93, x_131); +x_133 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_83); +x_134 = l_Lean_Syntax_node2(x_83, x_133, x_121, x_132); +x_135 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_136 = l_Lean_addMacroScope(x_90, x_135, x_84); +x_137 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_138 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_83); +x_139 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_139, 0, x_83); +lean_ctor_set(x_139, 1, x_137); +lean_ctor_set(x_139, 2, x_136); +lean_ctor_set(x_139, 3, x_138); +lean_inc(x_93); +lean_inc(x_83); +x_140 = l_Lean_Syntax_node2(x_83, x_120, x_139, x_93); +lean_inc(x_83); +x_141 = l_Lean_Syntax_node2(x_83, x_130, x_62, x_79); +lean_inc_n(x_93, 2); +lean_inc(x_83); +x_142 = l_Lean_Syntax_node3(x_83, x_91, x_93, x_93, x_141); +lean_inc(x_83); +x_143 = l_Lean_Syntax_node2(x_83, x_133, x_140, x_142); +lean_inc(x_93); +lean_inc(x_83); +x_144 = l_Lean_Syntax_node3(x_83, x_91, x_134, x_93, x_143); +x_145 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_83); +x_146 = l_Lean_Syntax_node1(x_83, x_145, x_144); +x_147 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_93); +lean_inc(x_83); +x_148 = l_Lean_Syntax_node3(x_83, x_147, x_66, x_146, x_93); +x_149 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_93); +lean_inc(x_83); +x_150 = l_Lean_Syntax_node6(x_83, x_149, x_97, x_85, x_93, x_93, x_113, x_148); +x_151 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_152 = l_Lean_Syntax_node2(x_83, x_151, x_95, x_150); +x_153 = lean_array_push(x_29, x_152); +lean_ctor_set(x_7, 1, x_153); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_7); +x_18 = x_154; +x_19 = x_88; +goto block_26; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; size_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; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_155 = lean_ctor_get(x_85, 0); +x_156 = lean_ctor_get(x_85, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_85); +x_157 = lean_ctor_get(x_155, 0); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_environment_main_module(x_157); +x_159 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_160 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_83); +x_161 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_161, 0, x_83); +lean_ctor_set(x_161, 1, x_159); +lean_ctor_set(x_161, 2, x_160); +x_162 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_161, 6); +lean_inc(x_83); +x_163 = l_Lean_Syntax_node6(x_83, x_162, x_161, x_161, x_161, x_161, x_161, x_161); +x_164 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_161); +lean_inc(x_83); +x_165 = l_Lean_Syntax_node1(x_83, x_164, x_161); +x_166 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_83); +x_167 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_167, 0, x_83); +lean_ctor_set(x_167, 1, x_166); +x_168 = l_Array_append___rarg(x_160, x_70); +lean_dec(x_70); +lean_inc(x_83); +x_169 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_169, 0, x_83); +lean_ctor_set(x_169, 1, x_159); +lean_ctor_set(x_169, 2, x_168); +x_170 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_83); +lean_ctor_set_tag(x_71, 2); +lean_ctor_set(x_71, 1, x_170); +lean_ctor_set(x_71, 0, x_83); +x_171 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_84); +lean_inc(x_158); +x_172 = l_Lean_addMacroScope(x_158, x_171, x_84); +x_173 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_174 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_83); +x_175 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_175, 0, x_83); +lean_ctor_set(x_175, 1, x_173); +lean_ctor_set(x_175, 2, x_172); +lean_ctor_set(x_175, 3, x_174); +lean_inc(x_83); +x_176 = l_Lean_Syntax_node1(x_83, x_159, x_76); +x_177 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_83); +x_178 = l_Lean_Syntax_node2(x_83, x_177, x_175, x_176); +x_179 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_83); +x_180 = l_Lean_Syntax_node2(x_83, x_179, x_71, x_178); +x_181 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_83); +x_182 = l_Lean_Syntax_node2(x_83, x_181, x_169, x_180); +x_183 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_83); +lean_ctor_set_tag(x_66, 2); +lean_ctor_set(x_66, 1, x_183); +lean_ctor_set(x_66, 0, x_83); +x_184 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_84); +lean_inc(x_158); +x_185 = l_Lean_addMacroScope(x_158, x_184, x_84); +x_186 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_187 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_83); +x_188 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_188, 0, x_83); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_185); +lean_ctor_set(x_188, 3, x_187); +x_189 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_161); +lean_inc(x_83); +x_190 = l_Lean_Syntax_node2(x_83, x_189, x_188, x_161); +x_191 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_83); +lean_ctor_set_tag(x_62, 2); +lean_ctor_set(x_62, 1, x_191); +lean_ctor_set(x_62, 0, x_83); +x_192 = lean_mk_syntax_ident(x_39); +x_193 = lean_array_size(x_68); +x_194 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_195 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_194, x_193, x_61, x_68); +x_196 = l_Array_append___rarg(x_160, x_195); +lean_dec(x_195); +lean_inc(x_83); +x_197 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_197, 0, x_83); +lean_ctor_set(x_197, 1, x_159); +lean_ctor_set(x_197, 2, x_196); +lean_inc(x_83); +x_198 = l_Lean_Syntax_node2(x_83, x_177, x_192, x_197); +x_199 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_62); +lean_inc(x_83); +x_200 = l_Lean_Syntax_node2(x_83, x_199, x_62, x_198); +lean_inc_n(x_161, 2); +lean_inc(x_83); +x_201 = l_Lean_Syntax_node3(x_83, x_159, x_161, x_161, x_200); +x_202 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_83); +x_203 = l_Lean_Syntax_node2(x_83, x_202, x_190, x_201); +x_204 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_205 = l_Lean_addMacroScope(x_158, x_204, x_84); +x_206 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_207 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_83); +x_208 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_208, 0, x_83); +lean_ctor_set(x_208, 1, x_206); +lean_ctor_set(x_208, 2, x_205); +lean_ctor_set(x_208, 3, x_207); +lean_inc(x_161); +lean_inc(x_83); +x_209 = l_Lean_Syntax_node2(x_83, x_189, x_208, x_161); +lean_inc(x_83); +x_210 = l_Lean_Syntax_node2(x_83, x_199, x_62, x_79); +lean_inc_n(x_161, 2); +lean_inc(x_83); +x_211 = l_Lean_Syntax_node3(x_83, x_159, x_161, x_161, x_210); +lean_inc(x_83); +x_212 = l_Lean_Syntax_node2(x_83, x_202, x_209, x_211); +lean_inc(x_161); +lean_inc(x_83); +x_213 = l_Lean_Syntax_node3(x_83, x_159, x_203, x_161, x_212); +x_214 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_83); +x_215 = l_Lean_Syntax_node1(x_83, x_214, x_213); +x_216 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_161); +lean_inc(x_83); +x_217 = l_Lean_Syntax_node3(x_83, x_216, x_66, x_215, x_161); +x_218 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_161); +lean_inc(x_83); +x_219 = l_Lean_Syntax_node6(x_83, x_218, x_165, x_167, x_161, x_161, x_182, x_217); +x_220 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_221 = l_Lean_Syntax_node2(x_83, x_220, x_163, x_219); +x_222 = lean_array_push(x_29, x_221); +lean_ctor_set(x_7, 1, x_222); +x_223 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_223, 0, x_7); +x_18 = x_223; +x_19 = x_156; +goto block_26; +} +} +else +{ +uint8_t x_224; +lean_dec(x_76); +lean_free_object(x_71); +lean_dec(x_70); +lean_free_object(x_66); +lean_dec(x_68); +lean_free_object(x_62); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_224 = !lean_is_exclusive(x_78); +if (x_224 == 0) +{ +return x_78; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_78, 0); +x_226 = lean_ctor_get(x_78, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_78); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; +} +} +} +else +{ +uint8_t x_228; +lean_free_object(x_71); +lean_dec(x_70); +lean_free_object(x_66); +lean_dec(x_68); +lean_free_object(x_62); +lean_dec(x_47); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_228 = !lean_is_exclusive(x_75); +if (x_228 == 0) +{ +return x_75; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_75, 0); +x_230 = lean_ctor_get(x_75, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_75); +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 +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_71, 0); +x_233 = lean_ctor_get(x_71, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_71); +lean_inc(x_8); +lean_inc(x_17); +x_234 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_232, x_8, x_9, x_10, x_11, x_12, x_13, x_233); +if (lean_obj_tag(x_234) == 0) +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +lean_dec(x_234); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_237 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_236); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; size_t x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = lean_ctor_get(x_12, 5); +lean_inc(x_240); +x_241 = 0; +x_242 = l_Lean_SourceInfo_fromRef(x_240, x_241); +lean_dec(x_240); +x_243 = lean_ctor_get(x_12, 10); +lean_inc(x_243); +x_244 = lean_st_ref_get(x_13, x_239); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_247 = x_244; +} else { + lean_dec_ref(x_244); + x_247 = lean_box(0); +} +x_248 = lean_ctor_get(x_245, 0); +lean_inc(x_248); +lean_dec(x_245); +x_249 = lean_environment_main_module(x_248); +x_250 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_251 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_242); +x_252 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_252, 0, x_242); +lean_ctor_set(x_252, 1, x_250); +lean_ctor_set(x_252, 2, x_251); +x_253 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_252, 6); +lean_inc(x_242); +x_254 = l_Lean_Syntax_node6(x_242, x_253, x_252, x_252, x_252, x_252, x_252, x_252); +x_255 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_252); +lean_inc(x_242); +x_256 = l_Lean_Syntax_node1(x_242, x_255, x_252); +x_257 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_242); +if (lean_is_scalar(x_247)) { + x_258 = lean_alloc_ctor(2, 2, 0); +} else { + x_258 = x_247; + lean_ctor_set_tag(x_258, 2); +} +lean_ctor_set(x_258, 0, x_242); +lean_ctor_set(x_258, 1, x_257); +x_259 = l_Array_append___rarg(x_251, x_70); +lean_dec(x_70); +lean_inc(x_242); +x_260 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_260, 0, x_242); +lean_ctor_set(x_260, 1, x_250); +lean_ctor_set(x_260, 2, x_259); +x_261 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_242); +x_262 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_262, 0, x_242); +lean_ctor_set(x_262, 1, x_261); +x_263 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_243); +lean_inc(x_249); +x_264 = l_Lean_addMacroScope(x_249, x_263, x_243); +x_265 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_266 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_242); +x_267 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_267, 0, x_242); +lean_ctor_set(x_267, 1, x_265); +lean_ctor_set(x_267, 2, x_264); +lean_ctor_set(x_267, 3, x_266); +lean_inc(x_242); +x_268 = l_Lean_Syntax_node1(x_242, x_250, x_235); +x_269 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_242); +x_270 = l_Lean_Syntax_node2(x_242, x_269, x_267, x_268); +x_271 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_242); +x_272 = l_Lean_Syntax_node2(x_242, x_271, x_262, x_270); +x_273 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_242); +x_274 = l_Lean_Syntax_node2(x_242, x_273, x_260, x_272); +x_275 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_242); +lean_ctor_set_tag(x_66, 2); +lean_ctor_set(x_66, 1, x_275); +lean_ctor_set(x_66, 0, x_242); +x_276 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_243); +lean_inc(x_249); +x_277 = l_Lean_addMacroScope(x_249, x_276, x_243); +x_278 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_279 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_242); +x_280 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_280, 0, x_242); +lean_ctor_set(x_280, 1, x_278); +lean_ctor_set(x_280, 2, x_277); +lean_ctor_set(x_280, 3, x_279); +x_281 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_252); +lean_inc(x_242); +x_282 = l_Lean_Syntax_node2(x_242, x_281, x_280, x_252); +x_283 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_242); +lean_ctor_set_tag(x_62, 2); +lean_ctor_set(x_62, 1, x_283); +lean_ctor_set(x_62, 0, x_242); +x_284 = lean_mk_syntax_ident(x_39); +x_285 = lean_array_size(x_68); +x_286 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_287 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_286, x_285, x_61, x_68); +x_288 = l_Array_append___rarg(x_251, x_287); +lean_dec(x_287); +lean_inc(x_242); +x_289 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_289, 0, x_242); +lean_ctor_set(x_289, 1, x_250); +lean_ctor_set(x_289, 2, x_288); +lean_inc(x_242); +x_290 = l_Lean_Syntax_node2(x_242, x_269, x_284, x_289); +x_291 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_62); +lean_inc(x_242); +x_292 = l_Lean_Syntax_node2(x_242, x_291, x_62, x_290); +lean_inc_n(x_252, 2); +lean_inc(x_242); +x_293 = l_Lean_Syntax_node3(x_242, x_250, x_252, x_252, x_292); +x_294 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_242); +x_295 = l_Lean_Syntax_node2(x_242, x_294, x_282, x_293); +x_296 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_297 = l_Lean_addMacroScope(x_249, x_296, x_243); +x_298 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_299 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_242); +x_300 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_300, 0, x_242); +lean_ctor_set(x_300, 1, x_298); +lean_ctor_set(x_300, 2, x_297); +lean_ctor_set(x_300, 3, x_299); +lean_inc(x_252); +lean_inc(x_242); +x_301 = l_Lean_Syntax_node2(x_242, x_281, x_300, x_252); +lean_inc(x_242); +x_302 = l_Lean_Syntax_node2(x_242, x_291, x_62, x_238); +lean_inc_n(x_252, 2); +lean_inc(x_242); +x_303 = l_Lean_Syntax_node3(x_242, x_250, x_252, x_252, x_302); +lean_inc(x_242); +x_304 = l_Lean_Syntax_node2(x_242, x_294, x_301, x_303); +lean_inc(x_252); +lean_inc(x_242); +x_305 = l_Lean_Syntax_node3(x_242, x_250, x_295, x_252, x_304); +x_306 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_242); +x_307 = l_Lean_Syntax_node1(x_242, x_306, x_305); +x_308 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_252); +lean_inc(x_242); +x_309 = l_Lean_Syntax_node3(x_242, x_308, x_66, x_307, x_252); +x_310 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_252); +lean_inc(x_242); +x_311 = l_Lean_Syntax_node6(x_242, x_310, x_256, x_258, x_252, x_252, x_274, x_309); +x_312 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_313 = l_Lean_Syntax_node2(x_242, x_312, x_254, x_311); +x_314 = lean_array_push(x_29, x_313); +lean_ctor_set(x_7, 1, x_314); +x_315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_315, 0, x_7); +x_18 = x_315; +x_19 = x_246; +goto block_26; +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_235); +lean_dec(x_70); +lean_free_object(x_66); +lean_dec(x_68); +lean_free_object(x_62); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_316 = lean_ctor_get(x_237, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_237, 1); +lean_inc(x_317); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_318 = x_237; +} else { + lean_dec_ref(x_237); + x_318 = lean_box(0); +} +if (lean_is_scalar(x_318)) { + x_319 = lean_alloc_ctor(1, 2, 0); +} else { + x_319 = x_318; +} +lean_ctor_set(x_319, 0, x_316); +lean_ctor_set(x_319, 1, x_317); +return x_319; +} +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_70); +lean_free_object(x_66); +lean_dec(x_68); +lean_free_object(x_62); +lean_dec(x_47); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_320 = lean_ctor_get(x_234, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_234, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_322 = x_234; +} else { + lean_dec_ref(x_234); + x_322 = lean_box(0); +} +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); +} else { + x_323 = x_322; +} +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_324 = lean_ctor_get(x_66, 0); +x_325 = lean_ctor_get(x_66, 1); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_66); +x_326 = l_Array_append___rarg(x_57, x_325); +lean_dec(x_325); +lean_inc(x_47); +lean_inc(x_17); +x_327 = l_Lean_Elab_Deriving_mkInductiveApp(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_65); +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(x_8); +lean_inc(x_17); +x_331 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_328, x_8, x_9, x_10, x_11, x_12, x_13, x_329); +if (lean_obj_tag(x_331) == 0) +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); +lean_dec(x_331); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_334 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_333); +if (lean_obj_tag(x_334) == 0) +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; uint8_t x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; size_t x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_335 = lean_ctor_get(x_334, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 1); +lean_inc(x_336); +lean_dec(x_334); +x_337 = lean_ctor_get(x_12, 5); +lean_inc(x_337); +x_338 = 0; +x_339 = l_Lean_SourceInfo_fromRef(x_337, x_338); +lean_dec(x_337); +x_340 = lean_ctor_get(x_12, 10); +lean_inc(x_340); +x_341 = lean_st_ref_get(x_13, x_336); +x_342 = lean_ctor_get(x_341, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_341, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + x_344 = x_341; +} else { + lean_dec_ref(x_341); + x_344 = lean_box(0); +} +x_345 = lean_ctor_get(x_342, 0); +lean_inc(x_345); +lean_dec(x_342); +x_346 = lean_environment_main_module(x_345); +x_347 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_348 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_339); +x_349 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_349, 0, x_339); +lean_ctor_set(x_349, 1, x_347); +lean_ctor_set(x_349, 2, x_348); +x_350 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_349, 6); +lean_inc(x_339); +x_351 = l_Lean_Syntax_node6(x_339, x_350, x_349, x_349, x_349, x_349, x_349, x_349); +x_352 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_349); +lean_inc(x_339); +x_353 = l_Lean_Syntax_node1(x_339, x_352, x_349); +x_354 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_339); +if (lean_is_scalar(x_344)) { + x_355 = lean_alloc_ctor(2, 2, 0); +} else { + x_355 = x_344; + lean_ctor_set_tag(x_355, 2); +} +lean_ctor_set(x_355, 0, x_339); +lean_ctor_set(x_355, 1, x_354); +x_356 = l_Array_append___rarg(x_348, x_326); +lean_dec(x_326); +lean_inc(x_339); +x_357 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_357, 0, x_339); +lean_ctor_set(x_357, 1, x_347); +lean_ctor_set(x_357, 2, x_356); +x_358 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_339); +if (lean_is_scalar(x_330)) { + x_359 = lean_alloc_ctor(2, 2, 0); +} else { + x_359 = x_330; + lean_ctor_set_tag(x_359, 2); +} +lean_ctor_set(x_359, 0, x_339); +lean_ctor_set(x_359, 1, x_358); +x_360 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_340); +lean_inc(x_346); +x_361 = l_Lean_addMacroScope(x_346, x_360, x_340); +x_362 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_363 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_339); +x_364 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_364, 0, x_339); +lean_ctor_set(x_364, 1, x_362); +lean_ctor_set(x_364, 2, x_361); +lean_ctor_set(x_364, 3, x_363); +lean_inc(x_339); +x_365 = l_Lean_Syntax_node1(x_339, x_347, x_332); +x_366 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_339); +x_367 = l_Lean_Syntax_node2(x_339, x_366, x_364, x_365); +x_368 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_339); +x_369 = l_Lean_Syntax_node2(x_339, x_368, x_359, x_367); +x_370 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_339); +x_371 = l_Lean_Syntax_node2(x_339, x_370, x_357, x_369); +x_372 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_339); +x_373 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_373, 0, x_339); +lean_ctor_set(x_373, 1, x_372); +x_374 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_340); +lean_inc(x_346); +x_375 = l_Lean_addMacroScope(x_346, x_374, x_340); +x_376 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_377 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_339); +x_378 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_378, 0, x_339); +lean_ctor_set(x_378, 1, x_376); +lean_ctor_set(x_378, 2, x_375); +lean_ctor_set(x_378, 3, x_377); +x_379 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_349); +lean_inc(x_339); +x_380 = l_Lean_Syntax_node2(x_339, x_379, x_378, x_349); +x_381 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_339); +lean_ctor_set_tag(x_62, 2); +lean_ctor_set(x_62, 1, x_381); +lean_ctor_set(x_62, 0, x_339); +x_382 = lean_mk_syntax_ident(x_39); +x_383 = lean_array_size(x_324); +x_384 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_385 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_384, x_383, x_61, x_324); +x_386 = l_Array_append___rarg(x_348, x_385); +lean_dec(x_385); +lean_inc(x_339); +x_387 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_387, 0, x_339); +lean_ctor_set(x_387, 1, x_347); +lean_ctor_set(x_387, 2, x_386); +lean_inc(x_339); +x_388 = l_Lean_Syntax_node2(x_339, x_366, x_382, x_387); +x_389 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_62); +lean_inc(x_339); +x_390 = l_Lean_Syntax_node2(x_339, x_389, x_62, x_388); +lean_inc_n(x_349, 2); +lean_inc(x_339); +x_391 = l_Lean_Syntax_node3(x_339, x_347, x_349, x_349, x_390); +x_392 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_339); +x_393 = l_Lean_Syntax_node2(x_339, x_392, x_380, x_391); +x_394 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_395 = l_Lean_addMacroScope(x_346, x_394, x_340); +x_396 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_397 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_339); +x_398 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_398, 0, x_339); +lean_ctor_set(x_398, 1, x_396); +lean_ctor_set(x_398, 2, x_395); +lean_ctor_set(x_398, 3, x_397); +lean_inc(x_349); +lean_inc(x_339); +x_399 = l_Lean_Syntax_node2(x_339, x_379, x_398, x_349); +lean_inc(x_339); +x_400 = l_Lean_Syntax_node2(x_339, x_389, x_62, x_335); +lean_inc_n(x_349, 2); +lean_inc(x_339); +x_401 = l_Lean_Syntax_node3(x_339, x_347, x_349, x_349, x_400); +lean_inc(x_339); +x_402 = l_Lean_Syntax_node2(x_339, x_392, x_399, x_401); +lean_inc(x_349); +lean_inc(x_339); +x_403 = l_Lean_Syntax_node3(x_339, x_347, x_393, x_349, x_402); +x_404 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_339); +x_405 = l_Lean_Syntax_node1(x_339, x_404, x_403); +x_406 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_349); +lean_inc(x_339); +x_407 = l_Lean_Syntax_node3(x_339, x_406, x_373, x_405, x_349); +x_408 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_349); +lean_inc(x_339); +x_409 = l_Lean_Syntax_node6(x_339, x_408, x_353, x_355, x_349, x_349, x_371, x_407); +x_410 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_411 = l_Lean_Syntax_node2(x_339, x_410, x_351, x_409); +x_412 = lean_array_push(x_29, x_411); +lean_ctor_set(x_7, 1, x_412); +x_413 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_413, 0, x_7); +x_18 = x_413; +x_19 = x_343; +goto block_26; +} +else +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +lean_dec(x_332); +lean_dec(x_330); +lean_dec(x_326); +lean_dec(x_324); +lean_free_object(x_62); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_414 = lean_ctor_get(x_334, 0); +lean_inc(x_414); +x_415 = lean_ctor_get(x_334, 1); +lean_inc(x_415); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + x_416 = x_334; +} else { + lean_dec_ref(x_334); + x_416 = lean_box(0); +} +if (lean_is_scalar(x_416)) { + x_417 = lean_alloc_ctor(1, 2, 0); +} else { + x_417 = x_416; +} +lean_ctor_set(x_417, 0, x_414); +lean_ctor_set(x_417, 1, x_415); +return x_417; +} +} +else +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +lean_dec(x_330); +lean_dec(x_326); +lean_dec(x_324); +lean_free_object(x_62); +lean_dec(x_47); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_418 = lean_ctor_get(x_331, 0); +lean_inc(x_418); +x_419 = lean_ctor_get(x_331, 1); +lean_inc(x_419); +if (lean_is_exclusive(x_331)) { + lean_ctor_release(x_331, 0); + lean_ctor_release(x_331, 1); + x_420 = x_331; +} else { + lean_dec_ref(x_331); + x_420 = lean_box(0); +} +if (lean_is_scalar(x_420)) { + x_421 = lean_alloc_ctor(1, 2, 0); +} else { + x_421 = x_420; +} +lean_ctor_set(x_421, 0, x_418); +lean_ctor_set(x_421, 1, x_419); +return x_421; +} +} +} +else +{ +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; +x_422 = lean_ctor_get(x_62, 0); +x_423 = lean_ctor_get(x_62, 1); +lean_inc(x_423); +lean_inc(x_422); +lean_dec(x_62); +x_424 = l_Array_unzip___rarg(x_422); +lean_dec(x_422); +x_425 = lean_ctor_get(x_424, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_424, 1); +lean_inc(x_426); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + x_427 = x_424; +} else { + lean_dec_ref(x_424); + x_427 = lean_box(0); +} +x_428 = l_Array_append___rarg(x_57, x_426); +lean_dec(x_426); +lean_inc(x_47); +lean_inc(x_17); +x_429 = l_Lean_Elab_Deriving_mkInductiveApp(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_423); +x_430 = lean_ctor_get(x_429, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_429, 1); +lean_inc(x_431); +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_432 = x_429; +} else { + lean_dec_ref(x_429); + x_432 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_17); +x_433 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_430, x_8, x_9, x_10, x_11, x_12, x_13, x_431); +if (lean_obj_tag(x_433) == 0) +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_433, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_433, 1); +lean_inc(x_435); +lean_dec(x_433); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_436 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_435); +if (lean_obj_tag(x_436) == 0) +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; uint8_t x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; size_t x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; +x_437 = lean_ctor_get(x_436, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_436, 1); +lean_inc(x_438); +lean_dec(x_436); +x_439 = lean_ctor_get(x_12, 5); +lean_inc(x_439); +x_440 = 0; +x_441 = l_Lean_SourceInfo_fromRef(x_439, x_440); +lean_dec(x_439); +x_442 = lean_ctor_get(x_12, 10); +lean_inc(x_442); +x_443 = lean_st_ref_get(x_13, x_438); +x_444 = lean_ctor_get(x_443, 0); +lean_inc(x_444); +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_ctor_get(x_444, 0); +lean_inc(x_447); +lean_dec(x_444); +x_448 = lean_environment_main_module(x_447); +x_449 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_450 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_441); +x_451 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_451, 0, x_441); +lean_ctor_set(x_451, 1, x_449); +lean_ctor_set(x_451, 2, x_450); +x_452 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_451, 6); +lean_inc(x_441); +x_453 = l_Lean_Syntax_node6(x_441, x_452, x_451, x_451, x_451, x_451, x_451, x_451); +x_454 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_451); +lean_inc(x_441); +x_455 = l_Lean_Syntax_node1(x_441, x_454, x_451); +x_456 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_441); +if (lean_is_scalar(x_446)) { + x_457 = lean_alloc_ctor(2, 2, 0); +} else { + x_457 = x_446; + lean_ctor_set_tag(x_457, 2); +} +lean_ctor_set(x_457, 0, x_441); +lean_ctor_set(x_457, 1, x_456); +x_458 = l_Array_append___rarg(x_450, x_428); +lean_dec(x_428); +lean_inc(x_441); +x_459 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_459, 0, x_441); +lean_ctor_set(x_459, 1, x_449); +lean_ctor_set(x_459, 2, x_458); +x_460 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_441); +if (lean_is_scalar(x_432)) { + x_461 = lean_alloc_ctor(2, 2, 0); +} else { + x_461 = x_432; + lean_ctor_set_tag(x_461, 2); +} +lean_ctor_set(x_461, 0, x_441); +lean_ctor_set(x_461, 1, x_460); +x_462 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_442); +lean_inc(x_448); +x_463 = l_Lean_addMacroScope(x_448, x_462, x_442); +x_464 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_465 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_441); +x_466 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_466, 0, x_441); +lean_ctor_set(x_466, 1, x_464); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_465); +lean_inc(x_441); +x_467 = l_Lean_Syntax_node1(x_441, x_449, x_434); +x_468 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_441); +x_469 = l_Lean_Syntax_node2(x_441, x_468, x_466, x_467); +x_470 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_441); +x_471 = l_Lean_Syntax_node2(x_441, x_470, x_461, x_469); +x_472 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_441); +x_473 = l_Lean_Syntax_node2(x_441, x_472, x_459, x_471); +x_474 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_441); +if (lean_is_scalar(x_427)) { + x_475 = lean_alloc_ctor(2, 2, 0); +} else { + x_475 = x_427; + lean_ctor_set_tag(x_475, 2); +} +lean_ctor_set(x_475, 0, x_441); +lean_ctor_set(x_475, 1, x_474); +x_476 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_442); +lean_inc(x_448); +x_477 = l_Lean_addMacroScope(x_448, x_476, x_442); +x_478 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_479 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_441); +x_480 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_480, 0, x_441); +lean_ctor_set(x_480, 1, x_478); +lean_ctor_set(x_480, 2, x_477); +lean_ctor_set(x_480, 3, x_479); +x_481 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_451); +lean_inc(x_441); +x_482 = l_Lean_Syntax_node2(x_441, x_481, x_480, x_451); +x_483 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_441); +x_484 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_484, 0, x_441); +lean_ctor_set(x_484, 1, x_483); +x_485 = lean_mk_syntax_ident(x_39); +x_486 = lean_array_size(x_425); +x_487 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_488 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_487, x_486, x_61, x_425); +x_489 = l_Array_append___rarg(x_450, x_488); +lean_dec(x_488); +lean_inc(x_441); +x_490 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_490, 0, x_441); +lean_ctor_set(x_490, 1, x_449); +lean_ctor_set(x_490, 2, x_489); +lean_inc(x_441); +x_491 = l_Lean_Syntax_node2(x_441, x_468, x_485, x_490); +x_492 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_484); +lean_inc(x_441); +x_493 = l_Lean_Syntax_node2(x_441, x_492, x_484, x_491); +lean_inc_n(x_451, 2); +lean_inc(x_441); +x_494 = l_Lean_Syntax_node3(x_441, x_449, x_451, x_451, x_493); +x_495 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_441); +x_496 = l_Lean_Syntax_node2(x_441, x_495, x_482, x_494); +x_497 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_498 = l_Lean_addMacroScope(x_448, x_497, x_442); +x_499 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_500 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_441); +x_501 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_501, 0, x_441); +lean_ctor_set(x_501, 1, x_499); +lean_ctor_set(x_501, 2, x_498); +lean_ctor_set(x_501, 3, x_500); +lean_inc(x_451); +lean_inc(x_441); +x_502 = l_Lean_Syntax_node2(x_441, x_481, x_501, x_451); +lean_inc(x_441); +x_503 = l_Lean_Syntax_node2(x_441, x_492, x_484, x_437); +lean_inc_n(x_451, 2); +lean_inc(x_441); +x_504 = l_Lean_Syntax_node3(x_441, x_449, x_451, x_451, x_503); +lean_inc(x_441); +x_505 = l_Lean_Syntax_node2(x_441, x_495, x_502, x_504); +lean_inc(x_451); +lean_inc(x_441); +x_506 = l_Lean_Syntax_node3(x_441, x_449, x_496, x_451, x_505); +x_507 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_441); +x_508 = l_Lean_Syntax_node1(x_441, x_507, x_506); +x_509 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_451); +lean_inc(x_441); +x_510 = l_Lean_Syntax_node3(x_441, x_509, x_475, x_508, x_451); +x_511 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_451); +lean_inc(x_441); +x_512 = l_Lean_Syntax_node6(x_441, x_511, x_455, x_457, x_451, x_451, x_473, x_510); +x_513 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_514 = l_Lean_Syntax_node2(x_441, x_513, x_453, x_512); +x_515 = lean_array_push(x_29, x_514); +lean_ctor_set(x_7, 1, x_515); +x_516 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_516, 0, x_7); +x_18 = x_516; +x_19 = x_445; +goto block_26; +} +else +{ +lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; +lean_dec(x_434); +lean_dec(x_432); +lean_dec(x_428); +lean_dec(x_427); +lean_dec(x_425); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_517 = lean_ctor_get(x_436, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_436, 1); +lean_inc(x_518); +if (lean_is_exclusive(x_436)) { + lean_ctor_release(x_436, 0); + lean_ctor_release(x_436, 1); + x_519 = x_436; +} else { + lean_dec_ref(x_436); + x_519 = lean_box(0); +} +if (lean_is_scalar(x_519)) { + x_520 = lean_alloc_ctor(1, 2, 0); +} else { + x_520 = x_519; +} +lean_ctor_set(x_520, 0, x_517); +lean_ctor_set(x_520, 1, x_518); +return x_520; +} +} +else +{ +lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; +lean_dec(x_432); +lean_dec(x_428); +lean_dec(x_427); +lean_dec(x_425); +lean_dec(x_47); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_521 = lean_ctor_get(x_433, 0); +lean_inc(x_521); +x_522 = lean_ctor_get(x_433, 1); +lean_inc(x_522); +if (lean_is_exclusive(x_433)) { + lean_ctor_release(x_433, 0); + lean_ctor_release(x_433, 1); + x_523 = x_433; +} else { + lean_dec_ref(x_433); + x_523 = lean_box(0); +} +if (lean_is_scalar(x_523)) { + x_524 = lean_alloc_ctor(1, 2, 0); +} else { + x_524 = x_523; +} +lean_ctor_set(x_524, 0, x_521); +lean_ctor_set(x_524, 1, x_522); +return x_524; +} +} +} +else +{ +uint8_t x_525; +lean_dec(x_50); +lean_dec(x_47); +lean_dec(x_42); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_525 = !lean_is_exclusive(x_53); +if (x_525 == 0) +{ +return x_53; +} +else +{ +lean_object* x_526; lean_object* x_527; lean_object* x_528; +x_526 = lean_ctor_get(x_53, 0); +x_527 = lean_ctor_get(x_53, 1); +lean_inc(x_527); +lean_inc(x_526); +lean_dec(x_53); +x_528 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_528, 0, x_526); +lean_ctor_set(x_528, 1, x_527); +return x_528; +} +} +} +else +{ +uint8_t x_529; +lean_dec(x_42); +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_529 = !lean_is_exclusive(x_46); +if (x_529 == 0) +{ +return x_46; +} +else +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; +x_530 = lean_ctor_get(x_46, 0); +x_531 = lean_ctor_get(x_46, 1); +lean_inc(x_531); +lean_inc(x_530); +lean_dec(x_46); +x_532 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_532, 0, x_530); +lean_ctor_set(x_532, 1, x_531); +return x_532; +} +} +} +} +else +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; uint8_t x_539; +lean_dec(x_28); +x_533 = lean_array_fget(x_30, x_31); +x_534 = lean_unsigned_to_nat(1u); +x_535 = lean_nat_add(x_31, x_534); +lean_dec(x_31); +x_536 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_536, 0, x_30); +lean_ctor_set(x_536, 1, x_535); +lean_ctor_set(x_536, 2, x_32); +x_537 = lean_ctor_get(x_17, 0); +lean_inc(x_537); +x_538 = lean_ctor_get(x_537, 0); +lean_inc(x_538); +x_539 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_1, x_538); +lean_dec(x_538); +if (x_539 == 0) +{ +lean_object* x_540; +lean_dec(x_537); +lean_dec(x_533); +lean_dec(x_17); +lean_ctor_set(x_7, 0, x_536); +x_540 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_540, 0, x_7); +x_18 = x_540; +x_19 = x_14; +goto block_26; +} +else +{ +lean_object* x_541; +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_17); +x_541 = l_Lean_Elab_Deriving_mkInductArgNames(x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_541) == 0) +{ +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; +x_542 = lean_ctor_get(x_541, 0); +lean_inc(x_542); +x_543 = lean_ctor_get(x_541, 1); +lean_inc(x_543); +lean_dec(x_541); +lean_inc(x_542); +x_544 = l_Lean_Elab_Deriving_mkImplicitBinders(x_542, x_8, x_9, x_10, x_11, x_12, x_13, x_543); +x_545 = lean_ctor_get(x_544, 0); +lean_inc(x_545); +x_546 = lean_ctor_get(x_544, 1); +lean_inc(x_546); +lean_dec(x_544); +x_547 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +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_542); +lean_inc(x_17); +x_548 = l_Lean_Elab_Deriving_mkInstImplicitBinders(x_547, x_17, x_542, x_8, x_9, x_10, x_11, x_12, x_13, x_546); +if (lean_obj_tag(x_548) == 0) +{ +lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; size_t x_555; size_t 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; lean_object* x_568; lean_object* x_569; lean_object* x_570; +x_549 = lean_ctor_get(x_548, 0); +lean_inc(x_549); +x_550 = lean_ctor_get(x_548, 1); +lean_inc(x_550); +lean_dec(x_548); +x_551 = lean_box(0); +x_552 = l_Array_append___rarg(x_545, x_549); +lean_dec(x_549); +x_553 = lean_ctor_get(x_537, 1); +lean_inc(x_553); +lean_dec(x_537); +x_554 = lean_array_mk(x_553); +x_555 = lean_array_size(x_554); +x_556 = 0; +lean_inc(x_12); +x_557 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(x_551, x_555, x_556, x_554, x_8, x_9, x_10, x_11, x_12, x_13, x_550); +x_558 = lean_ctor_get(x_557, 0); +lean_inc(x_558); +x_559 = lean_ctor_get(x_557, 1); +lean_inc(x_559); +if (lean_is_exclusive(x_557)) { + lean_ctor_release(x_557, 0); + lean_ctor_release(x_557, 1); + x_560 = x_557; +} else { + lean_dec_ref(x_557); + x_560 = lean_box(0); +} +x_561 = l_Array_unzip___rarg(x_558); +lean_dec(x_558); +x_562 = lean_ctor_get(x_561, 0); +lean_inc(x_562); +x_563 = lean_ctor_get(x_561, 1); +lean_inc(x_563); +if (lean_is_exclusive(x_561)) { + lean_ctor_release(x_561, 0); + lean_ctor_release(x_561, 1); + x_564 = x_561; +} else { + lean_dec_ref(x_561); + x_564 = lean_box(0); +} +x_565 = l_Array_append___rarg(x_552, x_563); +lean_dec(x_563); +lean_inc(x_542); +lean_inc(x_17); +x_566 = l_Lean_Elab_Deriving_mkInductiveApp(x_17, x_542, x_8, x_9, x_10, x_11, x_12, x_13, x_559); +x_567 = lean_ctor_get(x_566, 0); +lean_inc(x_567); +x_568 = lean_ctor_get(x_566, 1); +lean_inc(x_568); +if (lean_is_exclusive(x_566)) { + lean_ctor_release(x_566, 0); + lean_ctor_release(x_566, 1); + x_569 = x_566; +} else { + lean_dec_ref(x_566); + x_569 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_17); +x_570 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_567, x_8, x_9, x_10, x_11, x_12, x_13, x_568); +if (lean_obj_tag(x_570) == 0) +{ +lean_object* x_571; lean_object* x_572; lean_object* x_573; +x_571 = lean_ctor_get(x_570, 0); +lean_inc(x_571); +x_572 = lean_ctor_get(x_570, 1); +lean_inc(x_572); +lean_dec(x_570); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_573 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_542, x_8, x_9, x_10, x_11, x_12, x_13, x_572); +if (lean_obj_tag(x_573) == 0) +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; uint8_t 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; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; size_t x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_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; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; +x_574 = lean_ctor_get(x_573, 0); +lean_inc(x_574); +x_575 = lean_ctor_get(x_573, 1); +lean_inc(x_575); +lean_dec(x_573); +x_576 = lean_ctor_get(x_12, 5); +lean_inc(x_576); +x_577 = 0; +x_578 = l_Lean_SourceInfo_fromRef(x_576, x_577); +lean_dec(x_576); +x_579 = lean_ctor_get(x_12, 10); +lean_inc(x_579); +x_580 = lean_st_ref_get(x_13, x_575); +x_581 = lean_ctor_get(x_580, 0); +lean_inc(x_581); +x_582 = lean_ctor_get(x_580, 1); +lean_inc(x_582); +if (lean_is_exclusive(x_580)) { + lean_ctor_release(x_580, 0); + lean_ctor_release(x_580, 1); + x_583 = x_580; +} else { + lean_dec_ref(x_580); + x_583 = lean_box(0); +} +x_584 = lean_ctor_get(x_581, 0); +lean_inc(x_584); +lean_dec(x_581); +x_585 = lean_environment_main_module(x_584); +x_586 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_587 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_578); +x_588 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_588, 0, x_578); +lean_ctor_set(x_588, 1, x_586); +lean_ctor_set(x_588, 2, x_587); +x_589 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_588, 6); +lean_inc(x_578); +x_590 = l_Lean_Syntax_node6(x_578, x_589, x_588, x_588, x_588, x_588, x_588, x_588); +x_591 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_588); +lean_inc(x_578); +x_592 = l_Lean_Syntax_node1(x_578, x_591, x_588); +x_593 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_578); +if (lean_is_scalar(x_583)) { + x_594 = lean_alloc_ctor(2, 2, 0); +} else { + x_594 = x_583; + lean_ctor_set_tag(x_594, 2); +} +lean_ctor_set(x_594, 0, x_578); +lean_ctor_set(x_594, 1, x_593); +x_595 = l_Array_append___rarg(x_587, x_565); +lean_dec(x_565); +lean_inc(x_578); +x_596 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_596, 0, x_578); +lean_ctor_set(x_596, 1, x_586); +lean_ctor_set(x_596, 2, x_595); +x_597 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_578); +if (lean_is_scalar(x_569)) { + x_598 = lean_alloc_ctor(2, 2, 0); +} else { + x_598 = x_569; + lean_ctor_set_tag(x_598, 2); +} +lean_ctor_set(x_598, 0, x_578); +lean_ctor_set(x_598, 1, x_597); +x_599 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_579); +lean_inc(x_585); +x_600 = l_Lean_addMacroScope(x_585, x_599, x_579); +x_601 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_602 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_578); +x_603 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_603, 0, x_578); +lean_ctor_set(x_603, 1, x_601); +lean_ctor_set(x_603, 2, x_600); +lean_ctor_set(x_603, 3, x_602); +lean_inc(x_578); +x_604 = l_Lean_Syntax_node1(x_578, x_586, x_571); +x_605 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_578); +x_606 = l_Lean_Syntax_node2(x_578, x_605, x_603, x_604); +x_607 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_578); +x_608 = l_Lean_Syntax_node2(x_578, x_607, x_598, x_606); +x_609 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_578); +x_610 = l_Lean_Syntax_node2(x_578, x_609, x_596, x_608); +x_611 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_578); +if (lean_is_scalar(x_564)) { + x_612 = lean_alloc_ctor(2, 2, 0); +} else { + x_612 = x_564; + lean_ctor_set_tag(x_612, 2); +} +lean_ctor_set(x_612, 0, x_578); +lean_ctor_set(x_612, 1, x_611); +x_613 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_579); +lean_inc(x_585); +x_614 = l_Lean_addMacroScope(x_585, x_613, x_579); +x_615 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_616 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_578); +x_617 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_617, 0, x_578); +lean_ctor_set(x_617, 1, x_615); +lean_ctor_set(x_617, 2, x_614); +lean_ctor_set(x_617, 3, x_616); +x_618 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_588); +lean_inc(x_578); +x_619 = l_Lean_Syntax_node2(x_578, x_618, x_617, x_588); +x_620 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_578); +if (lean_is_scalar(x_560)) { + x_621 = lean_alloc_ctor(2, 2, 0); +} else { + x_621 = x_560; + lean_ctor_set_tag(x_621, 2); +} +lean_ctor_set(x_621, 0, x_578); +lean_ctor_set(x_621, 1, x_620); +x_622 = lean_mk_syntax_ident(x_533); +x_623 = lean_array_size(x_562); +x_624 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_625 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_624, x_623, x_556, x_562); +x_626 = l_Array_append___rarg(x_587, x_625); +lean_dec(x_625); +lean_inc(x_578); +x_627 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_627, 0, x_578); +lean_ctor_set(x_627, 1, x_586); +lean_ctor_set(x_627, 2, x_626); +lean_inc(x_578); +x_628 = l_Lean_Syntax_node2(x_578, x_605, x_622, x_627); +x_629 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_621); +lean_inc(x_578); +x_630 = l_Lean_Syntax_node2(x_578, x_629, x_621, x_628); +lean_inc_n(x_588, 2); +lean_inc(x_578); +x_631 = l_Lean_Syntax_node3(x_578, x_586, x_588, x_588, x_630); +x_632 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_578); +x_633 = l_Lean_Syntax_node2(x_578, x_632, x_619, x_631); +x_634 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_635 = l_Lean_addMacroScope(x_585, x_634, x_579); +x_636 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_637 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_578); +x_638 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_638, 0, x_578); +lean_ctor_set(x_638, 1, x_636); +lean_ctor_set(x_638, 2, x_635); +lean_ctor_set(x_638, 3, x_637); +lean_inc(x_588); +lean_inc(x_578); +x_639 = l_Lean_Syntax_node2(x_578, x_618, x_638, x_588); +lean_inc(x_578); +x_640 = l_Lean_Syntax_node2(x_578, x_629, x_621, x_574); +lean_inc_n(x_588, 2); +lean_inc(x_578); +x_641 = l_Lean_Syntax_node3(x_578, x_586, x_588, x_588, x_640); +lean_inc(x_578); +x_642 = l_Lean_Syntax_node2(x_578, x_632, x_639, x_641); +lean_inc(x_588); +lean_inc(x_578); +x_643 = l_Lean_Syntax_node3(x_578, x_586, x_633, x_588, x_642); +x_644 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_578); +x_645 = l_Lean_Syntax_node1(x_578, x_644, x_643); +x_646 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_588); +lean_inc(x_578); +x_647 = l_Lean_Syntax_node3(x_578, x_646, x_612, x_645, x_588); +x_648 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_588); +lean_inc(x_578); +x_649 = l_Lean_Syntax_node6(x_578, x_648, x_592, x_594, x_588, x_588, x_610, x_647); +x_650 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_651 = l_Lean_Syntax_node2(x_578, x_650, x_590, x_649); +x_652 = lean_array_push(x_29, x_651); +lean_ctor_set(x_7, 1, x_652); +lean_ctor_set(x_7, 0, x_536); +x_653 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_653, 0, x_7); +x_18 = x_653; +x_19 = x_582; +goto block_26; +} +else +{ +lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; +lean_dec(x_571); +lean_dec(x_569); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_562); +lean_dec(x_560); +lean_dec(x_536); +lean_dec(x_533); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_654 = lean_ctor_get(x_573, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_573, 1); +lean_inc(x_655); +if (lean_is_exclusive(x_573)) { + lean_ctor_release(x_573, 0); + lean_ctor_release(x_573, 1); + x_656 = x_573; +} else { + lean_dec_ref(x_573); + x_656 = lean_box(0); +} +if (lean_is_scalar(x_656)) { + x_657 = lean_alloc_ctor(1, 2, 0); +} else { + x_657 = x_656; +} +lean_ctor_set(x_657, 0, x_654); +lean_ctor_set(x_657, 1, x_655); +return x_657; +} +} +else +{ +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; +lean_dec(x_569); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_562); +lean_dec(x_560); +lean_dec(x_542); +lean_dec(x_536); +lean_dec(x_533); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_658 = lean_ctor_get(x_570, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_570, 1); +lean_inc(x_659); +if (lean_is_exclusive(x_570)) { + lean_ctor_release(x_570, 0); + lean_ctor_release(x_570, 1); + x_660 = x_570; +} else { + lean_dec_ref(x_570); + x_660 = lean_box(0); +} +if (lean_is_scalar(x_660)) { + x_661 = lean_alloc_ctor(1, 2, 0); +} else { + x_661 = x_660; +} +lean_ctor_set(x_661, 0, x_658); +lean_ctor_set(x_661, 1, x_659); +return x_661; +} +} +else +{ +lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; +lean_dec(x_545); +lean_dec(x_542); +lean_dec(x_537); +lean_dec(x_536); +lean_dec(x_533); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_662 = lean_ctor_get(x_548, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_548, 1); +lean_inc(x_663); +if (lean_is_exclusive(x_548)) { + lean_ctor_release(x_548, 0); + lean_ctor_release(x_548, 1); + x_664 = x_548; +} else { + lean_dec_ref(x_548); + x_664 = lean_box(0); +} +if (lean_is_scalar(x_664)) { + x_665 = lean_alloc_ctor(1, 2, 0); +} else { + x_665 = x_664; +} +lean_ctor_set(x_665, 0, x_662); +lean_ctor_set(x_665, 1, x_663); +return x_665; +} +} +else +{ +lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; +lean_dec(x_537); +lean_dec(x_536); +lean_dec(x_533); +lean_free_object(x_7); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_666 = lean_ctor_get(x_541, 0); +lean_inc(x_666); +x_667 = lean_ctor_get(x_541, 1); +lean_inc(x_667); +if (lean_is_exclusive(x_541)) { + lean_ctor_release(x_541, 0); + lean_ctor_release(x_541, 1); + x_668 = x_541; +} else { + lean_dec_ref(x_541); + x_668 = lean_box(0); +} +if (lean_is_scalar(x_668)) { + x_669 = lean_alloc_ctor(1, 2, 0); +} else { + x_669 = x_668; +} +lean_ctor_set(x_669, 0, x_666); +lean_ctor_set(x_669, 1, x_667); +return x_669; +} +} +} +} +} +else +{ +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; +x_670 = lean_ctor_get(x_7, 0); +x_671 = lean_ctor_get(x_7, 1); +lean_inc(x_671); +lean_inc(x_670); +lean_dec(x_7); +x_672 = lean_ctor_get(x_670, 0); +lean_inc(x_672); +x_673 = lean_ctor_get(x_670, 1); +lean_inc(x_673); +x_674 = lean_ctor_get(x_670, 2); +lean_inc(x_674); +x_675 = lean_nat_dec_lt(x_673, x_674); +if (x_675 == 0) +{ +lean_object* x_676; lean_object* x_677; +lean_dec(x_674); +lean_dec(x_673); +lean_dec(x_672); +lean_dec(x_17); +x_676 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_676, 0, x_670); +lean_ctor_set(x_676, 1, x_671); +x_677 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_677, 0, x_676); +x_18 = x_677; +x_19 = x_14; +goto block_26; +} +else +{ +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; uint8_t x_685; +if (lean_is_exclusive(x_670)) { + lean_ctor_release(x_670, 0); + lean_ctor_release(x_670, 1); + lean_ctor_release(x_670, 2); + x_678 = x_670; +} else { + lean_dec_ref(x_670); + x_678 = lean_box(0); +} +x_679 = lean_array_fget(x_672, x_673); +x_680 = lean_unsigned_to_nat(1u); +x_681 = lean_nat_add(x_673, x_680); +lean_dec(x_673); +if (lean_is_scalar(x_678)) { + x_682 = lean_alloc_ctor(0, 3, 0); +} else { + x_682 = x_678; +} +lean_ctor_set(x_682, 0, x_672); +lean_ctor_set(x_682, 1, x_681); +lean_ctor_set(x_682, 2, x_674); +x_683 = lean_ctor_get(x_17, 0); +lean_inc(x_683); +x_684 = lean_ctor_get(x_683, 0); +lean_inc(x_684); +x_685 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_1, x_684); +lean_dec(x_684); +if (x_685 == 0) +{ +lean_object* x_686; lean_object* x_687; +lean_dec(x_683); +lean_dec(x_679); +lean_dec(x_17); +x_686 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_686, 0, x_682); +lean_ctor_set(x_686, 1, x_671); +x_687 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_687, 0, x_686); +x_18 = x_687; +x_19 = x_14; +goto block_26; +} +else +{ +lean_object* x_688; +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_17); +x_688 = l_Lean_Elab_Deriving_mkInductArgNames(x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_688) == 0) +{ +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; +x_689 = lean_ctor_get(x_688, 0); +lean_inc(x_689); +x_690 = lean_ctor_get(x_688, 1); +lean_inc(x_690); +lean_dec(x_688); +lean_inc(x_689); +x_691 = l_Lean_Elab_Deriving_mkImplicitBinders(x_689, x_8, x_9, x_10, x_11, x_12, x_13, x_690); +x_692 = lean_ctor_get(x_691, 0); +lean_inc(x_692); +x_693 = lean_ctor_get(x_691, 1); +lean_inc(x_693); +lean_dec(x_691); +x_694 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +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_689); +lean_inc(x_17); +x_695 = l_Lean_Elab_Deriving_mkInstImplicitBinders(x_694, x_17, x_689, x_8, x_9, x_10, x_11, x_12, x_13, x_693); +if (lean_obj_tag(x_695) == 0) +{ +lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; size_t x_702; size_t x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; +x_696 = lean_ctor_get(x_695, 0); +lean_inc(x_696); +x_697 = lean_ctor_get(x_695, 1); +lean_inc(x_697); +lean_dec(x_695); +x_698 = lean_box(0); +x_699 = l_Array_append___rarg(x_692, x_696); +lean_dec(x_696); +x_700 = lean_ctor_get(x_683, 1); +lean_inc(x_700); +lean_dec(x_683); +x_701 = lean_array_mk(x_700); +x_702 = lean_array_size(x_701); +x_703 = 0; +lean_inc(x_12); +x_704 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(x_698, x_702, x_703, x_701, x_8, x_9, x_10, x_11, x_12, x_13, x_697); +x_705 = lean_ctor_get(x_704, 0); +lean_inc(x_705); +x_706 = lean_ctor_get(x_704, 1); +lean_inc(x_706); +if (lean_is_exclusive(x_704)) { + lean_ctor_release(x_704, 0); + lean_ctor_release(x_704, 1); + x_707 = x_704; +} else { + lean_dec_ref(x_704); + x_707 = lean_box(0); +} +x_708 = l_Array_unzip___rarg(x_705); +lean_dec(x_705); +x_709 = lean_ctor_get(x_708, 0); +lean_inc(x_709); +x_710 = lean_ctor_get(x_708, 1); +lean_inc(x_710); +if (lean_is_exclusive(x_708)) { + lean_ctor_release(x_708, 0); + lean_ctor_release(x_708, 1); + x_711 = x_708; +} else { + lean_dec_ref(x_708); + x_711 = lean_box(0); +} +x_712 = l_Array_append___rarg(x_699, x_710); +lean_dec(x_710); +lean_inc(x_689); +lean_inc(x_17); +x_713 = l_Lean_Elab_Deriving_mkInductiveApp(x_17, x_689, x_8, x_9, x_10, x_11, x_12, x_13, x_706); +x_714 = lean_ctor_get(x_713, 0); +lean_inc(x_714); +x_715 = lean_ctor_get(x_713, 1); +lean_inc(x_715); +if (lean_is_exclusive(x_713)) { + lean_ctor_release(x_713, 0); + lean_ctor_release(x_713, 1); + x_716 = x_713; +} else { + lean_dec_ref(x_713); + x_716 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_17); +x_717 = l_Lean_Elab_Deriving_ToExpr_updateIndType(x_17, x_714, x_8, x_9, x_10, x_11, x_12, x_13, x_715); +if (lean_obj_tag(x_717) == 0) +{ +lean_object* x_718; lean_object* x_719; lean_object* x_720; +x_718 = lean_ctor_get(x_717, 0); +lean_inc(x_718); +x_719 = lean_ctor_get(x_717, 1); +lean_inc(x_719); +lean_dec(x_717); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_720 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr(x_17, x_689, x_8, x_9, x_10, x_11, x_12, x_13, x_719); +if (lean_obj_tag(x_720) == 0) +{ +lean_object* x_721; lean_object* x_722; lean_object* x_723; uint8_t 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; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; 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_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; size_t x_770; lean_object* x_771; 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; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; +x_721 = lean_ctor_get(x_720, 0); +lean_inc(x_721); +x_722 = lean_ctor_get(x_720, 1); +lean_inc(x_722); +lean_dec(x_720); +x_723 = lean_ctor_get(x_12, 5); +lean_inc(x_723); +x_724 = 0; +x_725 = l_Lean_SourceInfo_fromRef(x_723, x_724); +lean_dec(x_723); +x_726 = lean_ctor_get(x_12, 10); +lean_inc(x_726); +x_727 = lean_st_ref_get(x_13, x_722); +x_728 = lean_ctor_get(x_727, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_727, 1); +lean_inc(x_729); +if (lean_is_exclusive(x_727)) { + lean_ctor_release(x_727, 0); + lean_ctor_release(x_727, 1); + x_730 = x_727; +} else { + lean_dec_ref(x_727); + x_730 = lean_box(0); +} +x_731 = lean_ctor_get(x_728, 0); +lean_inc(x_731); +lean_dec(x_728); +x_732 = lean_environment_main_module(x_731); +x_733 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_734 = l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9; +lean_inc(x_725); +x_735 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_735, 0, x_725); +lean_ctor_set(x_735, 1, x_733); +lean_ctor_set(x_735, 2, x_734); +x_736 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8; +lean_inc_n(x_735, 6); +lean_inc(x_725); +x_737 = l_Lean_Syntax_node6(x_725, x_736, x_735, x_735, x_735, x_735, x_735, x_735); +x_738 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4; +lean_inc(x_735); +lean_inc(x_725); +x_739 = l_Lean_Syntax_node1(x_725, x_738, x_735); +x_740 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1; +lean_inc(x_725); +if (lean_is_scalar(x_730)) { + x_741 = lean_alloc_ctor(2, 2, 0); +} else { + x_741 = x_730; + lean_ctor_set_tag(x_741, 2); +} +lean_ctor_set(x_741, 0, x_725); +lean_ctor_set(x_741, 1, x_740); +x_742 = l_Array_append___rarg(x_734, x_712); +lean_dec(x_712); +lean_inc(x_725); +x_743 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_743, 0, x_725); +lean_ctor_set(x_743, 1, x_733); +lean_ctor_set(x_743, 2, x_742); +x_744 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9; +lean_inc(x_725); +if (lean_is_scalar(x_716)) { + x_745 = lean_alloc_ctor(2, 2, 0); +} else { + x_745 = x_716; + lean_ctor_set_tag(x_745, 2); +} +lean_ctor_set(x_745, 0, x_725); +lean_ctor_set(x_745, 1, x_744); +x_746 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11; +lean_inc(x_726); +lean_inc(x_732); +x_747 = l_Lean_addMacroScope(x_732, x_746, x_726); +x_748 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10; +x_749 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24; +lean_inc(x_725); +x_750 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_750, 0, x_725); +lean_ctor_set(x_750, 1, x_748); +lean_ctor_set(x_750, 2, x_747); +lean_ctor_set(x_750, 3, x_749); +lean_inc(x_725); +x_751 = l_Lean_Syntax_node1(x_725, x_733, x_718); +x_752 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5; +lean_inc(x_725); +x_753 = l_Lean_Syntax_node2(x_725, x_752, x_750, x_751); +x_754 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8; +lean_inc(x_725); +x_755 = l_Lean_Syntax_node2(x_725, x_754, x_745, x_753); +x_756 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6; +lean_inc(x_725); +x_757 = l_Lean_Syntax_node2(x_725, x_756, x_743, x_755); +x_758 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9; +lean_inc(x_725); +if (lean_is_scalar(x_711)) { + x_759 = lean_alloc_ctor(2, 2, 0); +} else { + x_759 = x_711; + lean_ctor_set_tag(x_759, 2); +} +lean_ctor_set(x_759, 0, x_725); +lean_ctor_set(x_759, 1, x_758); +x_760 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3; +lean_inc(x_726); +lean_inc(x_732); +x_761 = l_Lean_addMacroScope(x_732, x_760, x_726); +x_762 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2; +x_763 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36; +lean_inc(x_725); +x_764 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_764, 0, x_725); +lean_ctor_set(x_764, 1, x_762); +lean_ctor_set(x_764, 2, x_761); +lean_ctor_set(x_764, 3, x_763); +x_765 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34; +lean_inc(x_735); +lean_inc(x_725); +x_766 = l_Lean_Syntax_node2(x_725, x_765, x_764, x_735); +x_767 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25; +lean_inc(x_725); +if (lean_is_scalar(x_707)) { + x_768 = lean_alloc_ctor(2, 2, 0); +} else { + x_768 = x_707; + lean_ctor_set_tag(x_768, 2); +} +lean_ctor_set(x_768, 0, x_725); +lean_ctor_set(x_768, 1, x_767); +x_769 = lean_mk_syntax_ident(x_679); +x_770 = lean_array_size(x_709); +x_771 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12; +x_772 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_771, x_770, x_703, x_709); +x_773 = l_Array_append___rarg(x_734, x_772); +lean_dec(x_772); +lean_inc(x_725); +x_774 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_774, 0, x_725); +lean_ctor_set(x_774, 1, x_733); +lean_ctor_set(x_774, 2, x_773); +lean_inc(x_725); +x_775 = l_Lean_Syntax_node2(x_725, x_752, x_769, x_774); +x_776 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38; +lean_inc(x_768); +lean_inc(x_725); +x_777 = l_Lean_Syntax_node2(x_725, x_776, x_768, x_775); +lean_inc_n(x_735, 2); +lean_inc(x_725); +x_778 = l_Lean_Syntax_node3(x_725, x_733, x_735, x_735, x_777); +x_779 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32; +lean_inc(x_725); +x_780 = l_Lean_Syntax_node2(x_725, x_779, x_766, x_778); +x_781 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10; +x_782 = l_Lean_addMacroScope(x_732, x_781, x_726); +x_783 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9; +x_784 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40; +lean_inc(x_725); +x_785 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_785, 0, x_725); +lean_ctor_set(x_785, 1, x_783); +lean_ctor_set(x_785, 2, x_782); +lean_ctor_set(x_785, 3, x_784); +lean_inc(x_735); +lean_inc(x_725); +x_786 = l_Lean_Syntax_node2(x_725, x_765, x_785, x_735); +lean_inc(x_725); +x_787 = l_Lean_Syntax_node2(x_725, x_776, x_768, x_721); +lean_inc_n(x_735, 2); +lean_inc(x_725); +x_788 = l_Lean_Syntax_node3(x_725, x_733, x_735, x_735, x_787); +lean_inc(x_725); +x_789 = l_Lean_Syntax_node2(x_725, x_779, x_786, x_788); +lean_inc(x_735); +lean_inc(x_725); +x_790 = l_Lean_Syntax_node3(x_725, x_733, x_780, x_735, x_789); +x_791 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30; +lean_inc(x_725); +x_792 = l_Lean_Syntax_node1(x_725, x_791, x_790); +x_793 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8; +lean_inc(x_735); +lean_inc(x_725); +x_794 = l_Lean_Syntax_node3(x_725, x_793, x_759, x_792, x_735); +x_795 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2; +lean_inc(x_735); +lean_inc(x_725); +x_796 = l_Lean_Syntax_node6(x_725, x_795, x_739, x_741, x_735, x_735, x_757, x_794); +x_797 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6; +x_798 = l_Lean_Syntax_node2(x_725, x_797, x_737, x_796); +x_799 = lean_array_push(x_671, x_798); +x_800 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_800, 0, x_682); +lean_ctor_set(x_800, 1, x_799); +x_801 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_801, 0, x_800); +x_18 = x_801; +x_19 = x_729; +goto block_26; +} +else +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; +lean_dec(x_718); +lean_dec(x_716); +lean_dec(x_712); +lean_dec(x_711); +lean_dec(x_709); +lean_dec(x_707); +lean_dec(x_682); +lean_dec(x_679); +lean_dec(x_671); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_802 = lean_ctor_get(x_720, 0); +lean_inc(x_802); +x_803 = lean_ctor_get(x_720, 1); +lean_inc(x_803); +if (lean_is_exclusive(x_720)) { + lean_ctor_release(x_720, 0); + lean_ctor_release(x_720, 1); + x_804 = x_720; +} else { + lean_dec_ref(x_720); + x_804 = lean_box(0); +} +if (lean_is_scalar(x_804)) { + x_805 = lean_alloc_ctor(1, 2, 0); +} else { + x_805 = x_804; +} +lean_ctor_set(x_805, 0, x_802); +lean_ctor_set(x_805, 1, x_803); +return x_805; +} +} +else +{ +lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; +lean_dec(x_716); +lean_dec(x_712); +lean_dec(x_711); +lean_dec(x_709); +lean_dec(x_707); +lean_dec(x_689); +lean_dec(x_682); +lean_dec(x_679); +lean_dec(x_671); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_806 = lean_ctor_get(x_717, 0); +lean_inc(x_806); +x_807 = lean_ctor_get(x_717, 1); +lean_inc(x_807); +if (lean_is_exclusive(x_717)) { + lean_ctor_release(x_717, 0); + lean_ctor_release(x_717, 1); + x_808 = x_717; +} else { + lean_dec_ref(x_717); + x_808 = lean_box(0); +} +if (lean_is_scalar(x_808)) { + x_809 = lean_alloc_ctor(1, 2, 0); +} else { + x_809 = x_808; +} +lean_ctor_set(x_809, 0, x_806); +lean_ctor_set(x_809, 1, x_807); +return x_809; +} +} +else +{ +lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; +lean_dec(x_692); +lean_dec(x_689); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_679); +lean_dec(x_671); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_810 = lean_ctor_get(x_695, 0); +lean_inc(x_810); +x_811 = lean_ctor_get(x_695, 1); +lean_inc(x_811); +if (lean_is_exclusive(x_695)) { + lean_ctor_release(x_695, 0); + lean_ctor_release(x_695, 1); + x_812 = x_695; +} else { + lean_dec_ref(x_695); + x_812 = lean_box(0); +} +if (lean_is_scalar(x_812)) { + x_813 = lean_alloc_ctor(1, 2, 0); +} else { + x_813 = x_812; +} +lean_ctor_set(x_813, 0, x_810); +lean_ctor_set(x_813, 1, x_811); +return x_813; +} +} +else +{ +lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_679); +lean_dec(x_671); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_814 = lean_ctor_get(x_688, 0); +lean_inc(x_814); +x_815 = lean_ctor_get(x_688, 1); +lean_inc(x_815); +if (lean_is_exclusive(x_688)) { + lean_ctor_release(x_688, 0); + lean_ctor_release(x_688, 1); + x_816 = x_688; +} else { + lean_dec_ref(x_688); + x_816 = lean_box(0); +} +if (lean_is_scalar(x_816)) { + x_817 = lean_alloc_ctor(1, 2, 0); +} else { + x_817 = x_816; +} +lean_ctor_set(x_817, 0, x_814); +lean_ctor_set(x_817, 1, x_815); +return x_817; +} +} +} +} +block_26: +{ +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(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 +{ +lean_object* x_22; size_t x_23; size_t x_24; +x_22 = lean_ctor_get(x_18, 0); +lean_inc(x_22); +lean_dec(x_18); +x_23 = 1; +x_24 = lean_usize_add(x_6, x_23); +x_6 = x_24; +x_7 = x_22; +x_14 = x_19; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_array_get_size(x_10); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Array_toSubarray___rarg(x_10, x_12, x_11); +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_box(0); +x_16 = l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_array_size(x_14); +x_19 = 0; +x_20 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3(x_2, x_14, x_15, x_14, x_18, x_19, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_14); +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_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_20); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) +{ +return x_20; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +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_dec(x_20); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___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: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___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: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_Lean_MessageData_ofSyntax(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_Lean_MessageData_ofSyntax(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15; +x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds(lean_object* x_1, lean_object* x_2, 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_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_array_get_size(x_1); +x_59 = lean_unsigned_to_nat(0u); +x_60 = lean_nat_dec_lt(x_59, x_58); +lean_dec(x_58); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +x_61 = l_Lean_instInhabitedName; +x_62 = l_outOfBounds___rarg(x_61); +x_9 = x_62; +goto block_57; +} +else +{ +lean_object* x_63; +x_63 = lean_array_fget(x_1, x_59); +x_9 = x_63; +goto block_57; +} +block_57: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1; +lean_inc(x_2); +x_11 = l_Lean_Elab_Deriving_mkContext(x_10, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +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_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_12); +x_14 = l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l_Lean_Elab_Deriving_ToExpr_mkInstanceCmds(x_12, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_array_mk(x_21); +x_23 = l_Array_append___rarg(x_22, x_18); +lean_dec(x_18); +x_24 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1; +x_25 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_19); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +uint8_t x_28; +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_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_25, 0); +lean_dec(x_29); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +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; uint8_t x_41; +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_dec(x_25); +lean_inc(x_23); +x_33 = lean_array_to_list(x_23); +x_34 = l_List_mapTR_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___spec__1(x_33, x_20); +x_35 = l_Lean_MessageData_ofList(x_34); +x_36 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5; +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_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_24, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_32); +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_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_23); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_23); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_15); +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_45 = !lean_is_exclusive(x_17); +if (x_45 == 0) +{ +return x_17; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_17, 0); +x_47 = lean_ctor_get(x_17, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_17); +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; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_12); +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_49 = !lean_is_exclusive(x_14); +if (x_49 == 0) +{ +return x_14; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_14, 0); +x_51 = lean_ctor_get(x_14, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_14); +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_53; +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_53 = !lean_is_exclusive(x_11); +if (x_53 == 0) +{ +return x_11; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_11, 0); +x_55 = lean_ctor_get(x_11, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_11); +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_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___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_Elab_Deriving_ToExpr_mkToExprInstanceCmds(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1(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_st_ref_get(x_3, x_4); +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, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_environment_find(x_8, x_1); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; lean_object* x_11; +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +if (lean_obj_tag(x_12) == 5) +{ +uint8_t x_13; lean_object* x_14; +lean_dec(x_12); +x_13 = 1; +x_14 = lean_box(x_13); +lean_ctor_set(x_5, 0, x_14); +return x_5; +} +else +{ +uint8_t x_15; lean_object* x_16; +lean_dec(x_12); +x_15 = 0; +x_16 = lean_box(x_15); +lean_ctor_set(x_5, 0, x_16); +return x_5; +} +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_environment_find(x_19, x_1); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_21 = 0; +x_22 = lean_box(x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_18); +return x_23; +} +else +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_20, 0); +lean_inc(x_24); +lean_dec(x_20); +if (lean_obj_tag(x_24) == 5) +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_24); +x_25 = 1; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_18); +return x_27; +} +else +{ +uint8_t x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_24); +x_28 = 0; +x_29 = lean_box(x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_18); +return x_30; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_eq(x_2, x_3); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_1, x_2); +x_9 = l_Lean_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1(x_8, x_4, x_5, x_6); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 0); +lean_dec(x_13); +x_14 = 1; +x_15 = lean_box(x_14); +lean_ctor_set(x_9, 0, x_15); +return x_9; +} +else +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_dec(x_9); +x_17 = 1; +x_18 = lean_box(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; +} +} +else +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); +lean_dec(x_9); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_2 = x_22; +x_6 = x_20; +goto _start; +} +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_24 = 0; +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_6); +return x_26; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_autoImplicit; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 1); +x_4 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1; +x_5 = 1; +x_6 = l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(x_3, x_4, x_5); +lean_ctor_set(x_1, 1, x_6); +return x_1; +} +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; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_ctor_get(x_1, 2); +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get(x_1, 4); +x_12 = lean_ctor_get(x_1, 5); +x_13 = lean_ctor_get(x_1, 6); +x_14 = lean_ctor_get(x_1, 7); +x_15 = lean_ctor_get(x_1, 8); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +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_1); +x_17 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1; +x_18 = 1; +x_19 = l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(x_8, x_17, x_18); +x_20 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_19); +lean_ctor_set(x_20, 2, x_9); +lean_ctor_set(x_20, 3, x_10); +lean_ctor_set(x_20, 4, x_11); +lean_ctor_set(x_20, 5, x_12); +lean_ctor_set(x_20, 6, x_13); +lean_ctor_set(x_20, 7, x_14); +lean_ctor_set(x_20, 8, x_15); +lean_ctor_set_uint8(x_20, sizeof(void*)*9, x_16); +return x_20; +} +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler(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; lean_object* x_7; lean_object* x_44; uint8_t x_45; +x_5 = lean_array_get_size(x_1); +x_44 = lean_unsigned_to_nat(0u); +x_45 = lean_nat_dec_lt(x_44, x_5); +if (x_45 == 0) +{ +uint8_t x_46; +x_46 = 1; +x_6 = x_46; +x_7 = x_4; +goto block_43; +} +else +{ +size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_47 = 0; +x_48 = lean_usize_of_nat(x_5); +x_49 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__2(x_1, x_47, x_48, x_2, x_3, x_4); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_unbox(x_50); +lean_dec(x_50); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = 1; +x_6 = x_53; +x_7 = x_52; +goto block_43; +} +else +{ +lean_object* x_54; uint8_t x_55; +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +lean_dec(x_49); +x_55 = 0; +x_6 = x_55; +x_7 = x_54; +goto block_43; +} +} +block_43: +{ +if (x_6 == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_lt(x_11, x_5); +lean_dec(x_5); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +x_14 = lean_box(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_7); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___boxed), 8, 1); +lean_closure_set(x_16, 0, x_1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Command_liftTermElabM___rarg___boxed), 4, 1); +lean_closure_set(x_17, 0, x_16); +lean_inc(x_3); +lean_inc(x_2); +x_18 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_17, x_2, x_3, x_7); +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(x_18); +x_21 = lean_box(2); +x_22 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17; +x_23 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_19); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommand), 4, 1); +lean_closure_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1; +x_26 = l_Lean_Elab_Command_withScope___rarg(x_25, x_24, x_2, x_3, 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; uint8_t x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +x_29 = 1; +x_30 = lean_box(x_29); +lean_ctor_set(x_26, 0, x_30); +return x_26; +} +else +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_dec(x_26); +x_32 = 1; +x_33 = lean_box(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +return x_26; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_26, 0); +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_26); +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_3); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_18); +if (x_39 == 0) +{ +return x_18; +} +else +{ +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_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_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1___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_isInductive___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___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) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___spec__2(x_1, x_7, x_8, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_9; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler), 4, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("initFn", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5; +x_2 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_@", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7; +x_2 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9; +x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_hyg", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13; +x_2 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15; +x_2 = lean_unsigned_to_nat(5049u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12; +x_3 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1; +x_4 = l_Lean_Elab_registerDerivingHandler(x_2, x_3, x_1); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1; +x_7 = 0; +x_8 = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16; +x_9 = l_Lean_registerTraceClass(x_6, x_7, x_8, x_5); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_4); +if (x_10 == 0) +{ +return x_4; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_4); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +lean_object* initialize_Lean_Meta_Transform(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Deriving_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Deriving_Util(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_ToLevel(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_ToExpr(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Elab_Deriving_ToExpr(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_Transform(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Deriving_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Deriving_Util(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_ToLevel(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_ToExpr(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__1); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__2); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__3); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__4); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__5); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__6); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__7); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__8); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__9); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__10); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__11); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__12); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__13); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__14); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__15); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__16); +l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_ToExpr_mkAppNTerm___spec__1___closed__17); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__1); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__2); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__3); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__4); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__5); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__6); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__7); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__8); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__9); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__10 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__10); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__11 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__11(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__11); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__12); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__13); +l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14 = _init_l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_updateIndType___closed__14); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__2); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__3); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__4); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__5); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__6 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__6(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__6); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__7); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__1___closed__8); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__6); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__7); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__8); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__9); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__10); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__11 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__11(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__11); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__12 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__12(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__12); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___spec__2___closed__13); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__2); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__3); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__4); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__5); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__6); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__7); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__8); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__9); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__10); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__11); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__12); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__13); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__14); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__15); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__16); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__17); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__18); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___lambda__1___closed__19); +l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToTypeExpr___boxed__const__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__2); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__3); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__1___closed__4); +l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__1); +l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__2); +l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__3); +l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__2___closed__4); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__1); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__2); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__4___closed__3); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__1); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__6___closed__2); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__1); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__2); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__3); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__4); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__5); +l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6 = _init_l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Elab_Deriving_ToExpr_mkToExprBody_mkAlts___spec__7___lambda__1___closed__6); +l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__2); +l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__3); +l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__4); +l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprBody___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__6); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__7); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__8); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__9); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__10); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__11); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__12); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__13); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__14); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__15); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__16); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__17); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__18); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__19); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__20); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__21); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__22); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__23); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__24); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__25); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__26); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__27); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__28); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__29); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__30); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__31); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__32); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__33); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__34); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__35); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__36); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__37); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__38); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__39); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__40); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__41); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkLocalInstanceLetDecls___spec__1___closed__42); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__2); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__3); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__4); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__5); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__6); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__7); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__8); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__9); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__10); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__11); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__12); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__13); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkAuxFunction___spec__1___closed__14); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__2); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__3); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__4); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__5); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__6); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__7); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__8); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__9); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__10); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__11); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__12); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__13); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__14); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__15); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__16); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__17); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__18); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__19); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__20); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__21); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__22); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__23); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__24); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__25); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__26); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__27); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__28); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__29); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__30); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__31); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__32); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__33); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunction___lambda__1___closed__34); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__2); +l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkAuxFunctions___closed__3); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__6); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__7); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__8); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__9); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__10); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__11 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__11(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__11); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Deriving_ToExpr_mkInstanceCmds___spec__3___closed__12); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__2); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__3); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__4); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceCmds___closed__5); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___lambda__1___closed__1); +l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_mkToExprInstanceHandler___closed__1); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__1); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__2); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__3); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__4); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__5); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__6); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__7); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__8); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__9); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__10); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__11); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__12); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__13); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__14); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__15); +l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16 = _init_l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16(); +lean_mark_persistent(l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049____closed__16); +if (builtin) {res = l_Lean_Elab_Deriving_ToExpr_initFn____x40_Lean_Elab_Deriving_ToExpr___hyg_5049_(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/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index afb62c47cd..ae938f66b0 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -35,6 +35,7 @@ LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFie LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_structureSyntaxToView___closed__2; static lean_object* l_Lean_Elab_Command_StructView_ctor___closed__4; +static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_toVisibility___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__4___boxed(lean_object**); @@ -47,6 +48,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandF LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; +lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instDecidableEqStructFieldKind___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +95,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structu static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__18; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__6; lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_getStuckMVar_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerFailedToInferDefaultValue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -103,6 +106,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStr LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_declRangeExt; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__26(lean_object*, lean_object*, size_t, size_t); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__23; @@ -110,6 +114,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Stru LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Command_elabStructureCommand___elambda__1___spec__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_panic___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___spec__1(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__24___closed__9; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1; static lean_object* l_Lean_Elab_Command_elabStructureCommand___elambda__1___closed__1; @@ -141,6 +146,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Stru LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__4; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResultingUniversesForFields___spec__1___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___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*); @@ -196,8 +202,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_se LEAN_EXPORT lean_object* l_Lean_throwKernelException___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__5; extern lean_object* l_Lean_Elab_Command_inductiveElabAttr; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -209,6 +216,7 @@ static lean_object* l_Lean_Elab_Command_elabStructureCommand___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__24___closed__8; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instReprStructFieldInfo___closed__1; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__24___closed__2; @@ -270,7 +278,6 @@ uint8_t l_Lean_Linter_getLinterValue(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_setStructureParents___at_Lean_Elab_Command_elabStructureCommand___elambda__1___spec__14___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructureCommand___elambda__1___lambda__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_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -296,6 +303,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject___boxed LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__16(size_t, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_processOveriddenDefaultValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__22(uint8_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*); +uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -429,6 +437,7 @@ LEAN_EXPORT lean_object* l_Lean_computeStructureResolutionOrder___at___private_L LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__17(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__1; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__1; lean_object* lean_replace_expr(lean_object*, lean_object*); @@ -483,7 +492,6 @@ lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkDefaults___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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__3; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___closed__5; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_796____closed__6; @@ -506,7 +514,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_co lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_structureSyntaxToView___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__6; @@ -520,6 +527,7 @@ lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkDefaults___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); @@ -535,7 +543,8 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkDe LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_andList(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsedFVars___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value(lean_object*); @@ -606,6 +615,7 @@ static lean_object* l_Lean_Linter_logLint___at___private_Lean_Elab_Structure_0__ LEAN_EXPORT lean_object* l_Lean_computeStructureResolutionOrder_selectParent___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__11___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_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructureCommand___elambda__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -634,6 +644,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structur lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_computeStructureResolutionOrder___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6___boxed(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_Elab_Structure_0__Lean_Elab_Command_addDefaults___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); @@ -695,7 +706,6 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Struct LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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*); static lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_elabStructureCommand___elambda__1___spec__2___closed__1; static lean_object* l_Lean_getDocStringText___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -743,7 +753,7 @@ LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_decEqSt LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___closed__3; @@ -764,6 +774,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_wi uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); uint8_t l_Lean_Level_geq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabInductives___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -810,7 +821,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_co lean_object* lean_name_append_index_after(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__14(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedStructView___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__27(lean_object*, lean_object*, size_t, size_t); @@ -826,6 +837,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_pr static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___closed__3; lean_object* l_Lean_Elab_Term_addTermInfo_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__8(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__16___closed__2; @@ -839,7 +851,7 @@ LEAN_EXPORT lean_object* l_Lean_computeStructureResolutionOrder_selectParent___a LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__2; static lean_object* l_Lean_Linter_logLint___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -857,6 +869,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withPar static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_1023____closed__28; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_structureSyntaxToView___spec__2___lambda__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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -884,6 +897,7 @@ static lean_object* l_Lean_setStructureParents___at_Lean_Elab_Command_elabStruct lean_object* l_Lean_CollectMVars_visit(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkDefaults___closed__6; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__4; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -953,6 +967,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_wi LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed___closed__4; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__10(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_elabStructureCommand___elambda__1___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go(lean_object*); @@ -999,10 +1014,12 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemai uint8_t l_Lean_Expr_isProp(lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerLevelMVarErrorExprInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResultingUniversesForFields___spec__1___closed__8; static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed___closed__2; lean_object* l_Lean_logWarning___at___private_Lean_Elab_Term_0__Lean_Elab_Term_checkDeprecatedCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_structureSyntaxToView___spec__2___closed__2; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___spec__2(lean_object*, lean_object*, size_t, size_t); @@ -1016,6 +1033,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_ex LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__6___boxed(lean_object**); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabStructureCommand__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__15___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_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_Linter_linter_deprecated; @@ -1031,6 +1049,7 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Elab_Structu LEAN_EXPORT lean_object* l_Lean_computeStructureResolutionOrder___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addParentInstances___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_3____closed__20; +extern lean_object* l_Lean_instInhabitedDeclarationRanges; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__2___closed__3; lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__9; @@ -1157,6 +1176,7 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Elab_Structu LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__19(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabStructureCommand___elambda__1___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_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__3___closed__2; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__3; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1255,6 +1275,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNew static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_796____closed__4; lean_object* l_panic___at_Lean_Meta_mkPProdFst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_collectFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1273,6 +1294,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStr static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerFailedToInferDefaultValue___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Command_elabStructureCommand___elambda__1___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_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkResolutionOrder___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -25120,7 +25142,703 @@ return x_66; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = 0; +x_10 = l_Lean_Syntax_getRange_x3f(x_1, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_10); +if (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; uint8_t x_21; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_6, 1); +lean_inc(x_15); +lean_dec(x_6); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_inc(x_15); +x_17 = l_Lean_FileMap_toPosition(x_15, x_16); +lean_dec(x_16); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +lean_inc(x_15); +x_19 = l_Lean_FileMap_toPosition(x_15, x_18); +lean_dec(x_18); +lean_inc(x_17); +x_20 = l_Lean_FileMap_leanPosToLspPos(x_15, x_17); +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_26; +x_22 = lean_ctor_get(x_20, 1); +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +lean_inc(x_19); +x_24 = l_Lean_FileMap_leanPosToLspPos(x_15, x_19); +lean_dec(x_15); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_17); +lean_ctor_set(x_26, 1, x_22); +lean_ctor_set(x_26, 2, x_19); +lean_ctor_set(x_26, 3, x_25); +lean_ctor_set(x_10, 0, x_26); +lean_ctor_set(x_20, 1, x_8); +lean_ctor_set(x_20, 0, x_10); +return x_20; +} +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(x_20); +lean_inc(x_19); +x_28 = l_Lean_FileMap_leanPosToLspPos(x_15, x_19); +lean_dec(x_15); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_27); +lean_ctor_set(x_30, 2, x_19); +lean_ctor_set(x_30, 3, x_29); +lean_ctor_set(x_10, 0, x_30); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_10); +lean_ctor_set(x_31, 1, x_8); +return x_31; +} +} +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_object* x_44; lean_object* x_45; +x_32 = lean_ctor_get(x_10, 0); +lean_inc(x_32); +lean_dec(x_10); +x_33 = lean_ctor_get(x_6, 1); +lean_inc(x_33); +lean_dec(x_6); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_inc(x_33); +x_35 = l_Lean_FileMap_toPosition(x_33, x_34); +lean_dec(x_34); +x_36 = lean_ctor_get(x_32, 1); +lean_inc(x_36); +lean_dec(x_32); +lean_inc(x_33); +x_37 = l_Lean_FileMap_toPosition(x_33, x_36); +lean_dec(x_36); +lean_inc(x_35); +x_38 = l_Lean_FileMap_leanPosToLspPos(x_33, x_35); +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); +} +lean_inc(x_37); +x_41 = l_Lean_FileMap_leanPosToLspPos(x_33, x_37); +lean_dec(x_33); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_35); +lean_ctor_set(x_43, 1, x_39); +lean_ctor_set(x_43, 2, x_37); +lean_ctor_set(x_43, 3, x_42); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +if (lean_is_scalar(x_40)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_40; +} +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_8); +return x_45; +} +} +} +} +static lean_object* _init_l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_declRangeExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_instInhabitedDeclarationRanges; +x_16 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1; +lean_inc(x_1); +x_17 = l_Lean_MapDeclarationExtension_contains___rarg(x_15, x_16, x_14, x_1); +lean_dec(x_14); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_free_object(x_10); +x_18 = lean_st_ref_take(x_8, x_13); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = !lean_is_exclusive(x_19); +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_ctor_get(x_19, 0); +x_23 = lean_ctor_get(x_19, 4); +lean_dec(x_23); +x_24 = l_Lean_MapDeclarationExtension_insert___rarg(x_16, x_22, x_1, x_2); +x_25 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +lean_ctor_set(x_19, 4, x_25); +lean_ctor_set(x_19, 0, x_24); +x_26 = lean_st_ref_set(x_8, x_19, x_20); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_st_ref_take(x_6, x_27); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_29, 1); +lean_dec(x_32); +x_33 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +lean_ctor_set(x_29, 1, x_33); +x_34 = lean_st_ref_set(x_6, x_29, x_30); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +x_37 = lean_box(0); +lean_ctor_set(x_34, 0, x_37); +return x_34; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 1); +lean_inc(x_38); +lean_dec(x_34); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +else +{ +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; +x_41 = lean_ctor_get(x_29, 0); +x_42 = lean_ctor_get(x_29, 2); +x_43 = lean_ctor_get(x_29, 3); +x_44 = lean_ctor_get(x_29, 4); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_29); +x_45 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +x_46 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_46, 0, x_41); +lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_46, 2, x_42); +lean_ctor_set(x_46, 3, x_43); +lean_ctor_set(x_46, 4, x_44); +x_47 = lean_st_ref_set(x_6, x_46, x_30); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = lean_box(0); +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_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +} +else +{ +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; +x_52 = lean_ctor_get(x_19, 0); +x_53 = lean_ctor_get(x_19, 1); +x_54 = lean_ctor_get(x_19, 2); +x_55 = lean_ctor_get(x_19, 3); +x_56 = lean_ctor_get(x_19, 5); +x_57 = lean_ctor_get(x_19, 6); +x_58 = lean_ctor_get(x_19, 7); +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_dec(x_19); +x_59 = l_Lean_MapDeclarationExtension_insert___rarg(x_16, x_52, x_1, x_2); +x_60 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +x_61 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_53); +lean_ctor_set(x_61, 2, x_54); +lean_ctor_set(x_61, 3, x_55); +lean_ctor_set(x_61, 4, x_60); +lean_ctor_set(x_61, 5, x_56); +lean_ctor_set(x_61, 6, x_57); +lean_ctor_set(x_61, 7, x_58); +x_62 = lean_st_ref_set(x_8, x_61, x_20); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_st_ref_take(x_6, x_63); +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(x_64); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_65, 2); +lean_inc(x_68); +x_69 = lean_ctor_get(x_65, 3); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 4); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + lean_ctor_release(x_65, 2); + lean_ctor_release(x_65, 3); + lean_ctor_release(x_65, 4); + x_71 = x_65; +} else { + lean_dec_ref(x_65); + x_71 = lean_box(0); +} +x_72 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 5, 0); +} else { + x_73 = x_71; +} +lean_ctor_set(x_73, 0, x_67); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_68); +lean_ctor_set(x_73, 3, x_69); +lean_ctor_set(x_73, 4, x_70); +x_74 = lean_st_ref_set(x_6, x_73, x_66); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; +} else { + lean_dec_ref(x_74); + x_76 = lean_box(0); +} +x_77 = lean_box(0); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_76; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_2); +lean_dec(x_1); +x_79 = lean_box(0); +lean_ctor_set(x_10, 0, x_79); +return x_10; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_80 = lean_ctor_get(x_10, 0); +x_81 = lean_ctor_get(x_10, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_10); +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +lean_dec(x_80); +x_83 = l_Lean_instInhabitedDeclarationRanges; +x_84 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1; +lean_inc(x_1); +x_85 = l_Lean_MapDeclarationExtension_contains___rarg(x_83, x_84, x_82, x_1); +lean_dec(x_82); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_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; +x_86 = lean_st_ref_take(x_8, x_81); +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(x_86); +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_90); +x_91 = lean_ctor_get(x_87, 2); +lean_inc(x_91); +x_92 = lean_ctor_get(x_87, 3); +lean_inc(x_92); +x_93 = lean_ctor_get(x_87, 5); +lean_inc(x_93); +x_94 = lean_ctor_get(x_87, 6); +lean_inc(x_94); +x_95 = lean_ctor_get(x_87, 7); +lean_inc(x_95); +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); + x_96 = x_87; +} else { + lean_dec_ref(x_87); + x_96 = lean_box(0); +} +x_97 = l_Lean_MapDeclarationExtension_insert___rarg(x_84, x_89, x_1, x_2); +x_98 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +if (lean_is_scalar(x_96)) { + x_99 = lean_alloc_ctor(0, 8, 0); +} else { + x_99 = x_96; +} +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_90); +lean_ctor_set(x_99, 2, x_91); +lean_ctor_set(x_99, 3, x_92); +lean_ctor_set(x_99, 4, x_98); +lean_ctor_set(x_99, 5, x_93); +lean_ctor_set(x_99, 6, x_94); +lean_ctor_set(x_99, 7, x_95); +x_100 = lean_st_ref_set(x_8, x_99, x_88); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_st_ref_take(x_6, x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = lean_ctor_get(x_103, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_103, 2); +lean_inc(x_106); +x_107 = lean_ctor_get(x_103, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_103, 4); +lean_inc(x_108); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + lean_ctor_release(x_103, 2); + lean_ctor_release(x_103, 3); + lean_ctor_release(x_103, 4); + x_109 = x_103; +} else { + lean_dec_ref(x_103); + x_109 = lean_box(0); +} +x_110 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +if (lean_is_scalar(x_109)) { + x_111 = lean_alloc_ctor(0, 5, 0); +} else { + x_111 = x_109; +} +lean_ctor_set(x_111, 0, x_105); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_111, 2, x_106); +lean_ctor_set(x_111, 3, x_107); +lean_ctor_set(x_111, 4, x_108); +x_112 = lean_st_ref_set(x_6, x_111, x_104); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; +} else { + lean_dec_ref(x_112); + x_114 = lean_box(0); +} +x_115 = lean_box(0); +if (lean_is_scalar(x_114)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_114; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_113); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_2); +lean_dec(x_1); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_81); +return x_118; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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; lean_object* x_12; +lean_inc(x_8); +x_11 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_8); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +lean_inc(x_8); +x_21 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_ctor_get(x_21, 0); +lean_dec(x_25); +lean_inc(x_20); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_21, 0, x_20); +x_26 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(x_1, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +lean_dec(x_8); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_dec(x_21); +lean_inc(x_20); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_20); +x_29 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +lean_dec(x_8); +return x_29; +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_21); +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_21, 1); +x_32 = lean_ctor_get(x_21, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_22, 0); +lean_inc(x_33); +lean_dec(x_22); +lean_ctor_set(x_21, 1, x_33); +lean_ctor_set(x_21, 0, x_20); +x_34 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(x_1, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +lean_dec(x_8); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_21, 1); +lean_inc(x_35); +lean_dec(x_21); +x_36 = lean_ctor_get(x_22, 0); +lean_inc(x_36); +lean_dec(x_22); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(x_1, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +lean_dec(x_8); +return x_38; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_6, x_5); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +lean_dec(x_7); +x_17 = lean_array_uget(x_4, x_6); +x_18 = l_Lean_Elab_Command_StructFieldInfo_isSubobject(x_17); +if (x_18 == 0) +{ +size_t x_19; size_t x_20; lean_object* x_21; +lean_dec(x_17); +x_19 = 1; +x_20 = lean_usize_add(x_6, x_19); +x_21 = lean_box(0); +x_6 = 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; size_t x_28; size_t x_29; lean_object* x_30; +x_23 = lean_ctor_get(x_17, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_ctor_get(x_17, 0); +lean_inc(x_25); +lean_dec(x_17); +lean_inc(x_12); +x_26 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(x_23, x_24, x_25, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_25); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = 1; +x_29 = lean_usize_add(x_6, x_28); +x_30 = lean_box(0); +x_6 = x_29; +x_7 = x_30; +x_14 = x_27; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -25153,7 +25871,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -25298,36 +26016,36 @@ x_14 = 0; x_15 = lean_st_ref_get(x_9, x_10); if (x_13 == 0) { -lean_object* x_37; +lean_object* x_46; lean_dec(x_11); -x_37 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_16 = x_37; -goto block_36; +x_46 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_16 = x_46; +goto block_45; } else { -uint8_t x_38; -x_38 = lean_nat_dec_le(x_11, x_11); -if (x_38 == 0) +uint8_t x_47; +x_47 = lean_nat_dec_le(x_11, x_11); +if (x_47 == 0) { -lean_object* x_39; +lean_object* x_48; lean_dec(x_11); -x_39 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_16 = x_39; -goto block_36; +x_48 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_16 = x_48; +goto block_45; } else { -size_t x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_usize_of_nat(x_11); +size_t x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_usize_of_nat(x_11); lean_dec(x_11); -x_41 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_42 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(x_1, x_14, x_40, x_41); -x_16 = x_42; -goto block_36; +x_50 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_51 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10(x_1, x_14, x_49, x_50); +x_16 = x_51; +goto block_45; } } -block_36: +block_45: { lean_object* x_17; lean_object* x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; x_17 = lean_ctor_get(x_15, 0); @@ -25350,46 +26068,72 @@ x_24 = lean_ctor_get(x_23, 4); lean_inc(x_24); x_25 = lean_array_to_list(x_20); x_26 = lean_ctor_get_uint8(x_23, sizeof(void*)*11); -lean_dec(x_23); x_27 = lean_mk_projections(x_21, x_24, x_25, x_26); lean_inc(x_8); lean_inc(x_4); x_28 = l_Lean_ofExceptKernelException___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__2(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_18); if (lean_obj_tag(x_28) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 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(x_28); x_31 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5(x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_30); -lean_dec(x_8); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_box(0); +x_34 = lean_array_size(x_1); +x_35 = lean_box(0); +x_36 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__9(x_1, x_23, x_33, x_1, x_34, x_14, x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_32); lean_dec(x_4); -return x_31; +lean_dec(x_23); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_35); +return x_36; } else { -uint8_t x_32; +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_35); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +else +{ +uint8_t x_41; +lean_dec(x_23); lean_dec(x_8); lean_dec(x_4); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) +x_41 = !lean_is_exclusive(x_28); +if (x_41 == 0) { return x_28; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 0); -x_34 = lean_ctor_get(x_28, 1); -lean_inc(x_34); -lean_inc(x_33); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_28, 0); +x_43 = lean_ctor_get(x_28, 1); +lean_inc(x_43); +lean_inc(x_42); lean_dec(x_28); -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_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; } } } @@ -25488,7 +26232,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_59 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(x_2, x_15, x_58, x_2, x_17, x_18, x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_59 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__11(x_2, x_15, x_58, x_2, x_17, x_18, x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_59) == 0) { lean_object* x_60; lean_object* x_61; @@ -25732,20 +26476,50 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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) { _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_object* x_9; +x_9 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(x_1, x_5, x_6, x_4); +lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_9; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__6(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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { size_t x_15; size_t x_16; lean_object* x_17; @@ -25753,7 +26527,41 @@ x_15 = lean_unbox_usize(x_5); lean_dec(x_5); x_16 = lean_unbox_usize(x_6); lean_dec(x_6); -x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__7(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__9(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10___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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__10(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__11(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); @@ -30766,7 +31574,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_Elab_Command_StructView_ctor___closed__1; x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_setSourceInstImplicit___closed__1; -x_3 = lean_unsigned_to_nat(773u); +x_3 = lean_unsigned_to_nat(776u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_Elab_Command_StructView_ctor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -31154,7 +31962,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_Elab_Command_StructView_ctor___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(798u); +x_3 = lean_unsigned_to_nat(801u); x_4 = lean_unsigned_to_nat(77u); x_5 = l_Lean_Elab_Command_StructView_ctor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -31455,7 +32263,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_Elab_Command_StructView_ctor___closed__1; x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(789u); +x_3 = lean_unsigned_to_nat(792u); x_4 = lean_unsigned_to_nat(68u); x_5 = l_Lean_Elab_Command_StructView_ctor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -31607,6 +32415,637 @@ lean_dec(x_3); return x_10; } } +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___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) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = 0; +x_8 = l_Lean_Syntax_getRange_x3f(x_1, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +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_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_4, 1); +lean_inc(x_13); +lean_dec(x_4); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_inc(x_13); +x_15 = l_Lean_FileMap_toPosition(x_13, x_14); +lean_dec(x_14); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +lean_inc(x_13); +x_17 = l_Lean_FileMap_toPosition(x_13, x_16); +lean_dec(x_16); +lean_inc(x_15); +x_18 = l_Lean_FileMap_leanPosToLspPos(x_13, x_15); +x_19 = !lean_is_exclusive(x_18); +if (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_18, 1); +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +lean_inc(x_17); +x_22 = l_Lean_FileMap_leanPosToLspPos(x_13, x_17); +lean_dec(x_13); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_20); +lean_ctor_set(x_24, 2, x_17); +lean_ctor_set(x_24, 3, x_23); +lean_ctor_set(x_8, 0, x_24); +lean_ctor_set(x_18, 1, x_6); +lean_ctor_set(x_18, 0, x_8); +return x_18; +} +else +{ +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_18, 1); +lean_inc(x_25); +lean_dec(x_18); +lean_inc(x_17); +x_26 = l_Lean_FileMap_leanPosToLspPos(x_13, x_17); +lean_dec(x_13); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_28, 0, x_15); +lean_ctor_set(x_28, 1, x_25); +lean_ctor_set(x_28, 2, x_17); +lean_ctor_set(x_28, 3, x_27); +lean_ctor_set(x_8, 0, x_28); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_8); +lean_ctor_set(x_29, 1, x_6); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_8, 0); +lean_inc(x_30); +lean_dec(x_8); +x_31 = lean_ctor_get(x_4, 1); +lean_inc(x_31); +lean_dec(x_4); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_inc(x_31); +x_33 = l_Lean_FileMap_toPosition(x_31, x_32); +lean_dec(x_32); +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +lean_inc(x_31); +x_35 = l_Lean_FileMap_toPosition(x_31, x_34); +lean_dec(x_34); +lean_inc(x_33); +x_36 = l_Lean_FileMap_leanPosToLspPos(x_31, x_33); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +lean_inc(x_35); +x_39 = l_Lean_FileMap_leanPosToLspPos(x_31, x_35); +lean_dec(x_31); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_41, 0, x_33); +lean_ctor_set(x_41, 1, x_37); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 3, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +if (lean_is_scalar(x_38)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_38; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_6); +return x_43; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__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; uint8_t x_9; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_instInhabitedDeclarationRanges; +x_14 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1; +lean_inc(x_1); +x_15 = l_Lean_MapDeclarationExtension_contains___rarg(x_13, x_14, x_12, x_1); +lean_dec(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_free_object(x_8); +x_16 = lean_st_ref_take(x_6, x_11); +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(x_16); +x_19 = !lean_is_exclusive(x_17); +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; uint8_t x_29; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 4); +lean_dec(x_21); +x_22 = l_Lean_MapDeclarationExtension_insert___rarg(x_14, x_20, x_1, x_2); +x_23 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +lean_ctor_set(x_17, 4, x_23); +lean_ctor_set(x_17, 0, x_22); +x_24 = lean_st_ref_set(x_6, x_17, x_18); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_take(x_4, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_27, 1); +lean_dec(x_30); +x_31 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +lean_ctor_set(x_27, 1, x_31); +x_32 = lean_st_ref_set(x_4, x_27, x_28); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_box(0); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_32, 1); +lean_inc(x_36); +lean_dec(x_32); +x_37 = lean_box(0); +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 +{ +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_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 2); +x_41 = lean_ctor_get(x_27, 3); +x_42 = lean_ctor_get(x_27, 4); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_27); +x_43 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +x_44 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_44, 0, x_39); +lean_ctor_set(x_44, 1, x_43); +lean_ctor_set(x_44, 2, x_40); +lean_ctor_set(x_44, 3, x_41); +lean_ctor_set(x_44, 4, x_42); +x_45 = lean_st_ref_set(x_4, x_44, x_28); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +x_48 = lean_box(0); +if (lean_is_scalar(x_47)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_47; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +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; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_50 = lean_ctor_get(x_17, 0); +x_51 = lean_ctor_get(x_17, 1); +x_52 = lean_ctor_get(x_17, 2); +x_53 = lean_ctor_get(x_17, 3); +x_54 = lean_ctor_get(x_17, 5); +x_55 = lean_ctor_get(x_17, 6); +x_56 = lean_ctor_get(x_17, 7); +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_inc(x_50); +lean_dec(x_17); +x_57 = l_Lean_MapDeclarationExtension_insert___rarg(x_14, x_50, x_1, x_2); +x_58 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +x_59 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_59, 2, x_52); +lean_ctor_set(x_59, 3, x_53); +lean_ctor_set(x_59, 4, x_58); +lean_ctor_set(x_59, 5, x_54); +lean_ctor_set(x_59, 6, x_55); +lean_ctor_set(x_59, 7, x_56); +x_60 = lean_st_ref_set(x_6, x_59, x_18); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_st_ref_take(x_4, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_63, 2); +lean_inc(x_66); +x_67 = lean_ctor_get(x_63, 3); +lean_inc(x_67); +x_68 = lean_ctor_get(x_63, 4); +lean_inc(x_68); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + lean_ctor_release(x_63, 2); + lean_ctor_release(x_63, 3); + lean_ctor_release(x_63, 4); + x_69 = x_63; +} else { + lean_dec_ref(x_63); + x_69 = lean_box(0); +} +x_70 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 5, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_65); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_71, 2, x_66); +lean_ctor_set(x_71, 3, x_67); +lean_ctor_set(x_71, 4, x_68); +x_72 = lean_st_ref_set(x_4, x_71, x_64); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; +} else { + lean_dec_ref(x_72); + x_74 = lean_box(0); +} +x_75 = lean_box(0); +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_74; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_73); +return x_76; +} +} +else +{ +lean_object* x_77; +lean_dec(x_2); +lean_dec(x_1); +x_77 = lean_box(0); +lean_ctor_set(x_8, 0, x_77); +return x_8; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_78 = lean_ctor_get(x_8, 0); +x_79 = lean_ctor_get(x_8, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_8); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +lean_dec(x_78); +x_81 = l_Lean_instInhabitedDeclarationRanges; +x_82 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1; +lean_inc(x_1); +x_83 = l_Lean_MapDeclarationExtension_contains___rarg(x_81, x_82, x_80, x_1); +lean_dec(x_80); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 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; +x_84 = lean_st_ref_take(x_6, x_79); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_ctor_get(x_85, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_85, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_85, 2); +lean_inc(x_89); +x_90 = lean_ctor_get(x_85, 3); +lean_inc(x_90); +x_91 = lean_ctor_get(x_85, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_85, 6); +lean_inc(x_92); +x_93 = lean_ctor_get(x_85, 7); +lean_inc(x_93); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + lean_ctor_release(x_85, 2); + lean_ctor_release(x_85, 3); + lean_ctor_release(x_85, 4); + lean_ctor_release(x_85, 5); + lean_ctor_release(x_85, 6); + lean_ctor_release(x_85, 7); + x_94 = x_85; +} else { + lean_dec_ref(x_85); + x_94 = lean_box(0); +} +x_95 = l_Lean_MapDeclarationExtension_insert___rarg(x_82, x_87, x_1, x_2); +x_96 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3; +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 8, 0); +} else { + x_97 = x_94; +} +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_88); +lean_ctor_set(x_97, 2, x_89); +lean_ctor_set(x_97, 3, x_90); +lean_ctor_set(x_97, 4, x_96); +lean_ctor_set(x_97, 5, x_91); +lean_ctor_set(x_97, 6, x_92); +lean_ctor_set(x_97, 7, x_93); +x_98 = lean_st_ref_set(x_6, x_97, x_86); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = lean_st_ref_take(x_4, x_99); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_ctor_get(x_101, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_101, 2); +lean_inc(x_104); +x_105 = lean_ctor_get(x_101, 3); +lean_inc(x_105); +x_106 = lean_ctor_get(x_101, 4); +lean_inc(x_106); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + lean_ctor_release(x_101, 2); + lean_ctor_release(x_101, 3); + lean_ctor_release(x_101, 4); + x_107 = x_101; +} else { + lean_dec_ref(x_101); + x_107 = lean_box(0); +} +x_108 = l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4; +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 5, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_103); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_109, 2, x_104); +lean_ctor_set(x_109, 3, x_105); +lean_ctor_set(x_109, 4, x_106); +x_110 = lean_st_ref_set(x_4, x_109, x_102); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_112 = x_110; +} else { + lean_dec_ref(x_110); + x_112 = lean_box(0); +} +x_113 = lean_box(0); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_112; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_2); +lean_dec(x_1); +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_79); +return x_116; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; +lean_inc(x_6); +x_9 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_2, x_4, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_6); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_box(0); +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; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +lean_inc(x_6); +x_19 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_3, x_4, x_5, x_6, x_7, x_17); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +lean_inc(x_18); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_19, 0, x_18); +x_24 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(x_1, x_19, x_4, x_5, x_6, x_7, x_22); +lean_dec(x_6); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_dec(x_19); +lean_inc(x_18); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_18); +x_27 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(x_1, x_26, x_4, x_5, x_6, x_7, x_25); +lean_dec(x_6); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_19); +if (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_19, 1); +x_30 = lean_ctor_get(x_19, 0); +lean_dec(x_30); +x_31 = lean_ctor_get(x_20, 0); +lean_inc(x_31); +lean_dec(x_20); +lean_ctor_set(x_19, 1, x_31); +lean_ctor_set(x_19, 0, x_18); +x_32 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(x_1, x_19, x_4, x_5, x_6, x_7, x_29); +lean_dec(x_6); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_19, 1); +lean_inc(x_33); +lean_dec(x_19); +x_34 = lean_ctor_get(x_20, 0); +lean_inc(x_34); +lean_dec(x_20); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(x_1, x_35, x_4, x_5, x_6, x_7, x_33); +lean_dec(x_6); +return x_36; +} +} +} +} +} LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -31628,119 +33067,144 @@ return x_7; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_9; lean_object* x_10; lean_object* x_11; -x_9 = 0; -x_10 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_2); -lean_ctor_set_uint8(x_10, sizeof(void*)*2, x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_8); -return x_11; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_11 = l_Lean_Meta_isProp(x_1, 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; 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(x_11); -x_14 = l_Lean_BinderInfo_isInstImplicit(x_4); -if (x_14 == 0) -{ -uint8_t x_15; -x_15 = lean_unbox(x_12); -lean_dec(x_12); -if (x_15 == 0) -{ -uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = 0; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_2, 0); lean_inc(x_3); -x_17 = l_Lean_setReducibilityStatus___at___private_Lean_Meta_Constructions_BRecOn_0__Lean_mkBelowFromRec___spec__7(x_3, x_16, x_6, x_7, x_8, x_9, x_13); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_18, x_6, x_7, x_8, x_9, x_19); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_18); -return x_20; +x_12 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_3, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_2, 2); +x_16 = 0; +lean_inc(x_15); +x_17 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_3); +lean_ctor_set_uint8(x_17, sizeof(void*)*2, x_16); +lean_ctor_set(x_12, 0, x_17); +return x_12; } else { -lean_object* x_21; lean_object* x_22; -x_21 = lean_box(0); -x_22 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_21, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_ctor_get(x_2, 2); +x_20 = 0; +lean_inc(x_19); +x_21 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_3); +lean_ctor_set_uint8(x_21, sizeof(void*)*2, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); return x_22; } } -else +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: { -lean_object* x_23; lean_object* x_24; +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_12 = l_Lean_Meta_isProp(x_1, 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_12, 1); +lean_inc(x_14); lean_dec(x_12); -x_23 = lean_box(0); -x_24 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_23, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_9); +x_15 = l_Lean_BinderInfo_isInstImplicit(x_5); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = lean_unbox(x_13); +lean_dec(x_13); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = 0; +lean_inc(x_4); +x_18 = l_Lean_setReducibilityStatus___at___private_Lean_Meta_Constructions_BRecOn_0__Lean_mkBelowFromRec___spec__7(x_4, x_17, x_7, x_8, x_9, x_10, x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_4, x_19, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -return x_24; +lean_dec(x_19); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_4, x_22, x_7, x_8, x_9, x_10, x_14); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +return x_23; } } else { -uint8_t x_25; -lean_dec(x_9); +lean_object* x_24; lean_object* x_25; +lean_dec(x_13); +x_24 = lean_box(0); +x_25 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_2, x_3, x_4, x_24, x_7, x_8, x_9, x_10, x_14); +lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_25 = !lean_is_exclusive(x_11); -if (x_25 == 0) -{ -return x_11; +return x_25; +} } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_11, 0); -x_27 = lean_ctor_get(x_11, 1); +uint8_t x_26; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +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_inc(x_26); -lean_dec(x_11); -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_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___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, uint8_t 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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, uint8_t x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; @@ -31810,10 +33274,10 @@ x_45 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_8); lean_ctor_set(x_45, 2, x_23); -if (x_11 == 0) +if (x_12 == 0) { lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_12, 2); +x_46 = lean_ctor_get(x_9, 2); x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*3 + 3); lean_inc(x_44); lean_ctor_set_tag(x_35, 1); @@ -31843,7 +33307,7 @@ lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); -x_55 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_44, x_10, x_53, x_16, x_17, x_18, x_19, x_54); +x_55 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_44, x_11, x_53, x_16, x_17, x_18, x_19, x_54); lean_dec(x_53); return x_55; } @@ -31855,7 +33319,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_56 = !lean_is_exclusive(x_52); if (x_56 == 0) @@ -31901,7 +33364,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); lean_dec(x_64); -x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_44, x_10, x_65, x_16, x_17, x_18, x_19, x_66); +x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_44, x_11, x_65, x_16, x_17, x_18, x_19, x_66); lean_dec(x_65); return x_67; } @@ -31913,7 +33376,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_68 = !lean_is_exclusive(x_64); if (x_68 == 0) @@ -31939,7 +33401,7 @@ return x_71; else { lean_object* x_72; uint8_t x_73; -x_72 = lean_ctor_get(x_12, 2); +x_72 = lean_ctor_get(x_9, 2); x_73 = lean_ctor_get_uint8(x_72, sizeof(void*)*3 + 3); if (x_73 == 0) { @@ -31965,7 +33427,7 @@ lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_44, x_10, x_77, x_16, x_17, x_18, x_19, x_78); +x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_44, x_11, x_77, x_16, x_17, x_18, x_19, x_78); lean_dec(x_77); return x_79; } @@ -31977,7 +33439,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_80 = !lean_is_exclusive(x_76); if (x_80 == 0) @@ -32024,7 +33485,7 @@ lean_inc(x_87); x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); lean_dec(x_86); -x_89 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_44, x_10, x_87, x_16, x_17, x_18, x_19, x_88); +x_89 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_44, x_11, x_87, x_16, x_17, x_18, x_19, x_88); lean_dec(x_87); return x_89; } @@ -32036,7 +33497,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_90 = !lean_is_exclusive(x_86); if (x_90 == 0) @@ -32071,7 +33531,6 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -32124,10 +33583,10 @@ x_106 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_106, 0, x_105); lean_ctor_set(x_106, 1, x_8); lean_ctor_set(x_106, 2, x_23); -if (x_11 == 0) +if (x_12 == 0) { lean_object* x_107; uint8_t x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_12, 2); +x_107 = lean_ctor_get(x_9, 2); x_108 = lean_ctor_get_uint8(x_107, sizeof(void*)*3 + 3); lean_inc(x_105); x_109 = lean_alloc_ctor(1, 2, 0); @@ -32157,7 +33616,7 @@ lean_inc(x_115); x_116 = lean_ctor_get(x_114, 1); lean_inc(x_116); lean_dec(x_114); -x_117 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_105, x_10, x_115, x_16, x_17, x_18, x_19, x_116); +x_117 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_105, x_11, x_115, x_16, x_17, x_18, x_19, x_116); lean_dec(x_115); return x_117; } @@ -32169,7 +33628,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_118 = lean_ctor_get(x_114, 0); lean_inc(x_118); @@ -32217,7 +33675,7 @@ lean_inc(x_127); x_128 = lean_ctor_get(x_126, 1); lean_inc(x_128); lean_dec(x_126); -x_129 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_105, x_10, x_127, x_16, x_17, x_18, x_19, x_128); +x_129 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_105, x_11, x_127, x_16, x_17, x_18, x_19, x_128); lean_dec(x_127); return x_129; } @@ -32229,7 +33687,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_130 = lean_ctor_get(x_126, 0); lean_inc(x_130); @@ -32257,7 +33714,7 @@ return x_133; else { lean_object* x_134; uint8_t x_135; -x_134 = lean_ctor_get(x_12, 2); +x_134 = lean_ctor_get(x_9, 2); x_135 = lean_ctor_get_uint8(x_134, sizeof(void*)*3 + 3); if (x_135 == 0) { @@ -32283,7 +33740,7 @@ lean_inc(x_140); x_141 = lean_ctor_get(x_139, 1); lean_inc(x_141); lean_dec(x_139); -x_142 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_105, x_10, x_140, x_16, x_17, x_18, x_19, x_141); +x_142 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_105, x_11, x_140, x_16, x_17, x_18, x_19, x_141); lean_dec(x_140); return x_142; } @@ -32295,7 +33752,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_143 = lean_ctor_get(x_139, 0); lean_inc(x_143); @@ -32344,7 +33800,7 @@ lean_inc(x_151); x_152 = lean_ctor_get(x_150, 1); lean_inc(x_152); lean_dec(x_150); -x_153 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_105, x_10, x_151, x_16, x_17, x_18, x_19, x_152); +x_153 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_5, x_9, x_10, x_105, x_11, x_151, x_16, x_17, x_18, x_19, x_152); lean_dec(x_151); return x_153; } @@ -32356,7 +33812,6 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_9); lean_dec(x_5); x_154 = lean_ctor_get(x_150, 0); lean_inc(x_154); @@ -32392,7 +33847,6 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -32429,7 +33883,6 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -32463,7 +33916,6 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -32497,7 +33949,6 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_13); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); @@ -32577,11 +34028,12 @@ goto block_70; } else { -uint8_t x_71; -lean_inc(x_5); +lean_object* x_71; uint8_t x_72; +x_71 = lean_ctor_get(x_5, 2); +lean_inc(x_71); lean_inc(x_19); -x_71 = lean_is_class(x_19, x_5); -x_30 = x_71; +x_72 = lean_is_class(x_19, x_71); +x_30 = x_72; goto block_70; } block_70: @@ -32730,7 +34182,8 @@ lean_dec(x_38); x_41 = lean_box(0); x_42 = lean_unbox(x_13); lean_dec(x_13); -x_43 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_19, x_23, x_6, x_26, x_21, x_1, x_5, x_32, x_42, x_20, x_25, x_39, x_41, x_7, x_8, x_9, x_10, x_40); +x_43 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_19, x_23, x_6, x_26, x_21, x_1, x_20, x_5, x_32, x_42, x_25, x_39, x_41, x_7, x_8, x_9, x_10, x_40); +lean_dec(x_5); lean_dec(x_20); lean_dec(x_26); lean_dec(x_23); @@ -32748,7 +34201,8 @@ x_46 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_setSourceInstImplici x_47 = lean_box(0); x_48 = lean_unbox(x_13); lean_dec(x_13); -x_49 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_19, x_23, x_6, x_26, x_21, x_1, x_5, x_32, x_48, x_20, x_25, x_46, x_47, x_7, x_8, x_9, x_10, x_45); +x_49 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_19, x_23, x_6, x_26, x_21, x_1, x_20, x_5, x_32, x_48, x_25, x_46, x_47, x_7, x_8, x_9, x_10, x_45); +lean_dec(x_5); lean_dec(x_20); lean_dec(x_26); lean_dec(x_23); @@ -32797,88 +34251,89 @@ return x_53; } else { -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; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; uint8_t x_84; lean_object* x_85; uint8_t x_86; -x_72 = lean_ctor_get(x_15, 0); -x_73 = lean_ctor_get(x_15, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_15); -x_74 = lean_ctor_get(x_72, 0); +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; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; +x_73 = lean_ctor_get(x_15, 0); +x_74 = lean_ctor_get(x_15, 1); lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_ctor_get(x_3, 0); +lean_inc(x_73); +lean_dec(x_15); +x_75 = lean_ctor_get(x_73, 0); lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_ctor_get(x_3, 0); +lean_inc(x_76); lean_dec(x_3); -x_76 = lean_ctor_get(x_75, 4); -lean_inc(x_76); -x_77 = 1; -lean_inc(x_76); -x_78 = l_Lean_getStructureFieldsFlattened(x_74, x_76, x_77); -x_79 = lean_ctor_get_uint8(x_75, sizeof(void*)*11); -x_80 = lean_box(0); +x_77 = lean_ctor_get(x_76, 4); +lean_inc(x_77); +x_78 = 1; +lean_inc(x_77); +x_79 = l_Lean_getStructureFieldsFlattened(x_75, x_77, x_78); +x_80 = lean_ctor_get_uint8(x_76, sizeof(void*)*11); +x_81 = lean_box(0); lean_inc(x_4); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_4); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_array_mk(x_81); -x_83 = 0; -x_84 = 1; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_4); +lean_ctor_set(x_82, 1, x_81); +x_83 = lean_array_mk(x_82); +x_84 = 0; +x_85 = 1; lean_inc(x_6); -x_85 = l_Lean_Meta_mkForallFVars(x_82, x_6, x_83, x_77, x_84, x_7, x_8, x_9, x_10, x_73); -if (x_79 == 0) +x_86 = l_Lean_Meta_mkForallFVars(x_83, x_6, x_84, x_78, x_85, x_7, x_8, x_9, x_10, x_74); +if (x_80 == 0) { -x_86 = x_83; +x_87 = x_84; +goto block_127; +} +else +{ +lean_object* x_128; uint8_t x_129; +x_128 = lean_ctor_get(x_5, 2); +lean_inc(x_128); +lean_inc(x_75); +x_129 = lean_is_class(x_75, x_128); +x_87 = x_129; +goto block_127; +} +block_127: +{ +uint8_t x_88; +if (x_87 == 0) +{ +x_88 = x_84; goto block_126; } else { -uint8_t x_127; -lean_inc(x_5); -lean_inc(x_74); -x_127 = lean_is_class(x_74, x_5); -x_86 = x_127; +x_88 = x_78; goto block_126; } block_126: { -uint8_t x_87; -if (x_86 == 0) +uint8_t x_89; lean_object* x_90; lean_object* x_91; +if (x_88 == 0) { -x_87 = x_83; -goto block_125; -} -else +if (lean_obj_tag(x_86) == 0) { -x_87 = x_77; -goto block_125; -} -block_125: -{ -uint8_t x_88; lean_object* x_89; lean_object* x_90; -if (x_87 == 0) -{ -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_111 = lean_ctor_get(x_85, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_85, 1); +lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_112 = lean_ctor_get(x_86, 0); lean_inc(x_112); -lean_dec(x_85); -x_113 = 0; -x_88 = x_113; -x_89 = x_111; +x_113 = lean_ctor_get(x_86, 1); +lean_inc(x_113); +lean_dec(x_86); +x_114 = 0; +x_89 = x_114; x_90 = x_112; -goto block_110; +x_91 = x_113; +goto block_111; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_82); -lean_dec(x_78); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_77); lean_dec(x_76); lean_dec(x_75); -lean_dec(x_74); lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -32888,52 +34343,52 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_114 = lean_ctor_get(x_85, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_85, 1); +x_115 = lean_ctor_get(x_86, 0); lean_inc(x_115); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_116 = x_85; +x_116 = lean_ctor_get(x_86, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_117 = x_86; } else { - lean_dec_ref(x_85); - x_116 = lean_box(0); + lean_dec_ref(x_86); + x_117 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_118 = x_117; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } else { -if (lean_obj_tag(x_85) == 0) +if (lean_obj_tag(x_86) == 0) { -lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_118 = lean_ctor_get(x_85, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_85, 1); +lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_119 = lean_ctor_get(x_86, 0); lean_inc(x_119); -lean_dec(x_85); -x_120 = 3; -x_88 = x_120; -x_89 = x_118; +x_120 = lean_ctor_get(x_86, 1); +lean_inc(x_120); +lean_dec(x_86); +x_121 = 3; +x_89 = x_121; x_90 = x_119; -goto block_110; +x_91 = x_120; +goto block_111; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_82); -lean_dec(x_78); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_77); lean_dec(x_76); lean_dec(x_75); -lean_dec(x_74); lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -32943,85 +34398,87 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_121 = lean_ctor_get(x_85, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_85, 1); +x_122 = lean_ctor_get(x_86, 0); lean_inc(x_122); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_123 = x_85; +x_123 = lean_ctor_get(x_86, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_124 = x_86; } else { - lean_dec_ref(x_85); - x_123 = lean_box(0); + lean_dec_ref(x_86); + x_124 = lean_box(0); } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); } else { - x_124 = x_123; + x_125 = x_124; } -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_123); +return x_125; } } -block_110: +block_111: { -lean_object* x_91; -x_91 = l_Lean_Meta_mkForallFVars(x_2, x_89, x_83, x_77, x_84, x_7, x_8, x_9, x_10, x_90); -if (lean_obj_tag(x_91) == 0) +lean_object* x_92; +x_92 = l_Lean_Meta_mkForallFVars(x_2, x_90, x_84, x_78, x_85, x_7, x_8, x_9, x_10, x_91); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_91); -x_94 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_92, x_7, x_8, x_9, x_10, x_93); -if (x_87 == 0) +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_93, x_7, x_8, x_9, x_10, x_94); +if (x_88 == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; +x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_box(0); -x_98 = lean_unbox(x_13); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_box(0); +x_99 = lean_unbox(x_13); lean_dec(x_13); -x_99 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_74, x_78, x_6, x_82, x_76, x_1, x_5, x_88, x_98, x_75, x_80, x_95, x_97, x_7, x_8, x_9, x_10, x_96); -lean_dec(x_75); -lean_dec(x_82); -lean_dec(x_78); -return x_99; +x_100 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_75, x_79, x_6, x_83, x_77, x_1, x_76, x_5, x_89, x_99, x_81, x_96, x_98, x_7, x_8, x_9, x_10, x_97); +lean_dec(x_5); +lean_dec(x_76); +lean_dec(x_83); +lean_dec(x_79); +return x_100; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; -x_100 = lean_ctor_get(x_94, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_94, 1); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; +x_101 = lean_ctor_get(x_95, 0); lean_inc(x_101); -lean_dec(x_94); -x_102 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_setSourceInstImplicit(x_100); -x_103 = lean_box(0); -x_104 = lean_unbox(x_13); +x_102 = lean_ctor_get(x_95, 1); +lean_inc(x_102); +lean_dec(x_95); +x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_setSourceInstImplicit(x_101); +x_104 = lean_box(0); +x_105 = lean_unbox(x_13); lean_dec(x_13); -x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_74, x_78, x_6, x_82, x_76, x_1, x_5, x_88, x_104, x_75, x_80, x_102, x_103, x_7, x_8, x_9, x_10, x_101); -lean_dec(x_75); -lean_dec(x_82); -lean_dec(x_78); -return x_105; +x_106 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_2, x_4, x_75, x_79, x_6, x_83, x_77, x_1, x_76, x_5, x_89, x_105, x_81, x_103, x_104, x_7, x_8, x_9, x_10, x_102); +lean_dec(x_5); +lean_dec(x_76); +lean_dec(x_83); +lean_dec(x_79); +return x_106; } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_82); -lean_dec(x_78); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_77); lean_dec(x_76); lean_dec(x_75); -lean_dec(x_74); lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -33031,26 +34488,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_106 = lean_ctor_get(x_91, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_91, 1); +x_107 = lean_ctor_get(x_92, 0); lean_inc(x_107); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_108 = x_91; +x_108 = lean_ctor_get(x_92, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_109 = x_92; } else { - lean_dec_ref(x_91); - x_108 = lean_box(0); + lean_dec_ref(x_92); + x_109 = lean_box(0); } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_108; + x_110 = x_109; } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; } } } @@ -33059,7 +34516,7 @@ return x_109; } else { -uint8_t x_128; +uint8_t x_130; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -33069,27 +34526,64 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_128 = !lean_is_exclusive(x_12); -if (x_128 == 0) +x_130 = !lean_is_exclusive(x_12); +if (x_130 == 0) { return x_12; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_12, 0); -x_130 = lean_ctor_get(x_12, 1); -lean_inc(x_130); -lean_inc(x_129); +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_12, 0); +x_132 = lean_ctor_get(x_12, 1); +lean_inc(x_132); +lean_inc(x_131); lean_dec(x_12); -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; +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; } } } } +LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_getDeclarationRange_x3f___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_addDeclarationRangesFromSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -33099,28 +34593,31 @@ x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; -x_9 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); +lean_object* x_10; +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -return x_9; +lean_dec(x_2); +lean_dec(x_1); +return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_4); -lean_dec(x_4); -x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_5); lean_dec(x_5); -return x_12; +x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__3(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_13; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4___boxed(lean_object** _args) { @@ -33147,13 +34644,14 @@ lean_object* x_20 = _args[19]; _start: { uint8_t x_21; uint8_t x_22; lean_object* x_23; -x_21 = lean_unbox(x_10); -lean_dec(x_10); -x_22 = lean_unbox(x_11); +x_21 = lean_unbox(x_11); lean_dec(x_11); -x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21, x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_15); +x_22 = lean_unbox(x_12); lean_dec(x_12); +x_23 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21, x_22, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); @@ -33271,7 +34769,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_Elab_Command_StructView_ctor___closed__1; x_2 = l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__1; -x_3 = lean_unsigned_to_nat(843u); +x_3 = lean_unsigned_to_nat(847u); x_4 = lean_unsigned_to_nat(87u); x_5 = l_Lean_Elab_Command_StructView_ctor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33323,7 +34821,7 @@ x_35 = lean_array_fget(x_4, x_12); x_167 = lean_ctor_get_uint8(x_35, sizeof(void*)*4); if (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; lean_object* x_174; lean_object* x_175; +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; x_168 = lean_ctor_get(x_35, 3); lean_inc(x_168); x_169 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_168, x_15, x_16, x_17, x_18, x_19, x_20, x_21); @@ -33338,31 +34836,30 @@ lean_closure_set(x_172, 0, x_32); x_173 = lean_replace_expr(x_172, x_170); lean_dec(x_170); lean_dec(x_172); -x_174 = lean_ctor_get(x_35, 2); -lean_inc(x_174); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); +lean_inc(x_35); lean_inc(x_7); lean_inc(x_3); lean_inc(x_1); -x_175 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent(x_1, x_2, x_3, x_7, x_174, x_173, x_17, x_18, x_19, x_20, x_171); -if (lean_obj_tag(x_175) == 0) +x_174 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent(x_1, x_2, x_3, x_7, x_35, x_173, x_17, x_18, x_19, x_20, x_171); +if (lean_obj_tag(x_174) == 0) { -lean_object* x_176; lean_object* x_177; -x_176 = lean_ctor_get(x_175, 0); +lean_object* x_175; lean_object* x_176; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec(x_175); -x_36 = x_176; -x_37 = x_177; +lean_dec(x_174); +x_36 = x_175; +x_37 = x_176; goto block_166; } else { -uint8_t x_178; +uint8_t x_177; lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); @@ -33379,63 +34876,63 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_178 = !lean_is_exclusive(x_175); -if (x_178 == 0) +x_177 = !lean_is_exclusive(x_174); +if (x_177 == 0) { -return x_175; +return x_174; } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_175, 0); -x_180 = lean_ctor_get(x_175, 1); -lean_inc(x_180); +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_174, 0); +x_179 = lean_ctor_get(x_174, 1); lean_inc(x_179); -lean_dec(x_175); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; +lean_inc(x_178); +lean_dec(x_174); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +return x_180; } } } else { -lean_object* x_182; size_t x_183; size_t x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_182 = lean_box(0); -x_183 = lean_array_size(x_5); -x_184 = 0; -x_185 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1; -x_186 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__1(x_5, x_35, x_182, x_185, x_5, x_183, x_184, x_185); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -lean_dec(x_186); -if (lean_obj_tag(x_187) == 0) +lean_object* x_181; size_t x_182; size_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_181 = lean_box(0); +x_182 = lean_array_size(x_5); +x_183 = 0; +x_184 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__1; +x_185 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__1(x_5, x_35, x_181, x_184, x_5, x_182, x_183, x_184); +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +lean_dec(x_185); +if (lean_obj_tag(x_186) == 0) { -lean_object* x_188; lean_object* x_189; -x_188 = l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__2; +lean_object* x_187; lean_object* x_188; +x_187 = l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__2; lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); -x_189 = l_panic___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__2(x_188, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -if (lean_obj_tag(x_189) == 0) +x_188 = l_panic___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__2(x_187, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_189, 0); +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_36 = x_190; -x_37 = x_191; +lean_dec(x_188); +x_36 = x_189; +x_37 = x_190; goto block_166; } else { -uint8_t x_192; +uint8_t x_191; lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); @@ -33452,58 +34949,58 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_192 = !lean_is_exclusive(x_189); -if (x_192 == 0) +x_191 = !lean_is_exclusive(x_188); +if (x_191 == 0) { -return x_189; +return x_188; } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_ctor_get(x_189, 0); -x_194 = lean_ctor_get(x_189, 1); -lean_inc(x_194); +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_188, 0); +x_193 = lean_ctor_get(x_188, 1); lean_inc(x_193); -lean_dec(x_189); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -return x_195; +lean_inc(x_192); +lean_dec(x_188); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +return x_194; } } } else { -lean_object* x_196; -x_196 = lean_ctor_get(x_187, 0); -lean_inc(x_196); -lean_dec(x_187); -if (lean_obj_tag(x_196) == 0) +lean_object* x_195; +x_195 = lean_ctor_get(x_186, 0); +lean_inc(x_195); +lean_dec(x_186); +if (lean_obj_tag(x_195) == 0) { -lean_object* x_197; lean_object* x_198; -x_197 = l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__2; +lean_object* x_196; lean_object* x_197; +x_196 = l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__3___closed__2; lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); -x_198 = l_panic___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__2(x_197, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -if (lean_obj_tag(x_198) == 0) +x_197 = l_panic___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkRemainingProjections___spec__2(x_196, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +if (lean_obj_tag(x_197) == 0) { -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_198, 0); +lean_object* x_198; lean_object* x_199; +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec(x_198); -x_36 = x_199; -x_37 = x_200; +lean_dec(x_197); +x_36 = x_198; +x_37 = x_199; goto block_166; } else { -uint8_t x_201; +uint8_t x_200; lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); @@ -33520,43 +35017,43 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_201 = !lean_is_exclusive(x_198); -if (x_201 == 0) +x_200 = !lean_is_exclusive(x_197); +if (x_200 == 0) { -return x_198; +return x_197; } else { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_198, 0); -x_203 = lean_ctor_get(x_198, 1); -lean_inc(x_203); +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_197, 0); +x_202 = lean_ctor_get(x_197, 1); lean_inc(x_202); -lean_dec(x_198); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -return x_204; +lean_inc(x_201); +lean_dec(x_197); +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_202); +return x_203; } } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; -x_205 = lean_ctor_get(x_196, 0); +lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; lean_object* x_208; +x_204 = lean_ctor_get(x_195, 0); +lean_inc(x_204); +lean_dec(x_195); +x_205 = lean_ctor_get(x_35, 2); lean_inc(x_205); -lean_dec(x_196); -x_206 = lean_ctor_get(x_35, 2); +x_206 = lean_ctor_get(x_204, 2); lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 2); -lean_inc(x_207); -lean_dec(x_205); -x_208 = 1; -x_209 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_207); -lean_ctor_set_uint8(x_209, sizeof(void*)*2, x_208); -x_36 = x_209; +lean_dec(x_204); +x_207 = 1; +x_208 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +lean_ctor_set_uint8(x_208, sizeof(void*)*2, x_207); +x_36 = x_208; x_37 = x_21; goto block_166; } @@ -50203,6 +51700,8 @@ l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProject lean_mark_persistent(l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__3); l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4 = _init_l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4(); lean_mark_persistent(l_Lean_setEnv___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__5___closed__4); +l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1 = _init_l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1(); +lean_mark_persistent(l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___spec__8___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic.c b/stage0/stdlib/Lean/Elab/Tactic.c index dae76c02ec..a28af8886d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic -// Imports: Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.SimpTrace Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr Lean.Elab.Tactic.Guard Lean.Elab.Tactic.RCases Lean.Elab.Tactic.Repeat Lean.Elab.Tactic.Ext Lean.Elab.Tactic.Change Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.Omega Lean.Elab.Tactic.Simpa Lean.Elab.Tactic.NormCast Lean.Elab.Tactic.Symm Lean.Elab.Tactic.SolveByElim Lean.Elab.Tactic.LibrarySearch Lean.Elab.Tactic.ShowTerm Lean.Elab.Tactic.Rfl Lean.Elab.Tactic.Rewrites Lean.Elab.Tactic.DiscrTreeKey Lean.Elab.Tactic.BVDecide Lean.Elab.Tactic.BoolToPropSimps Lean.Elab.Tactic.Classical Lean.Elab.Tactic.Grind +// Imports: Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.SimpTrace Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr Lean.Elab.Tactic.Guard Lean.Elab.Tactic.RCases Lean.Elab.Tactic.Repeat Lean.Elab.Tactic.Ext Lean.Elab.Tactic.Change Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.Omega Lean.Elab.Tactic.Simpa Lean.Elab.Tactic.NormCast Lean.Elab.Tactic.Symm Lean.Elab.Tactic.SolveByElim Lean.Elab.Tactic.LibrarySearch Lean.Elab.Tactic.ShowTerm Lean.Elab.Tactic.Rfl Lean.Elab.Tactic.Rewrites Lean.Elab.Tactic.DiscrTreeKey Lean.Elab.Tactic.BVDecide Lean.Elab.Tactic.BoolToPropSimps Lean.Elab.Tactic.Classical Lean.Elab.Tactic.Grind Lean.Elab.Tactic.Monotonicity #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -54,6 +54,7 @@ lean_object* initialize_Lean_Elab_Tactic_BVDecide(uint8_t builtin, lean_object*) lean_object* initialize_Lean_Elab_Tactic_BoolToPropSimps(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_Classical(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_Grind(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Monotonicity(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic(uint8_t builtin, lean_object* w) { lean_object * res; @@ -182,6 +183,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Grind(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Monotonicity(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 diff --git a/stage0/stdlib/Lean/Elab/Tactic/Grind.c b/stage0/stdlib/Lean/Elab/Tactic/Grind.c index f81cc695fb..3fc44a87b9 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Grind.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Grind -// Imports: Init.Grind.Tactics Lean.Meta.Tactic.Grind Lean.Elab.Command Lean.Elab.Tactic.Basic +// Imports: Init.Grind.Tactics Lean.Meta.Tactic.Grind Lean.Elab.Command Lean.Elab.Tactic.Basic Lean.Elab.Tactic.Config #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -21,21 +21,27 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindPatt static lean_object* l_Lean_Elab_Tactic_grind___closed__2; static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__1; static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___closed__4; +lean_object* l___private_Lean_Elab_Tactic_Config_0__Lean_Elab_Tactic_elabConfig(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindPattern___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +lean_object* l_Lean_Meta_Grind_addEMatchTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentD(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__4; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_addTheoremPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3; static lean_object* l_Lean_Elab_Tactic_grind___closed__1; extern lean_object* l_Lean_Elab_Term_instMonadTermElabM; lean_object* l_Lean_Syntax_getArgs(lean_object*); @@ -45,6 +51,7 @@ lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError_ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg___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_Syntax_TSepArray_getElems___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__6; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); @@ -52,35 +59,54 @@ lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabGrindPattern___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg___lambda__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_resolveGlobalConst___at_Lean_Elab_Tactic_elabGrindPattern___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindPattern___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1; +lean_object* l_Lean_Exception_toMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4(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_Elab_Tactic_elabGrindPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalApplyRfl___spec__1___rarg(lean_object*); +uint8_t l_Lean_Expr_hasSyntheticSorry(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13(lean_object*); +lean_object* l_Lean_Parser_Tactic_getConfigItems(lean_object*); lean_object* l_List_filterMapTR_go___at_Lean_preprocessSyntaxAndResolve___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__9; +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at_Lean_filterFieldList___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___closed__1; lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Tactic_elabGrindPattern___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__2; +static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__8; +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__5; lean_object* l_Lean_Elab_goalsToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__4; static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2; lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyRfl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__6; @@ -88,26 +114,40 @@ lean_object* lean_array_to_list(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindPattern___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyRfl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyRfl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Config_0__Lean_Elab_Tactic_mkConfigItemViews(lean_object*); static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__7___closed__3; +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5; +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__6; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Tactic_elabGrindPattern___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___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_resolveGlobalName___at_Lean_Elab_Term_resolveLocalName_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1; extern lean_object* l_Std_Format_defWidth; static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__3; static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__7___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___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* l_Lean_Meta_Grind_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___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 lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4; +lean_object* l_Lean_Meta_Grind_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__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_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_elabGrindPattern___spec__3___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1(lean_object*); static lean_object* l_panic___at_Lean_Elab_Tactic_elabGrindPattern___spec__10___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__3; LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Tactic_elabGrindPattern___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__7___closed__1; @@ -115,11 +155,13 @@ static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_ela static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__2; static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__4; -static lean_object* l_Lean_Elab_Tactic_grind___closed__3; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(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_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabGrindPattern___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_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalApplyRfl___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_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___boxed(lean_object*, lean_object*); @@ -128,37 +170,902 @@ static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPat static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__2; static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__2; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabGrindPattern___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasSorry(lean_object*); lean_object* lean_array_mk(lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_List_mapTR_loop___at_Lean_ensureNonAmbiguous___spec__2(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1; extern lean_object* l_Lean_instInhabitedName; +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__6; +lean_object* l_Lean_Elab_Term_addTermInfo(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*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_elabGrindPattern___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7; lean_object* l_Lean_Elab_Tactic_liftMetaFinishingTactic(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_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__1; extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; uint8_t lean_usize_dec_lt(size_t, size_t); +uint8_t l_Lean_Exception_isRuntime(lean_object*); +lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalApplyRfl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabGrindPattern___spec__6___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__3; +lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalApplyRfl___closed__7; lean_object* l_List_filterTR_loop___at_Lean_filterFieldList___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1; +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Tactic_elabGrindPattern___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Grind", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Config", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2; +x_3 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_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) { +_start: +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4; +x_10 = 0; +x_11 = l_Lean_Meta_evalExpr_x27___rarg(x_9, x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5_(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___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) { +_start: +{ +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_6, 5); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_12, 1, x_18); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_12); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_12, 1, x_19); +lean_ctor_set(x_12, 0, x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(1, 2, 0); +} else { + x_29 = x_27; + lean_ctor_set_tag(x_29, 1); +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("error evaluating configuration\n", 31, 31); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n\nException: ", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_10 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5_(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +x_18 = l_Lean_Exception_isInterrupt(x_16); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +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; uint8_t x_31; +lean_free_object(x_10); +x_20 = l_Lean_MessageData_ofExpr(x_1); +x_21 = l_Lean_indentD(x_20); +x_22 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4; +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 = l_Lean_Exception_toMessageData(x_16); +x_27 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +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_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___spec__1(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +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 +{ +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +else +{ +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_10, 0); +x_36 = lean_ctor_get(x_10, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_10); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +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; +x_39 = l_Lean_MessageData_ofExpr(x_1); +x_40 = l_Lean_indentD(x_39); +x_41 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2; +x_42 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4; +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_Exception_toMessageData(x_35); +x_46 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___spec__1(x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_35); +lean_ctor_set(x_54, 1, x_36); +return x_54; +} +} +else +{ +lean_object* x_55; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_35); +lean_ctor_set(x_55, 1, x_36); +return x_55; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("configuration contains 'sorry'", 30, 30); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_Lean_Expr_hasSorry(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_1); +x_13 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2; +x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 0; +x_2 = lean_unsigned_to_nat(100u); +x_3 = lean_unsigned_to_nat(5u); +x_4 = lean_unsigned_to_nat(1000u); +x_5 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*4, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__3(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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_12 = l___private_Lean_Elab_Tactic_Config_0__Lean_Elab_Tactic_elabConfig(x_1, x_11, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_Lean_Expr_hasSyntheticSorry(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_free_object(x_12); +x_17 = lean_box(0); +x_18 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__2(x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +lean_dec(x_5); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_19 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1; +lean_ctor_set(x_12, 0, x_19); +return x_12; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = l_Lean_Expr_hasSyntheticSorry(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__2(x_20, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +lean_dec(x_5); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_25 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1; +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +} +} +else +{ +uint8_t x_27; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_27 = !lean_is_exclusive(x_12); +if (x_27 == 0) +{ +return x_12; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_12); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("error evaluating configuration, environment does not yet contain type ", 70, 70); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4; +x_2 = l_Lean_MessageData_ofName(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2; +x_2 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4; +x_2 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +x_3 = lean_alloc_ctor(7, 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_Elab_Tactic_elabGrindConfig___lambda__4(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) { +_start: +{ +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_11 = lean_st_ref_get(x_9, x_10); +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(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4; +x_16 = l_Lean_Environment_contains(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_dec(x_2); +x_17 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5; +x_18 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__3(x_1, x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +lean_inc(x_1); +x_12 = l_Lean_Parser_Tactic_getConfigItems(x_1); +x_13 = l___private_Lean_Elab_Tactic_Config_0__Lean_Elab_Tactic_mkConfigItemViews(x_12); +x_14 = l_Array_isEmpty___rarg(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_8); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_8, 5); +x_17 = l_Lean_replaceRef(x_1, x_16); +lean_dec(x_16); +lean_dec(x_1); +lean_ctor_set(x_8, 5, x_17); +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4(x_11, x_13, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_19; +} +else +{ +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; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +x_22 = lean_ctor_get(x_8, 2); +x_23 = lean_ctor_get(x_8, 3); +x_24 = lean_ctor_get(x_8, 4); +x_25 = lean_ctor_get(x_8, 5); +x_26 = lean_ctor_get(x_8, 6); +x_27 = lean_ctor_get(x_8, 7); +x_28 = lean_ctor_get(x_8, 8); +x_29 = lean_ctor_get(x_8, 9); +x_30 = lean_ctor_get(x_8, 10); +x_31 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_32 = lean_ctor_get(x_8, 11); +x_33 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_8); +x_34 = l_Lean_replaceRef(x_1, x_25); +lean_dec(x_25); +lean_dec(x_1); +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_21); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_23); +lean_ctor_set(x_35, 4, x_24); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_33); +x_36 = lean_box(0); +x_37 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4(x_11, x_13, x_36, x_4, x_5, x_6, x_7, x_35, x_9, x_10); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_13); +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_1); +x_38 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1; +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_10); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindConfig___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__3(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_1); +lean_dec(x_1); +x_12 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__4(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___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_Elab_Tactic_elabGrindConfig(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__1() { _start: { @@ -698,14 +1605,6 @@ x_1 = lean_mk_string_unchecked("', possible interpretations: ", 29, 29); return x_1; } } -static lean_object* _init_l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__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) { _start: { @@ -776,7 +1675,7 @@ x_29 = l_List_toString___at_Lean_ensureNoOverload___spec__2(x_28); lean_dec(x_28); x_30 = lean_string_append(x_26, x_29); lean_dec(x_29); -x_31 = l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7; +x_31 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5; x_32 = lean_string_append(x_30, x_31); x_33 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_33, 0, x_32); @@ -863,40 +1762,41 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible___lambda__3__ return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(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) { _start: { -uint8_t x_12; -x_12 = lean_usize_dec_lt(x_3, x_2); -if (x_12 == 0) +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) { -lean_object* x_13; +lean_object* x_14; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_4); -lean_ctor_set(x_13, 1, x_11); -return x_13; +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); +return x_14; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_14 = lean_array_uget(x_4, x_3); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_array_uset(x_4, x_3, x_15); -x_17 = lean_box(0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_15 = lean_array_uget(x_5, x_4); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_uset(x_5, x_4, x_16); x_18 = 1; +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_inc(x_5); -x_19 = l_Lean_Elab_Term_elabTerm(x_14, x_17, x_18, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_inc(x_1); +x_19 = l_Lean_Elab_Term_elabTerm(x_15, x_1, x_18, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -905,7 +1805,7 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +x_22 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_21); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -913,11 +1813,11 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__1; x_26 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__2; +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_27 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_23, x_25, x_26, x_7, x_8, x_9, x_10, x_24); +x_27 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_23, x_25, x_26, x_8, x_9, x_10, x_11, x_24); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; lean_object* x_33; @@ -926,26 +1826,27 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_30 = lean_expr_abstract(x_28, x_1); +x_30 = lean_expr_abstract(x_28, x_2); lean_dec(x_28); x_31 = 1; -x_32 = lean_usize_add(x_3, x_31); -x_33 = lean_array_uset(x_16, x_3, x_30); -x_3 = x_32; -x_4 = x_33; -x_11 = x_29; +x_32 = lean_usize_add(x_4, x_31); +x_33 = lean_array_uset(x_17, x_4, x_30); +x_4 = x_32; +x_5 = x_33; +x_12 = x_29; goto _start; } else { uint8_t x_35; -lean_dec(x_16); +lean_dec(x_17); +lean_dec(x_11); 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_1); x_35 = !lean_is_exclusive(x_27); if (x_35 == 0) { @@ -969,13 +1870,14 @@ return x_38; else { uint8_t x_39; -lean_dec(x_16); +lean_dec(x_17); +lean_dec(x_11); 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_1); x_39 = !lean_is_exclusive(x_19); if (x_39 == 0) { @@ -1071,56 +1973,56 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Elab_Tact return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; -x_12 = l_Lean_Syntax_TSepArray_getElems___rarg(x_1); -x_13 = lean_array_size(x_12); -x_14 = 0; +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_13 = l_Lean_Syntax_TSepArray_getElems___rarg(x_1); +x_14 = lean_array_size(x_13); +x_15 = 0; +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(x_3, x_13, x_14, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_15) == 0) +x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(x_2, x_4, x_14, x_15, x_13, x_6, x_7, x_8, x_9, x_10, 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; lean_object* x_20; -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; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_array_get_size(x_3); -x_19 = lean_array_to_list(x_16); -x_20 = l_Lean_Meta_Grind_addTheoremPattern(x_2, x_18, x_19, x_7, x_8, x_9, x_10, x_17); -return x_20; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_array_get_size(x_4); +x_20 = lean_array_to_list(x_17); +x_21 = l_Lean_Meta_Grind_addEMatchTheorem(x_3, x_19, x_20, x_8, x_9, x_10, x_11, x_18); +return x_21; } else { -uint8_t x_21; +uint8_t x_22; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) { -return x_15; +return x_16; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 0); -x_23 = lean_ctor_get(x_15, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_15); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_dec(x_16); +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; } } } @@ -1135,6 +2037,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); +lean_inc(x_1); x_10 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_elabGrindPattern___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { @@ -1146,7 +2049,7 @@ lean_inc(x_12); lean_dec(x_10); lean_inc(x_3); lean_inc(x_11); -x_13 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_13 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; @@ -1155,18 +2058,45 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_ConstantInfo_type(x_14); -lean_dec(x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed), 11, 2); -lean_closure_set(x_17, 0, x_2); -lean_closure_set(x_17, 1, x_11); +x_16 = lean_box(0); +x_17 = lean_box(0); x_18 = 0; -x_19 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg(x_16, x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -return x_19; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_19 = l_Lean_Elab_Term_addTermInfo(x_1, x_14, x_16, x_16, x_17, x_18, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +lean_inc(x_3); +lean_inc(x_11); +x_21 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_11, x_3, x_4, x_5, x_6, x_7, x_8, 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; +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(x_21); +x_24 = l_Lean_ConstantInfo_type(x_22); +lean_dec(x_22); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed), 12, 3); +lean_closure_set(x_25, 0, x_2); +lean_closure_set(x_25, 1, x_16); +lean_closure_set(x_25, 2, x_11); +x_26 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg(x_24, x_25, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +return x_26; } else { -uint8_t x_20; +uint8_t x_27; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -1175,29 +2105,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_20 = !lean_is_exclusive(x_13); -if (x_20 == 0) +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) { -return x_13; +return x_21; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_13, 0); -x_22 = lean_ctor_get(x_13, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_13); -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_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_21); +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 { -uint8_t x_24; +uint8_t x_31; +lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1205,23 +2136,86 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = !lean_is_exclusive(x_10); -if (x_24 == 0) +x_31 = !lean_is_exclusive(x_19); +if (x_31 == 0) +{ +return x_19; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_19, 0); +x_33 = lean_ctor_get(x_19, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_19); +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_11); +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); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_13); +if (x_35 == 0) +{ +return x_13; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_13, 0); +x_37 = lean_ctor_get(x_13, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_13); +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_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); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_10); +if (x_39 == 0) { return x_10; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_10, 0); -x_26 = lean_ctor_get(x_10, 1); -lean_inc(x_26); -lean_inc(x_25); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_10, 0); +x_41 = lean_ctor_get(x_10, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_10); -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; +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; } } } @@ -1230,7 +2224,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean", 4, 4); +x_1 = lean_mk_string_unchecked("Parser", 6, 6); return x_1; } } @@ -1238,7 +2232,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Parser", 6, 6); +x_1 = lean_mk_string_unchecked("Command", 7, 7); return x_1; } } @@ -1246,31 +2240,23 @@ static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Command", 7, 7); +x_1 = lean_mk_string_unchecked("grindPattern", 12, 12); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__4() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindPattern", 12, 12); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___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_Elab_Tactic_elabGrindPattern___closed__1; -x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__2; -x_3 = l_Lean_Elab_Tactic_elabGrindPattern___closed__3; -x_4 = l_Lean_Elab_Tactic_elabGrindPattern___closed__4; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; +x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; +x_3 = l_Lean_Elab_Tactic_elabGrindPattern___closed__2; +x_4 = l_Lean_Elab_Tactic_elabGrindPattern___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__5() { _start: { lean_object* x_1; @@ -1278,12 +2264,12 @@ x_1 = lean_mk_string_unchecked("ident", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__6; +x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -1292,7 +2278,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern(lean_object* x_1, l _start: { lean_object* x_5; uint8_t x_6; -x_5 = l_Lean_Elab_Tactic_elabGrindPattern___closed__5; +x_5 = l_Lean_Elab_Tactic_elabGrindPattern___closed__4; lean_inc(x_1); x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); if (x_6 == 0) @@ -1307,7 +2293,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_8 = lean_unsigned_to_nat(1u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = l_Lean_Elab_Tactic_elabGrindPattern___closed__7; +x_10 = l_Lean_Elab_Tactic_elabGrindPattern___closed__6; lean_inc(x_9); x_11 = l_Lean_Syntax_isOfKind(x_9, x_10); if (x_11 == 0) @@ -1424,17 +2410,17 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___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: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_2); -lean_dec(x_2); +size_t x_13; size_t x_14; lean_object* x_15; x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_1); -return x_14; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_2); +return x_15; } } LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13___rarg___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) { @@ -1447,15 +2433,15 @@ x_12 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_elabGrindPattern___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); -return x_12; +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -1496,7 +2482,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__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_Elab_Tactic_elabGrindPattern___closed__1; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; x_2 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1; x_3 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__3; @@ -1525,7 +2511,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__5; -x_3 = l_Lean_Elab_Tactic_elabGrindPattern___closed__5; +x_3 = l_Lean_Elab_Tactic_elabGrindPattern___closed__4; x_4 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__4; x_5 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__6; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); @@ -1549,135 +2535,126 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Tactic_grind___closed__3() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind(lean_object* x_1, lean_object* x_2, 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_1; lean_object* x_2; -x_1 = l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind(lean_object* x_1, 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_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_8 = l_Lean_Meta_Grind_main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_9 = l_Lean_Meta_Grind_main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = l_List_isEmpty___rarg(x_10); -if (x_12 == 0) +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = l_List_isEmpty___rarg(x_11); +if (x_13 == 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_free_object(x_8); -x_13 = l_Lean_Elab_goalsToMessageData(x_10); -x_14 = l_Lean_Elab_Tactic_grind___closed__2; -x_15 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_Tactic_grind___closed__3; -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_setInlineAttribute___spec__1(x_17, x_3, x_4, x_5, x_6, x_11); +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_free_object(x_9); +x_14 = l_Lean_Elab_goalsToMessageData(x_11); +x_15 = l_Lean_Elab_Tactic_grind___closed__2; +x_16 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +x_18 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_18, x_4, x_5, x_6, x_7, x_12); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -return x_18; +return x_19; } else { -lean_object* x_19; -lean_dec(x_10); +lean_object* x_20; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_19 = lean_box(0); -lean_ctor_set(x_8, 0, x_19); -return x_8; +x_20 = lean_box(0); +lean_ctor_set(x_9, 0, x_20); +return x_9; } } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_8); -x_22 = l_List_isEmpty___rarg(x_20); -if (x_22 == 0) +lean_dec(x_9); +x_23 = l_List_isEmpty___rarg(x_21); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = l_Lean_Elab_goalsToMessageData(x_20); -x_24 = l_Lean_Elab_Tactic_grind___closed__2; -x_25 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Tactic_grind___closed__3; -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_27, x_3, x_4, x_5, x_6, x_21); +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_24 = l_Lean_Elab_goalsToMessageData(x_21); +x_25 = l_Lean_Elab_Tactic_grind___closed__2; +x_26 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6; +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_28, x_4, x_5, x_6, x_7, x_22); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -return x_28; +return x_29; } else { -lean_object* x_29; lean_object* x_30; -lean_dec(x_20); +lean_object* x_30; lean_object* x_31; +lean_dec(x_21); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -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_21); -return x_30; +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_22); +return x_31; } } } else { -uint8_t x_31; +uint8_t x_32; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_31 = !lean_is_exclusive(x_8); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_9); +if (x_32 == 0) { -return x_8; +return x_9; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_8, 0); -x_33 = lean_ctor_get(x_8, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_9, 0); +x_34 = lean_ctor_get(x_9, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_8); -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(x_9); +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; } } } @@ -1701,12 +2678,12 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_El return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyRfl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyRfl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_grind(x_2, x_1, x_3, x_4, x_5, x_6, x_7); -return x_8; +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_grind(x_3, x_1, x_2, x_4, x_5, x_6, x_7, x_8); +return x_9; } } static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__1() { @@ -1721,8 +2698,8 @@ static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; -x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__2; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; +x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; x_3 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2; x_4 = l_Lean_Elab_Tactic_evalApplyRfl___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -1733,30 +2710,50 @@ static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("The `grind` tactic is experimental and still under development. Avoid using it in production projects", 101, 101); +x_1 = lean_mk_string_unchecked("optConfig", 9, 9); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_evalApplyRfl___closed__3; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; +x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; +x_3 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2; +x_4 = l_Lean_Elab_Tactic_evalApplyRfl___closed__3; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; } } static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__5() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("The `grind` tactic is experimental and still under development. Avoid using it in production projects", 101, 101); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__6() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_evalApplyRfl___closed__4; +x_1 = l_Lean_Elab_Tactic_evalApplyRfl___closed__5; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_evalApplyRfl___closed__6; x_2 = l_Lean_MessageData_ofFormat(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__8() { _start: { lean_object* x_1; @@ -1764,12 +2761,12 @@ x_1 = lean_mk_string_unchecked("_grind", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_evalApplyRfl___closed__6; +x_2 = l_Lean_Elab_Tactic_evalApplyRfl___closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -1798,47 +2795,155 @@ return x_13; } else { -lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_14 = l_Lean_Elab_Tactic_evalApplyRfl___closed__5; -x_15 = 1; -lean_inc(x_8); -x_16 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_1, x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5, x_6, x_7, x_8, x_9, x_17); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = l_Lean_Elab_Tactic_evalApplyRfl___closed__4; +lean_inc(x_15); +x_17 = l_Lean_Syntax_isOfKind(x_15, x_16); +if (x_17 == 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_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Tactic_evalApplyRfl___closed__7; -x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApplyRfl___lambda__1), 7, 1); -lean_closure_set(x_22, 0, x_21); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaFinishingTactic), 10, 1); -lean_closure_set(x_23, 0, x_22); -x_24 = l_Lean_Elab_Tactic_withMainContext___rarg(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -return x_24; +lean_object* x_18; +lean_dec(x_15); +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); +lean_dec(x_1); +x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalApplyRfl___spec__1___rarg(x_10); +return x_18; } else { -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_18, 1); +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_19 = l_Lean_Elab_Tactic_evalApplyRfl___closed__7; +x_20 = 1; +lean_inc(x_8); +x_21 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_1, x_19, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5, x_6, x_7, x_8, 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(x_18); -x_26 = lean_ctor_get(x_19, 0); -lean_inc(x_26); -lean_dec(x_19); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApplyRfl___lambda__1), 7, 1); -lean_closure_set(x_27, 0, x_26); -x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaFinishingTactic), 10, 1); -lean_closure_set(x_28, 0, x_27); -x_29 = l_Lean_Elab_Tactic_withMainContext___rarg(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); -return x_29; +lean_dec(x_23); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_26 = l_Lean_Elab_Tactic_elabGrindConfig(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +if (lean_obj_tag(x_24) == 0) +{ +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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(x_26); +x_29 = l_Lean_Elab_Tactic_evalApplyRfl___closed__9; +x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApplyRfl___lambda__1), 8, 2); +lean_closure_set(x_30, 0, x_27); +lean_closure_set(x_30, 1, x_29); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaFinishingTactic), 10, 1); +lean_closure_set(x_31, 0, x_30); +x_32 = l_Lean_Elab_Tactic_withMainContext___rarg(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28); +return x_32; +} +else +{ +uint8_t x_33; +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_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; +} +} +} +else +{ +if (lean_obj_tag(x_26) == 0) +{ +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_37 = lean_ctor_get(x_24, 0); +lean_inc(x_37); +lean_dec(x_24); +x_38 = lean_ctor_get(x_26, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_26, 1); +lean_inc(x_39); +lean_dec(x_26); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApplyRfl___lambda__1), 8, 2); +lean_closure_set(x_40, 0, x_38); +lean_closure_set(x_40, 1, x_37); +x_41 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaFinishingTactic), 10, 1); +lean_closure_set(x_41, 0, x_40); +x_42 = l_Lean_Elab_Tactic_withMainContext___rarg(x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_39); +return x_42; +} +else +{ +uint8_t x_43; +lean_dec(x_24); +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_43 = !lean_is_exclusive(x_26); +if (x_43 == 0) +{ +return x_26; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_26, 0); +x_45 = lean_ctor_get(x_26, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_26); +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; +} +} +} } } } @@ -1871,7 +2976,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; x_2 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1; x_3 = l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__1; @@ -1911,6 +3016,7 @@ lean_object* initialize_Init_Grind_Tactics(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Command(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Config(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_Grind(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1928,6 +3034,45 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Config(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__2); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__4); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__1); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__2); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__4); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__5); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__6); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__1); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__2___closed__2); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__3___closed__1); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4); +l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5 = _init_l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__1); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__2(); @@ -1964,8 +3109,6 @@ l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___clo lean_mark_persistent(l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__5); l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__6 = _init_l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__6(); lean_mark_persistent(l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__6); -l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7 = _init_l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7(); -lean_mark_persistent(l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__7); l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__1); l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabGrindPattern___spec__12___closed__2(); @@ -1982,8 +3125,6 @@ l_Lean_Elab_Tactic_elabGrindPattern___closed__5 = _init_l_Lean_Elab_Tactic_elabG lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindPattern___closed__5); l_Lean_Elab_Tactic_elabGrindPattern___closed__6 = _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__6(); lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindPattern___closed__6); -l_Lean_Elab_Tactic_elabGrindPattern___closed__7 = _init_l_Lean_Elab_Tactic_elabGrindPattern___closed__7(); -lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindPattern___closed__7); l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__1); l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__2(); @@ -2003,8 +3144,6 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_Elab_Tactic_grind___closed__1); l_Lean_Elab_Tactic_grind___closed__2 = _init_l_Lean_Elab_Tactic_grind___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_grind___closed__2); -l_Lean_Elab_Tactic_grind___closed__3 = _init_l_Lean_Elab_Tactic_grind___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_grind___closed__3); l_Lean_Elab_Tactic_evalApplyRfl___closed__1 = _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalApplyRfl___closed__1); l_Lean_Elab_Tactic_evalApplyRfl___closed__2 = _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__2(); @@ -2019,6 +3158,10 @@ l_Lean_Elab_Tactic_evalApplyRfl___closed__6 = _init_l_Lean_Elab_Tactic_evalApply lean_mark_persistent(l_Lean_Elab_Tactic_evalApplyRfl___closed__6); l_Lean_Elab_Tactic_evalApplyRfl___closed__7 = _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__7(); lean_mark_persistent(l_Lean_Elab_Tactic_evalApplyRfl___closed__7); +l_Lean_Elab_Tactic_evalApplyRfl___closed__8 = _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalApplyRfl___closed__8); +l_Lean_Elab_Tactic_evalApplyRfl___closed__9 = _init_l_Lean_Elab_Tactic_evalApplyRfl___closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalApplyRfl___closed__9); l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalApplyRfl__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Monotonicity.c b/stage0/stdlib/Lean/Elab/Tactic/Monotonicity.c new file mode 100644 index 0000000000..3c92bd4b0b --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Tactic/Monotonicity.c @@ -0,0 +1,12007 @@ +// Lean compiler output +// Module: Lean.Elab.Tactic.Monotonicity +// Imports: Lean.Meta.Tactic.Split Lean.Elab.RecAppSyntax Lean.Elab.Tactic.Basic Init.Internal.Order +#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_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_bindingName_x21(lean_object*); +static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6; +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Monotonicity_solveMono___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2; +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_monotoneExt; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5; +lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +size_t lean_usize_shift_right(size_t, size_t); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__10; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9; +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMono___lambda__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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3; +lean_object* l_Lean_ConstantInfo_type(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1(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*); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__2; +uint8_t lean_usize_dec_le(size_t, size_t); +lean_object* l_Lean_indentD(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__12(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_projExpr_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2; +static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1; +size_t lean_uint64_to_usize(uint64_t); +uint64_t lean_uint64_lor(uint64_t, uint64_t); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__26___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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7; +uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1; +extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; +static lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__3; +lean_object* l_Lean_Expr_sort___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static uint64_t l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166_(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2; +size_t lean_usize_mul(size_t, size_t); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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* l_Lean_Meta_DiscrTree_instInhabited(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1(lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___spec__3(size_t, size_t, lean_object*); +uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9; +lean_object* l_Lean_Expr_bvar___override(lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20; +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3; +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(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_Monotonicity_solveMonoCall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7(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_DiscrTree_0__Lean_Meta_DiscrTree_insertVal_loop___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__10(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1; +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3(uint64_t, uint64_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_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Exception_toMessageData(lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6; +lean_object* l_Lean_Expr_appArg_x21(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1; +static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isBVar(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isLambda(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18; +lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_ptr_addr(lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8(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_Monotonicity_findMonoThms(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21(lean_object*, lean_object*, lean_object*, lean_object*, 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 uint64_t l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__12; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1; +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_checked_assign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__5; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5(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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8; +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___closed__1; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1; +uint8_t lean_expr_eqv(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22; +lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___boxed(lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4; +static uint64_t l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__15; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1; +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2; +lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20___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_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10; +LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433_(lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14; +lean_object* l_Lean_Expr_projIdx_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__13(lean_object*, lean_object*); +lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1; +lean_object* l_Lean_MessageData_andList(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK(lean_object*); +lean_object* l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3; +lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); +lean_object* l_outOfBounds___rarg(lean_object*); +lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(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_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4; +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*); +lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5; +lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*, uint8_t); +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Meta_DiscrTree_Key_lt(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1; +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__4(lean_object*, lean_object*); +extern lean_object* l_Lean_levelZero; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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*); +extern lean_object* l_Lean_instInhabitedExpr; +uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8; +static lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_Monotonicity_solveMonoStep___lambda__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_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_panic___at_Lean_Expr_appFn_x21___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Split_splitMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21___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___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isMatcherAppCore_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1(uint64_t, uint64_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appFn_x21(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6; +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg(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_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2; +lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity(lean_object*); +lean_object* lean_usize_to_nat(size_t); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4; +lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofExpr(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__19(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_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249_(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20(lean_object*, lean_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_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23; +lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23(lean_object*, lean_object*, 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_Meta_DiscrTree_instInhabitedKey; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_Monotonicity_solveMonoStep___lambda__12___closed__5; +lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4; +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isProj(lean_object*); +lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8; +static uint64_t l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2; +lean_object* l_id___rarg___boxed(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*); +uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3; +lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1; +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3; +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16; +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7; +lean_object* l_Lean_MVarId_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*); +uint64_t lean_uint64_shift_left(uint64_t, uint64_t); +lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2; +lean_object* l_Lean_MVarId_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1; +lean_object* l_List_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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*, lean_object*); +size_t lean_usize_sub(size_t, size_t); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2; +lean_object* lean_array_mk(lean_object*); +lean_object* l_List_mapTR_loop___at_Lean_Parser_Tactic_Doc_initFn____x40_Lean_Parser_Tactic_Doc___hyg_2831____spec__8(lean_object*, lean_object*); +static uint64_t l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__13; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__19___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_add(size_t, size_t); +static lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1; +static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +lean_object* l_Lean_MVarId_applyConst(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_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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_array_uget(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_array_size(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3; +lean_object* l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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_Lean_Meta_Monotonicity_solveMonoStep___lambda__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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_object* l_Lean_Expr_bindingBody_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2(uint64_t, uint64_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15; +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4; +static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__4; +lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_headBeta(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMono(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_Meta_Monotonicity_solveMonoStep___lambda__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*); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2; +uint8_t l_Lean_Expr_isMData(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1; +static lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5; +static lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1; +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2; +static lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1; +uint8_t lean_usize_dec_lt(size_t, size_t); +lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___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_Monotonicity_solveMonoStep___lambda__9___closed__6; +lean_object* l_Lean_Meta_mkLambdaFVars(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___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1; +uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); +lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6; +lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_object*); +lean_object* l_Lean_Meta_whnfUntil(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2; +uint8_t l_Lean_Exception_isRuntime(lean_object*); +lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DiscrTree_getMatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_mdataExpr_x21(lean_object*); +lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); +uint8_t l_Lean_Expr_isForall(lean_object*); +lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Attribute_Builtin_ensureNoArgs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_insertIdx_loop___rarg(lean_object*, lean_object*, lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_Monotonicity_solveMonoStep___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1; +lean_object* l_Lean_Meta_etaExpand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__26(lean_object*, 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_Monotonicity_solveMonoCall___lambda__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*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4; +static lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5; +uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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*); +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Expr", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Expr.0.Lean.Expr.updateLambda!Impl", 48, 48); +return x_1; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("lambda expected", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___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; +x_1 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1; +x_2 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2; +x_3 = lean_unsigned_to_nat(1804u); +x_4 = lean_unsigned_to_nat(19u); +x_5 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; uint8_t x_4; +x_2 = l_Lean_Expr_bindingBody_x21(x_1); +x_3 = 0; +x_4 = l_Lean_Expr_isHeadBetaTarget(x_2, x_3); +if (x_4 == 0) +{ +lean_dec(x_2); +return x_1; +} +else +{ +if (lean_obj_tag(x_1) == 6) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; uint8_t x_15; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +x_9 = l_Lean_Expr_bindingInfo_x21(x_1); +x_10 = lean_unbox(x_9); +lean_dec(x_9); +x_11 = l_Lean_Expr_bindingDomain_x21(x_1); +x_12 = l_Lean_Expr_headBeta(x_2); +x_13 = lean_ptr_addr(x_6); +lean_dec(x_6); +x_14 = lean_ptr_addr(x_11); +x_15 = lean_usize_dec_eq(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_7); +lean_dec(x_1); +x_16 = l_Lean_Expr_lam___override(x_5, x_11, x_12, x_10); +x_1 = x_16; +goto _start; +} +else +{ +size_t x_18; size_t x_19; uint8_t x_20; +x_18 = lean_ptr_addr(x_7); +lean_dec(x_7); +x_19 = lean_ptr_addr(x_12); +x_20 = lean_usize_dec_eq(x_18, x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_1); +x_21 = l_Lean_Expr_lam___override(x_5, x_11, x_12, x_10); +x_1 = x_21; +goto _start; +} +else +{ +uint8_t x_23; +x_23 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_8, x_10); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec(x_1); +x_24 = l_Lean_Expr_lam___override(x_5, x_11, x_12, x_10); +x_1 = x_24; +goto _start; +} +else +{ +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_5); +goto _start; +} +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_2); +lean_dec(x_1); +x_27 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__4; +x_28 = l_panic___at_Lean_Expr_appFn_x21___spec__1(x_27); +x_1 = x_28; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1___boxed), 2, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Expr_headBeta(x_1); +x_3 = l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1; +x_4 = l_Lean_Expr_isLambda(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_box(0); +x_6 = lean_apply_2(x_3, x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1(x_2); +x_8 = lean_box(0); +x_9 = lean_apply_2(x_3, x_7, x_8); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Monotonicity_headBetaUnderLambda___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_fget(x_1, x_4); +x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(x_5, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_fget(x_2, x_4); +lean_dec(x_4); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +} +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__1() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = 5; +x_3 = lean_usize_shift_left(x_1, x_2); +return x_3; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__1; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3(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; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2; +x_8 = lean_usize_land(x_2, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(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(x_11); +x_14 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(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(x_11); +x_17 = lean_usize_shift_right(x_2, x_6); +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; size_t x_21; size_t x_22; size_t x_23; lean_object* 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 = 5; +x_22 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2; +x_23 = lean_usize_land(x_2, x_22); +x_24 = lean_usize_to_nat(x_23); +x_25 = lean_box(2); +x_26 = lean_array_get(x_25, x_20, x_24); +lean_dec(x_24); +lean_dec(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(x_26); +x_29 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(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(x_26); +x_33 = lean_usize_shift_right(x_2, x_21); +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(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +lean_dec(x_1); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4(x_36, x_37, lean_box(0), x_38, x_3); +lean_dec(x_37); +lean_dec(x_36); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2(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_DiscrTree_Key_hash(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7(size_t 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_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_dec(x_5); +return x_6; +} +else +{ +lean_object* x_9; lean_object* 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; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_array_fget(x_3, x_5); +x_11 = l_Lean_Meta_DiscrTree_Key_hash(x_9); +x_12 = lean_uint64_to_usize(x_11); +x_13 = 1; +x_14 = lean_usize_sub(x_1, x_13); +x_15 = 5; +x_16 = lean_usize_mul(x_15, x_14); +x_17 = lean_usize_shift_right(x_12, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_6, x_17, x_1, x_9, x_10); +x_4 = lean_box(0); +x_5 = x_19; +x_6 = x_20; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__8(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; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_5); +x_8 = lean_nat_dec_lt(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_1); +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_1, 1); +lean_dec(x_10); +x_11 = lean_ctor_get(x_1, 0); +lean_dec(x_11); +x_12 = lean_array_push(x_5, x_3); +x_13 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_13); +lean_ctor_set(x_1, 0, x_12); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = lean_array_push(x_5, x_3); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_fget(x_5, x_2); +x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(x_3, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_6); +lean_dec(x_5); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_2, x_19); +lean_dec(x_2); +x_2 = x_20; +goto _start; +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_1); +if (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_1, 1); +lean_dec(x_23); +x_24 = lean_ctor_get(x_1, 0); +lean_dec(x_24); +x_25 = lean_array_fset(x_5, x_2, x_3); +x_26 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_25); +return x_1; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_1); +x_27 = lean_array_fset(x_5, x_2, x_3); +x_28 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1() { +_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_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(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) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 0); +x_8 = 1; +x_9 = 5; +x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2; +x_11 = lean_usize_land(x_2, x_10); +x_12 = lean_usize_to_nat(x_11); +x_13 = lean_array_get_size(x_7); +x_14 = lean_nat_dec_lt(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +return x_1; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_array_fget(x_7, x_12); +x_16 = lean_box(0); +x_17 = lean_array_fset(x_7, x_12, x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(x_4, x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_free_object(x_15); +x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_array_fset(x_17, x_12, x_23); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_24); +return x_1; +} +else +{ +lean_object* x_25; +lean_dec(x_20); +lean_dec(x_19); +lean_ctor_set(x_15, 1, x_5); +lean_ctor_set(x_15, 0, x_4); +x_25 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_25); +return x_1; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(x_4, x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_array_fset(x_17, x_12, x_30); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_31); +return x_1; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_27); +lean_dec(x_26); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_fset(x_17, x_12, x_32); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +} +} +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; lean_object* x_39; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_usize_shift_right(x_2, x_9); +x_37 = lean_usize_add(x_3, x_8); +x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_35, x_36, x_37, x_4, x_5); +lean_ctor_set(x_15, 0, x_38); +x_39 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_39); +return x_1; +} +else +{ +lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_15, 0); +lean_inc(x_40); +lean_dec(x_15); +x_41 = lean_usize_shift_right(x_2, x_9); +x_42 = lean_usize_add(x_3, x_8); +x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_40, x_41, x_42, x_4, x_5); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_array_fset(x_17, x_12, x_44); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_45); +return x_1; +} +} +default: +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_5); +x_47 = lean_array_fset(x_17, x_12, x_46); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_47); +return x_1; +} +} +} +} +else +{ +lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); +x_49 = 1; +x_50 = 5; +x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2; +x_52 = lean_usize_land(x_2, x_51); +x_53 = lean_usize_to_nat(x_52); +x_54 = lean_array_get_size(x_48); +x_55 = lean_nat_dec_lt(x_53, x_54); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +lean_dec(x_53); +lean_dec(x_5); +lean_dec(x_4); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_48); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_array_fget(x_48, x_53); +x_58 = lean_box(0); +x_59 = lean_array_fset(x_48, x_53, x_58); +switch (lean_obj_tag(x_57)) { +case 0: +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_62 = x_57; +} else { + lean_dec_ref(x_57); + x_62 = lean_box(0); +} +x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_102_(x_4, x_60); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_62); +x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_array_fset(x_59, x_53, x_65); +lean_dec(x_53); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_61); +lean_dec(x_60); +if (lean_is_scalar(x_62)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_62; +} +lean_ctor_set(x_68, 0, x_4); +lean_ctor_set(x_68, 1, x_5); +x_69 = lean_array_fset(x_59, x_53, x_68); +lean_dec(x_53); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +return x_70; +} +} +case 1: +{ +lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_71 = lean_ctor_get(x_57, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_usize_shift_right(x_2, x_50); +x_74 = lean_usize_add(x_3, x_49); +x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_71, x_73, x_74, x_4, x_5); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(1, 1, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_75); +x_77 = lean_array_fset(x_59, x_53, x_76); +lean_dec(x_53); +x_78 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_78, 0, x_77); +return x_78; +} +default: +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_4); +lean_ctor_set(x_79, 1, x_5); +x_80 = lean_array_fset(x_59, x_53, x_79); +lean_dec(x_53); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; +} +} +} +} +} +else +{ +uint8_t x_82; +x_82 = !lean_is_exclusive(x_1); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; +x_83 = lean_unsigned_to_nat(0u); +x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__8(x_1, x_83, x_4, x_5); +x_85 = 7; +x_86 = lean_usize_dec_le(x_85, x_3); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_dec_lt(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_84, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_dec(x_84); +x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1; +x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7(x_3, x_90, x_91, lean_box(0), x_83, x_92); +lean_dec(x_91); +lean_dec(x_90); +return x_93; +} +else +{ +return x_84; +} +} +else +{ +return x_84; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; +x_94 = lean_ctor_get(x_1, 0); +x_95 = lean_ctor_get(x_1, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_1); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__8(x_96, x_97, x_4, x_5); +x_99 = 7; +x_100 = lean_usize_dec_le(x_99, x_3); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); +x_102 = lean_unsigned_to_nat(4u); +x_103 = lean_nat_dec_lt(x_101, x_102); +lean_dec(x_101); +if (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_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); +lean_inc(x_105); +lean_dec(x_98); +x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1; +x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7(x_3, x_104, x_105, lean_box(0), x_97, x_106); +lean_dec(x_105); +lean_dec(x_104); +return x_107; +} +else +{ +return x_98; +} +} +else +{ +return x_98; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(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_DiscrTree_Key_hash(x_2); +x_5 = lean_uint64_to_usize(x_4); +x_6 = 1; +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_1, x_5, x_6, x_2, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal_loop___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__10(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_1); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_array_push(x_1, x_2); +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_1, x_3); +x_8 = lean_name_eq(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_object* x_12; +x_12 = lean_array_fset(x_1, x_3, x_2); +lean_dec(x_3); +return x_12; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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) { +_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; uint8_t x_17; +x_11 = lean_nat_add(x_7, x_8); +x_12 = lean_unsigned_to_nat(2u); +x_13 = lean_nat_div(x_11, x_12); +lean_dec(x_11); +x_14 = lean_array_fget(x_5, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_6, 0); +x_17 = l_Lean_Meta_DiscrTree_Key_lt(x_15, x_16); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_8); +x_18 = l_Lean_Meta_DiscrTree_Key_lt(x_16, x_15); +lean_dec(x_15); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +lean_dec(x_7); +x_19 = lean_array_get_size(x_5); +x_20 = lean_nat_dec_lt(x_13, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_2); +return x_5; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_box(0); +x_22 = lean_array_fset(x_5, x_13, x_21); +x_23 = !lean_is_exclusive(x_14); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 0); +lean_dec(x_25); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_3, x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_27, x_24); +lean_dec(x_27); +lean_ctor_set(x_14, 1, x_28); +lean_ctor_set(x_14, 0, x_4); +x_29 = lean_array_fset(x_22, x_13, x_14); +lean_dec(x_13); +return x_29; +} +else +{ +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_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_dec(x_14); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_3, x_31); +x_33 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_32, x_30); +lean_dec(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_4); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_array_fset(x_22, x_13, x_34); +lean_dec(x_13); +return x_35; +} +} +} +else +{ +lean_dec(x_14); +x_8 = x_13; +x_9 = lean_box(0); +x_10 = lean_box(0); +goto _start; +} +} +else +{ +uint8_t x_37; +lean_dec(x_15); +lean_dec(x_14); +x_37 = lean_nat_dec_eq(x_13, x_7); +if (x_37 == 0) +{ +lean_dec(x_7); +x_7 = x_13; +x_9 = lean_box(0); +x_10 = lean_box(0); +goto _start; +} +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_dec(x_13); +lean_dec(x_8); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_3, x_39); +x_41 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_40); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_4); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_nat_add(x_7, x_39); +lean_dec(x_7); +x_44 = lean_array_get_size(x_5); +x_45 = lean_array_push(x_5, x_42); +x_46 = l_Array_insertIdx_loop___rarg(x_43, x_45, x_44); +lean_dec(x_43); +return x_46; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_get_size(x_5); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_7, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_array_fget(x_5, x_8); +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_12); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Meta_DiscrTree_Key_lt(x_12, x_11); +lean_dec(x_12); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = lean_nat_dec_lt(x_8, x_7); +lean_dec(x_7); +if (x_15 == 0) +{ +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +return x_5; +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_box(0); +x_17 = lean_array_fset(x_5, x_8, x_16); +x_18 = !lean_is_exclusive(x_10); +if (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_10, 1); +x_20 = lean_ctor_get(x_10, 0); +lean_dec(x_20); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_3, x_21); +x_23 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_22, x_19); +lean_dec(x_22); +lean_ctor_set(x_10, 1, x_23); +lean_ctor_set(x_10, 0, x_4); +x_24 = lean_array_fset(x_17, x_8, x_10); +return x_24; +} +else +{ +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_10, 1); +lean_inc(x_25); +lean_dec(x_10); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_3, x_26); +x_28 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_27, x_25); +lean_dec(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_4); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_array_fset(x_17, x_8, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_dec(x_10); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_sub(x_7, x_31); +x_33 = lean_array_fget(x_5, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = l_Lean_Meta_DiscrTree_Key_lt(x_34, x_11); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = l_Lean_Meta_DiscrTree_Key_lt(x_11, x_34); +lean_dec(x_34); +if (x_36 == 0) +{ +uint8_t x_37; +x_37 = lean_nat_dec_lt(x_32, x_7); +lean_dec(x_7); +if (x_37 == 0) +{ +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_4); +lean_dec(x_2); +return x_5; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_box(0); +x_39 = lean_array_fset(x_5, x_32, x_38); +x_40 = !lean_is_exclusive(x_33); +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_33, 1); +x_42 = lean_ctor_get(x_33, 0); +lean_dec(x_42); +x_43 = lean_nat_add(x_3, x_31); +x_44 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_43, x_41); +lean_dec(x_43); +lean_ctor_set(x_33, 1, x_44); +lean_ctor_set(x_33, 0, x_4); +x_45 = lean_array_fset(x_39, x_32, x_33); +lean_dec(x_32); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_33, 1); +lean_inc(x_46); +lean_dec(x_33); +x_47 = lean_nat_add(x_3, x_31); +x_48 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_47, x_46); +lean_dec(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_4); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_array_fset(x_39, x_32, x_49); +lean_dec(x_32); +return x_50; +} +} +} +else +{ +lean_object* x_51; +lean_dec(x_33); +lean_dec(x_7); +x_51 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_32, lean_box(0), lean_box(0)); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_7); +x_52 = lean_nat_add(x_3, x_31); +x_53 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_52); +lean_dec(x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_4); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_array_push(x_5, x_54); +return x_55; +} +} +} +else +{ +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_dec(x_12); +lean_dec(x_10); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_3, x_56); +x_58 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_57); +lean_dec(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_4); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_array_push(x_5, x_59); +x_61 = l_Array_insertIdx_loop___rarg(x_8, x_60, x_7); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_7); +x_62 = lean_unsigned_to_nat(1u); +x_63 = lean_nat_add(x_3, x_62); +x_64 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_1, x_2, x_63); +lean_dec(x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_4); +lean_ctor_set(x_65, 1, x_64); +x_66 = lean_array_push(x_5, x_65); +return x_66; +} +} +} +static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(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; uint8_t x_9; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = lean_array_get_size(x_1); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal_loop___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__10(x_6, x_2, x_10); +lean_ctor_set(x_4, 0, x_11); +return x_4; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_array_fget(x_1, x_3); +x_13 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2; +lean_inc(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__11(x_1, x_2, x_3, x_12, x_7, x_14); +lean_dec(x_14); +lean_ctor_set(x_4, 1, x_15); +return x_4; +} +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_4, 0); +x_17 = lean_ctor_get(x_4, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_4); +x_18 = lean_array_get_size(x_1); +x_19 = lean_nat_dec_lt(x_3, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_unsigned_to_nat(0u); +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertVal_loop___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__10(x_16, x_2, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_17); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_array_fget(x_1, x_3); +x_24 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2; +lean_inc(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__11(x_1, x_2, x_3, x_23, x_17, x_25); +lean_dec(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_16); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_DiscrTree_instInhabited(lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.DiscrTree", 19, 19); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.DiscrTree.insertCore", 30, 30); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid key sequence", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___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; +x_1 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1; +x_2 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2; +x_3 = lean_unsigned_to_nat(481u); +x_4 = lean_unsigned_to_nat(23u); +x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Array_isEmpty___rarg(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_array_get_size(x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +lean_dec(x_5); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_Meta_DiscrTree_instInhabitedKey; +x_9 = l_outOfBounds___rarg(x_8); +lean_inc(x_1); +x_10 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2(x_1, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_unsigned_to_nat(1u); +x_12 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_11); +x_13 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(x_1, x_9, x_12); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_2, x_3, x_15, x_14); +x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(x_1, x_9, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_array_fget(x_2, x_6); +lean_inc(x_1); +x_19 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2(x_1, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_unsigned_to_nat(1u); +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_createNodes___rarg(x_2, x_3, x_20); +x_22 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(x_1, x_18, x_21); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +lean_dec(x_19); +x_24 = lean_unsigned_to_nat(1u); +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_2, x_3, x_24, x_23); +x_26 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__5(x_1, x_18, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_3); +lean_dec(x_1); +x_27 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__4; +x_28 = l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13(x_27); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1(x_1, x_4, x_3); +lean_dec(x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Meta", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Monotonicity", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotoneExt", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +x_4 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6() { +_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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____lambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__5; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +x_4 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9; +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10; +x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4___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_PersistentHashMap_findAtAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___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_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3(x_1, x_4, x_3); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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) { +_start: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__7(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___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_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____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) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_binInsertM___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__11(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___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___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +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_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +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; +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +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_6, 6); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_st_ref_take(x_7, x_8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = !lean_is_exclusive(x_11); +if (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; uint8_t x_23; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_ctor_get(x_11, 4); +lean_dec(x_15); +x_16 = l_Lean_ScopedEnvExtension_addCore___rarg(x_14, x_1, x_2, x_3, x_9); +x_17 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1; +lean_ctor_set(x_11, 4, x_17); +lean_ctor_set(x_11, 0, x_16); +x_18 = lean_st_ref_set(x_7, x_11, x_12); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_st_ref_take(x_5, x_19); +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(x_20); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_21, 1); +lean_dec(x_24); +x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2; +lean_ctor_set(x_21, 1, x_25); +x_26 = lean_st_ref_set(x_5, x_21, x_22); +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 +{ +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_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 2); +x_35 = lean_ctor_get(x_21, 3); +x_36 = lean_ctor_get(x_21, 4); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_21); +x_37 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2; +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_38, 2, x_34); +lean_ctor_set(x_38, 3, x_35); +lean_ctor_set(x_38, 4, x_36); +x_39 = lean_st_ref_set(x_5, x_38, x_22); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +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; 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; +x_44 = lean_ctor_get(x_11, 0); +x_45 = lean_ctor_get(x_11, 1); +x_46 = lean_ctor_get(x_11, 2); +x_47 = lean_ctor_get(x_11, 3); +x_48 = lean_ctor_get(x_11, 5); +x_49 = lean_ctor_get(x_11, 6); +x_50 = lean_ctor_get(x_11, 7); +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_dec(x_11); +x_51 = l_Lean_ScopedEnvExtension_addCore___rarg(x_44, x_1, x_2, x_3, x_9); +x_52 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1; +x_53 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_45); +lean_ctor_set(x_53, 2, x_46); +lean_ctor_set(x_53, 3, x_47); +lean_ctor_set(x_53, 4, x_52); +lean_ctor_set(x_53, 5, x_48); +lean_ctor_set(x_53, 6, x_49); +lean_ctor_set(x_53, 7, x_50); +x_54 = lean_st_ref_set(x_7, x_53, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_5, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_57, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 3); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 4); +lean_inc(x_62); +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); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +x_64 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2; +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 5, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_65, 2, x_60); +lean_ctor_set(x_65, 3, x_61); +lean_ctor_set(x_65, 4, x_62); +x_66 = lean_st_ref_set(x_5, x_65, x_58); +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); +} +x_69 = lean_box(0); +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_68; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_67); +return x_70; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg(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) { +_start: +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_2); +x_11 = 0; +x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(x_1, x_11, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg___boxed), 9, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Monotonicity_monotoneExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1(uint64_t x_1, uint64_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint64_t 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_20; uint8_t x_21; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_7, sizeof(void*)*7); +x_14 = lean_ctor_get_uint8(x_7, sizeof(void*)*7 + 8); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_7, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_7, 3); +lean_inc(x_17); +x_18 = lean_ctor_get(x_7, 4); +lean_inc(x_18); +x_19 = lean_ctor_get(x_7, 5); +lean_inc(x_19); +x_20 = lean_ctor_get(x_7, 6); +lean_inc(x_20); +x_21 = !lean_is_exclusive(x_12); +if (x_21 == 0) +{ +uint8_t x_22; uint8_t x_23; uint8_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_22 = lean_ctor_get_uint8(x_7, sizeof(void*)*7 + 9); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*7 + 10); +x_24 = 2; +lean_ctor_set_uint8(x_12, 9, x_24); +x_25 = lean_uint64_shift_right(x_13, x_1); +x_26 = lean_uint64_shift_left(x_25, x_1); +x_27 = lean_uint64_lor(x_26, x_2); +x_28 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_28, 0, x_12); +lean_ctor_set(x_28, 1, x_15); +lean_ctor_set(x_28, 2, x_16); +lean_ctor_set(x_28, 3, x_17); +lean_ctor_set(x_28, 4, x_18); +lean_ctor_set(x_28, 5, x_19); +lean_ctor_set(x_28, 6, x_20); +lean_ctor_set_uint64(x_28, sizeof(void*)*7, x_27); +lean_ctor_set_uint8(x_28, sizeof(void*)*7 + 8, x_14); +lean_ctor_set_uint8(x_28, sizeof(void*)*7 + 9, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*7 + 10, x_23); +x_29 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_30 = l_Lean_Meta_DiscrTree_mkPath(x_6, x_29, x_28, x_8, x_9, x_10, x_11); +if (lean_obj_tag(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_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_3); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1; +x_35 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1(x_34, x_33, x_4, x_7, x_8, x_9, x_10, x_32); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +return x_35; +} +else +{ +uint8_t x_36; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_36 = !lean_is_exclusive(x_30); +if (x_36 == 0) +{ +return x_30; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +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_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; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; uint64_t x_60; uint64_t x_61; uint64_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_40 = lean_ctor_get_uint8(x_7, sizeof(void*)*7 + 9); +x_41 = lean_ctor_get_uint8(x_7, sizeof(void*)*7 + 10); +x_42 = lean_ctor_get_uint8(x_12, 0); +x_43 = lean_ctor_get_uint8(x_12, 1); +x_44 = lean_ctor_get_uint8(x_12, 2); +x_45 = lean_ctor_get_uint8(x_12, 3); +x_46 = lean_ctor_get_uint8(x_12, 4); +x_47 = lean_ctor_get_uint8(x_12, 5); +x_48 = lean_ctor_get_uint8(x_12, 6); +x_49 = lean_ctor_get_uint8(x_12, 7); +x_50 = lean_ctor_get_uint8(x_12, 8); +x_51 = lean_ctor_get_uint8(x_12, 10); +x_52 = lean_ctor_get_uint8(x_12, 11); +x_53 = lean_ctor_get_uint8(x_12, 12); +x_54 = lean_ctor_get_uint8(x_12, 13); +x_55 = lean_ctor_get_uint8(x_12, 14); +x_56 = lean_ctor_get_uint8(x_12, 15); +x_57 = lean_ctor_get_uint8(x_12, 16); +lean_dec(x_12); +x_58 = 2; +x_59 = lean_alloc_ctor(0, 0, 17); +lean_ctor_set_uint8(x_59, 0, x_42); +lean_ctor_set_uint8(x_59, 1, x_43); +lean_ctor_set_uint8(x_59, 2, x_44); +lean_ctor_set_uint8(x_59, 3, x_45); +lean_ctor_set_uint8(x_59, 4, x_46); +lean_ctor_set_uint8(x_59, 5, x_47); +lean_ctor_set_uint8(x_59, 6, x_48); +lean_ctor_set_uint8(x_59, 7, x_49); +lean_ctor_set_uint8(x_59, 8, x_50); +lean_ctor_set_uint8(x_59, 9, x_58); +lean_ctor_set_uint8(x_59, 10, x_51); +lean_ctor_set_uint8(x_59, 11, x_52); +lean_ctor_set_uint8(x_59, 12, x_53); +lean_ctor_set_uint8(x_59, 13, x_54); +lean_ctor_set_uint8(x_59, 14, x_55); +lean_ctor_set_uint8(x_59, 15, x_56); +lean_ctor_set_uint8(x_59, 16, x_57); +x_60 = lean_uint64_shift_right(x_13, x_1); +x_61 = lean_uint64_shift_left(x_60, x_1); +x_62 = lean_uint64_lor(x_61, x_2); +x_63 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_15); +lean_ctor_set(x_63, 2, x_16); +lean_ctor_set(x_63, 3, x_17); +lean_ctor_set(x_63, 4, x_18); +lean_ctor_set(x_63, 5, x_19); +lean_ctor_set(x_63, 6, x_20); +lean_ctor_set_uint64(x_63, sizeof(void*)*7, x_62); +lean_ctor_set_uint8(x_63, sizeof(void*)*7 + 8, x_14); +lean_ctor_set_uint8(x_63, sizeof(void*)*7 + 9, x_40); +lean_ctor_set_uint8(x_63, sizeof(void*)*7 + 10, x_41); +x_64 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_65 = l_Lean_Meta_DiscrTree_mkPath(x_6, x_64, x_63, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +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(x_65); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_3); +lean_ctor_set(x_68, 1, x_66); +x_69 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1; +x_70 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1(x_69, x_68, x_4, x_7, x_8, x_9, x_10, x_67); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +x_71 = lean_ctor_get(x_65, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_65, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_73 = x_65; +} else { + lean_dec_ref(x_65); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2(uint64_t x_1, uint64_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_11 = l_Lean_Meta_Monotonicity_headBetaUnderLambda(x_5); +x_12 = lean_box_uint64(x_1); +x_13 = lean_box_uint64(x_2); +x_14 = lean_box(x_4); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___boxed), 11, 4); +lean_closure_set(x_15, 0, x_12); +lean_closure_set(x_15, 1, x_13); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_14); +x_16 = lean_unsigned_to_nat(1u); +x_17 = 0; +x_18 = l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg(x_11, x_16, x_15, x_17, x_6, x_7, x_8, x_9, x_10); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3(uint64_t x_1, uint64_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, 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_headBeta(x_9); +x_16 = l_Lean_Expr_isLambda(x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_17 = l_Lean_Meta_etaExpand(x_15, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2(x_1, x_2, x_3, x_4, x_18, x_10, x_11, x_12, x_13, x_19); +return x_20; +} +else +{ +uint8_t x_21; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +lean_object* x_25; +x_25 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2(x_1, x_2, x_3, x_4, x_15, x_10, x_11, x_12, x_13, x_14); +return x_25; +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("@[partial_fixpoint_monotone] attribute only applies to lemmas proving ", 70, 70); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Order", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +x_2 = 0; +x_3 = l_Lean_MessageData_ofConstName(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_3 = lean_alloc_ctor(7, 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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10; +x_8 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1() { +_start: +{ +uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_1 = 0; +x_2 = 1; +x_3 = 1; +x_4 = 0; +x_5 = 2; +x_6 = lean_alloc_ctor(0, 0, 17); +lean_ctor_set_uint8(x_6, 0, x_1); +lean_ctor_set_uint8(x_6, 1, x_1); +lean_ctor_set_uint8(x_6, 2, x_1); +lean_ctor_set_uint8(x_6, 3, x_1); +lean_ctor_set_uint8(x_6, 4, x_1); +lean_ctor_set_uint8(x_6, 5, x_2); +lean_ctor_set_uint8(x_6, 6, x_2); +lean_ctor_set_uint8(x_6, 7, x_1); +lean_ctor_set_uint8(x_6, 8, x_2); +lean_ctor_set_uint8(x_6, 9, x_3); +lean_ctor_set_uint8(x_6, 10, x_4); +lean_ctor_set_uint8(x_6, 11, x_2); +lean_ctor_set_uint8(x_6, 12, x_2); +lean_ctor_set_uint8(x_6, 13, x_2); +lean_ctor_set_uint8(x_6, 14, x_5); +lean_ctor_set_uint8(x_6, 15, x_2); +lean_ctor_set_uint8(x_6, 16, x_2); +return x_6; +} +} +static uint64_t _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2() { +_start: +{ +lean_object* x_1; uint64_t x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1; +x_2 = l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3() { +_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_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3; +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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_1 = lean_box(0); +x_2 = lean_box(0); +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1; +x_4 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2; +x_5 = 0; +x_6 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6; +x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_1); +lean_ctor_set(x_9, 2, x_6); +lean_ctor_set(x_9, 3, x_7); +lean_ctor_set(x_9, 4, x_2); +lean_ctor_set(x_9, 5, x_8); +lean_ctor_set(x_9, 6, x_2); +lean_ctor_set_uint64(x_9, sizeof(void*)*7, x_4); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 8, x_5); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 9, x_5); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 10, x_5); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +x_3 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_1); +lean_ctor_set(x_3, 3, x_2); +lean_ctor_set(x_3, 4, x_2); +lean_ctor_set(x_3, 5, x_2); +lean_ctor_set(x_3, 6, x_2); +lean_ctor_set(x_3, 7, x_2); +lean_ctor_set(x_3, 8, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7; +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_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___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; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8; +x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2; +x_4 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5; +x_5 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9; +x_6 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_4); +lean_ctor_set(x_6, 4, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11() { +_start: +{ +uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_1 = 0; +x_2 = 1; +x_3 = 2; +x_4 = 0; +x_5 = 2; +x_6 = lean_alloc_ctor(0, 0, 17); +lean_ctor_set_uint8(x_6, 0, x_1); +lean_ctor_set_uint8(x_6, 1, x_1); +lean_ctor_set_uint8(x_6, 2, x_1); +lean_ctor_set_uint8(x_6, 3, x_1); +lean_ctor_set_uint8(x_6, 4, x_1); +lean_ctor_set_uint8(x_6, 5, x_2); +lean_ctor_set_uint8(x_6, 6, x_2); +lean_ctor_set_uint8(x_6, 7, x_1); +lean_ctor_set_uint8(x_6, 8, x_2); +lean_ctor_set_uint8(x_6, 9, x_3); +lean_ctor_set_uint8(x_6, 10, x_4); +lean_ctor_set_uint8(x_6, 11, x_2); +lean_ctor_set_uint8(x_6, 12, x_2); +lean_ctor_set_uint8(x_6, 13, x_2); +lean_ctor_set_uint8(x_6, 14, x_5); +lean_ctor_set_uint8(x_6, 15, x_2); +lean_ctor_set_uint8(x_6, 16, x_2); +return x_6; +} +} +static uint64_t _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__12() { +_start: +{ +uint64_t x_1; uint64_t x_2; uint64_t x_3; +x_1 = 2; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2; +x_3 = lean_uint64_shift_right(x_2, x_1); +return x_3; +} +} +static uint64_t _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__13() { +_start: +{ +uint64_t x_1; uint64_t x_2; uint64_t x_3; +x_1 = 2; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__12; +x_3 = lean_uint64_shift_left(x_2, x_1); +return x_3; +} +} +static uint64_t _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14() { +_start: +{ +uint8_t x_1; uint64_t x_2; +x_1 = 2; +x_2 = l_Lean_Meta_TransparencyMode_toUInt64(x_1); +return x_2; +} +} +static uint64_t _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__15() { +_start: +{ +uint64_t x_1; uint64_t x_2; uint64_t x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__13; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14; +x_3 = lean_uint64_lor(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_1 = lean_box(0); +x_2 = lean_box(0); +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11; +x_4 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__15; +x_5 = 0; +x_6 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6; +x_7 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_1); +lean_ctor_set(x_9, 2, x_6); +lean_ctor_set(x_9, 3, x_7); +lean_ctor_set(x_9, 4, x_2); +lean_ctor_set(x_9, 5, x_8); +lean_ctor_set(x_9, 6, x_2); +lean_ctor_set_uint64(x_9, sizeof(void*)*7, x_4); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 8, x_5); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 9, x_5); +lean_ctor_set_uint8(x_9, sizeof(void*)*7 + 10, x_5); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; 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_7 = lean_box(0); +x_8 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__10; +x_9 = lean_st_mk_ref(x_8, x_6); +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(x_9); +x_12 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7; +lean_inc(x_1); +x_13 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_12, x_10, x_4, x_5, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_ConstantInfo_type(x_14); +lean_dec(x_14); +x_17 = 2; +x_18 = 1; +x_19 = 0; +x_20 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_10); +x_21 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_16, x_18, x_7, x_19, x_20, x_10, x_4, x_5, x_15); +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; uint8_t x_28; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17; +x_27 = l_Lean_Expr_cleanupAnnotations(x_25); +x_28 = l_Lean_Expr_isApp(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_27); +lean_dec(x_1); +x_29 = lean_box(0); +lean_inc(x_10); +x_30 = lean_apply_6(x_26, x_29, x_12, x_10, x_4, x_5, x_24); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +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_30); +x_33 = lean_st_ref_get(x_10, x_32); +lean_dec(x_10); +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_31); +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_31); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +lean_dec(x_10); +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_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = l_Lean_Expr_appArg(x_27, lean_box(0)); +x_43 = l_Lean_Expr_appFnCleanup(x_27, lean_box(0)); +x_44 = l_Lean_Expr_isApp(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_1); +x_45 = lean_box(0); +lean_inc(x_10); +x_46 = lean_apply_6(x_26, x_45, x_12, x_10, x_4, x_5, x_24); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_st_ref_get(x_10, x_48); +lean_dec(x_10); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_49, 0); +lean_dec(x_51); +lean_ctor_set(x_49, 0, x_47); +return x_49; +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_47); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_10); +x_54 = !lean_is_exclusive(x_46); +if (x_54 == 0) +{ +return x_46; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_46, 0); +x_56 = lean_ctor_get(x_46, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_46); +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 +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = l_Lean_Expr_appArg(x_43, lean_box(0)); +x_59 = l_Lean_Expr_appFnCleanup(x_43, lean_box(0)); +x_60 = l_Lean_Expr_isApp(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_42); +lean_dec(x_1); +x_61 = lean_box(0); +lean_inc(x_10); +x_62 = lean_apply_6(x_26, x_61, x_12, x_10, x_4, x_5, x_24); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_st_ref_get(x_10, x_64); +lean_dec(x_10); +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) +{ +lean_object* x_67; +x_67 = lean_ctor_get(x_65, 0); +lean_dec(x_67); +lean_ctor_set(x_65, 0, x_63); +return x_65; +} +else +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_63); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +else +{ +uint8_t x_70; +lean_dec(x_10); +x_70 = !lean_is_exclusive(x_62); +if (x_70 == 0) +{ +return x_62; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_62, 0); +x_72 = lean_ctor_get(x_62, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_62); +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_74; lean_object* x_75; uint8_t x_76; +x_74 = l_Lean_Expr_appArg(x_59, lean_box(0)); +x_75 = l_Lean_Expr_appFnCleanup(x_59, lean_box(0)); +x_76 = l_Lean_Expr_isApp(x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_75); +lean_dec(x_74); +lean_dec(x_58); +lean_dec(x_42); +lean_dec(x_1); +x_77 = lean_box(0); +lean_inc(x_10); +x_78 = lean_apply_6(x_26, x_77, x_12, x_10, x_4, x_5, x_24); +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(x_78); +x_81 = lean_st_ref_get(x_10, x_80); +lean_dec(x_10); +x_82 = !lean_is_exclusive(x_81); +if (x_82 == 0) +{ +lean_object* x_83; +x_83 = lean_ctor_get(x_81, 0); +lean_dec(x_83); +lean_ctor_set(x_81, 0, x_79); +return x_81; +} +else +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_dec(x_81); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_79); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +else +{ +uint8_t x_86; +lean_dec(x_10); +x_86 = !lean_is_exclusive(x_78); +if (x_86 == 0) +{ +return x_78; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_78, 0); +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_78); +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 +{ +lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_90 = l_Lean_Expr_appArg(x_75, lean_box(0)); +x_91 = l_Lean_Expr_appFnCleanup(x_75, lean_box(0)); +x_92 = l_Lean_Expr_isApp(x_91); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_74); +lean_dec(x_58); +lean_dec(x_42); +lean_dec(x_1); +x_93 = lean_box(0); +lean_inc(x_10); +x_94 = lean_apply_6(x_26, x_93, x_12, x_10, x_4, x_5, x_24); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_st_ref_get(x_10, x_96); +lean_dec(x_10); +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) +{ +lean_object* x_99; +x_99 = lean_ctor_get(x_97, 0); +lean_dec(x_99); +lean_ctor_set(x_97, 0, x_95); +return x_97; +} +else +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_97, 1); +lean_inc(x_100); +lean_dec(x_97); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_95); +lean_ctor_set(x_101, 1, x_100); +return x_101; +} +} +else +{ +uint8_t x_102; +lean_dec(x_10); +x_102 = !lean_is_exclusive(x_94); +if (x_102 == 0) +{ +return x_94; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_94, 0); +x_104 = lean_ctor_get(x_94, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_94); +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_object* x_107; lean_object* x_108; uint8_t x_109; +x_106 = l_Lean_Expr_appArg(x_91, lean_box(0)); +x_107 = l_Lean_Expr_appFnCleanup(x_91, lean_box(0)); +x_108 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +x_109 = l_Lean_Expr_isConstOf(x_107, x_108); +lean_dec(x_107); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_106); +lean_dec(x_90); +lean_dec(x_74); +lean_dec(x_58); +lean_dec(x_42); +lean_dec(x_1); +x_110 = lean_box(0); +lean_inc(x_10); +x_111 = lean_apply_6(x_26, x_110, x_12, x_10, x_4, x_5, x_24); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +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(x_111); +x_114 = lean_st_ref_get(x_10, x_113); +lean_dec(x_10); +x_115 = !lean_is_exclusive(x_114); +if (x_115 == 0) +{ +lean_object* x_116; +x_116 = lean_ctor_get(x_114, 0); +lean_dec(x_116); +lean_ctor_set(x_114, 0, x_112); +return x_114; +} +else +{ +lean_object* x_117; lean_object* x_118; +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_dec(x_114); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_112); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +else +{ +uint8_t x_119; +lean_dec(x_10); +x_119 = !lean_is_exclusive(x_111); +if (x_119 == 0) +{ +return x_111; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_111, 0); +x_121 = lean_ctor_get(x_111, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_111); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint64_t x_123; lean_object* x_124; +x_123 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14; +lean_inc(x_10); +x_124 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3(x_17, x_123, x_1, x_3, x_106, x_90, x_74, x_58, x_42, x_12, x_10, x_4, x_5, x_24); +lean_dec(x_58); +lean_dec(x_74); +lean_dec(x_90); +lean_dec(x_106); +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(x_124); +x_127 = lean_st_ref_get(x_10, x_126); +lean_dec(x_10); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +lean_object* x_129; +x_129 = lean_ctor_get(x_127, 0); +lean_dec(x_129); +lean_ctor_set(x_127, 0, x_125); +return x_127; +} +else +{ +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_127, 1); +lean_inc(x_130); +lean_dec(x_127); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_125); +lean_ctor_set(x_131, 1, x_130); +return x_131; +} +} +else +{ +uint8_t x_132; +lean_dec(x_10); +x_132 = !lean_is_exclusive(x_124); +if (x_132 == 0) +{ +return x_124; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_124, 0); +x_134 = lean_ctor_get(x_124, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_124); +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; +} +} +} +} +} +} +} +} +} +else +{ +uint8_t x_136; +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_136 = !lean_is_exclusive(x_21); +if (x_136 == 0) +{ +return x_21; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_21, 0); +x_138 = lean_ctor_get(x_21, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_21); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; +} +} +} +else +{ +uint8_t x_140; +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_140 = !lean_is_exclusive(x_13); +if (x_140 == 0) +{ +return x_13; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_13, 0); +x_142 = lean_ctor_get(x_13, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_13); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("attribute cannot be erased", 26, 26); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__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; +x_5 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2; +x_6 = l_Lean_throwError___at_Lean_Attribute_Builtin_ensureNoArgs___spec__2(x_5, x_2, x_3, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("initFn", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_@", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Elab", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Tactic", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_hyg", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15; +x_2 = lean_unsigned_to_nat(249u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("partial_fixpoint_monotone", 25, 25); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotonicity theorem", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19; +x_4 = 0; +x_5 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___boxed), 4, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23; +x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_4); +lean_dec(x_4); +x_11 = l_Lean_Meta_lambdaBoundedTelescope___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__2___rarg(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint64_t x_12; uint64_t x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_13 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1(x_12, x_13, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint64_t x_11; uint64_t x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_12 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__2(x_11, x_12, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint64_t x_15; uint64_t x_16; uint8_t x_17; lean_object* x_18; +x_15 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_16 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_17 = lean_unbox(x_4); +lean_dec(x_4); +x_18 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__3(x_15, x_16, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5(x_1, x_2, x_7, x_4, x_5, x_6); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_findMonoThms(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1; +x_12 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1; +x_13 = l_Lean_ScopedEnvExtension_getState___rarg(x_11, x_12, x_10); +lean_dec(x_10); +x_14 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_13, x_1, x_2, x_3, x_4, x_5, x_9); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg(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_Meta_instAddMessageContextMetaM___spec__1(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___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg(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_Meta_instAddMessageContextMetaM___spec__1(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___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Failed to prove monotonicity of:", 32, 32); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n", 1, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Tried to apply ", 15, 15); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", but failed.", 13, 13); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg(lean_object* x_1, 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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = l_Array_isEmpty___rarg(x_2); +x_9 = l_Lean_indentExpr(x_1); +x_10 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2; +x_11 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4; +x_13 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +if (x_8 == 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; +x_14 = lean_array_to_list(x_2); +x_15 = lean_box(0); +x_16 = l_List_mapTR_loop___at_Lean_Parser_Tactic_Doc_initFn____x40_Lean_Parser_Tactic_Doc___hyg_2831____spec__8(x_14, x_15); +x_17 = l_Lean_MessageData_andList(x_16); +x_18 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6; +x_19 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_22, 0, x_13); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +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 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg(x_24, x_3, x_4, x_5, x_6, x_7); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_2); +x_26 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_27 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_27, 0, x_13); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg(x_28, x_3, x_4, x_5, x_6, x_7); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___boxed), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg___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___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg___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___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___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_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Could not apply ", 16, 16); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(":", 1, 1); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +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; +x_3 = 0; +x_4 = l_Lean_MessageData_ofConstName(x_1, x_3); +x_5 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2; +x_6 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4; +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_indentD(x_2); +x_10 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1() { +_start: +{ +uint8_t x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_1 = 0; +x_2 = 0; +x_3 = 1; +x_4 = lean_alloc_ctor(0, 0, 4); +lean_ctor_set_uint8(x_4, 0, x_1); +lean_ctor_set_uint8(x_4, 1, x_2); +lean_ctor_set_uint8(x_4, 2, x_2); +lean_ctor_set_uint8(x_4, 3, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(lean_object* x_1, 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; +x_8 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1; +lean_inc(x_2); +x_9 = lean_alloc_closure((void*)(l_Lean_MVarId_applyConst), 8, 3); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_8); +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1), 2, 1); +lean_closure_set(x_10, 0, x_2); +x_11 = l_Lean_Meta_mapErrorImp___rarg(x_9, x_10, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +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_Monotonicity_solveMonoCall___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +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; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__1___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_id", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1; +x_11 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2; +x_12 = lean_expr_eqv(x_1, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +lean_dec(x_2); +x_13 = lean_box(0); +x_14 = lean_apply_6(x_10, x_13, x_5, x_6, x_7, x_8, x_9); +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_object* x_20; lean_object* x_21; lean_object* x_22; +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_3); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_15); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_array_mk(x_19); +x_21 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4; +x_22 = l_Lean_Meta_mkAppOptM(x_21, x_20, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_22); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_26); +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_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; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_pprod_snd", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_pprod_fst", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_14 = l_Lean_Expr_projIdx_x21(x_1); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_eq(x_14, x_15); +lean_dec(x_14); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_5); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_6); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_2); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_7); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_8); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_3); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_4); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_18); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_17); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_array_mk(x_33); +if (x_16 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2; +x_36 = l_Lean_Meta_mkAppOptM(x_35, x_34, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_36) == 0) +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_36, 0, x_39); +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_36); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_40); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +else +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_36); +if (x_44 == 0) +{ +return x_36; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_36, 0); +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_36); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4; +x_49 = l_Lean_Meta_mkAppOptM(x_48, x_34, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_49) == 0) +{ +uint8_t x_50; +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_49, 0, x_52); +return x_49; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_49, 0); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_49); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_49); +if (x_57 == 0) +{ +return x_49; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_49, 0); +x_59 = lean_ctor_get(x_49, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_49); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("solveMonoCall ", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(": whnfUntil failed\?", 19, 19); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_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 = l_Lean_MessageData_ofExpr(x_1); +x_11 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__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 = l_Lean_indentExpr(x_2); +x_16 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_18 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_18, x_5, x_6, x_7, x_8, x_9); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +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; +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instPartialOrderPProd", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(": unexpected instance ", 22, 22); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; +x_12 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_13 = l_Lean_Meta_whnfUntil(x_6, x_12, x_7, x_8, x_9, x_10, x_11); +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) +{ +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; uint8_t x_26; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_MessageData_ofExpr(x_1); +x_17 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2; +x_18 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4; +x_20 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_MessageData_ofExpr(x_6); +x_22 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +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 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_24, x_7, x_8, x_9, x_10, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +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; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_dec(x_6); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +lean_dec(x_13); +x_31 = lean_ctor_get(x_14, 0); +lean_inc(x_31); +lean_dec(x_14); +lean_inc(x_31); +x_32 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_31, x_7, x_8, x_9, x_10, x_30); +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(x_32); +x_35 = l_Lean_Expr_cleanupAnnotations(x_33); +x_36 = l_Lean_Expr_isApp(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_35); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_37 = lean_box(0); +x_38 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_31, x_2, x_37, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = l_Lean_Expr_appArg(x_35, lean_box(0)); +x_40 = l_Lean_Expr_appFnCleanup(x_35, lean_box(0)); +x_41 = l_Lean_Expr_isApp(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_31, x_2, x_42, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = l_Lean_Expr_appArg(x_40, lean_box(0)); +x_45 = l_Lean_Expr_appFnCleanup(x_40, lean_box(0)); +x_46 = l_Lean_Expr_isApp(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +lean_dec(x_44); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_47 = lean_box(0); +x_48 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_31, x_2, x_47, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_Expr_appArg(x_45, lean_box(0)); +x_50 = l_Lean_Expr_appFnCleanup(x_45, lean_box(0)); +x_51 = l_Lean_Expr_isApp(x_50); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_44); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_52 = lean_box(0); +x_53 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_31, x_2, x_52, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = l_Lean_Expr_appArg(x_50, lean_box(0)); +x_55 = l_Lean_Expr_appFnCleanup(x_50, lean_box(0)); +x_56 = l_Lean_Expr_isConstOf(x_55, x_12); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_49); +lean_dec(x_44); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_57 = lean_box(0); +x_58 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_31, x_2, x_57, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_58; +} +else +{ +lean_object* x_59; +lean_dec(x_31); +x_59 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3(x_1, x_3, x_4, x_5, x_54, x_49, x_44, x_39, x_7, x_8, x_9, x_10, x_34); +lean_dec(x_1); +return x_59; +} +} +} +} +} +} +} +else +{ +uint8_t x_60; +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); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_13); +if (x_60 == 0) +{ +return x_13; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_13, 0); +x_62 = lean_ctor_get(x_13, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_13); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(": unexpected type ", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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) { +_start: +{ +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; uint8_t x_20; +x_10 = l_Lean_MessageData_ofExpr(x_1); +x_11 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2; +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 = l_Lean_MessageData_ofExpr(x_2); +x_16 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_18 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_18, x_5, x_6, x_7, x_8, x_9); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +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_Monotonicity_solveMonoCall___lambda__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) { +_start: +{ +lean_object* x_10; uint8_t x_11; +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___boxed), 9, 3); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_2); +lean_closure_set(x_10, 2, x_3); +x_11 = l_Lean_Expr_isProj(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +x_12 = lean_box(0); +x_13 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_Lean_Expr_projExpr_x21(x_1); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +x_15 = l_Lean_Meta_Monotonicity_solveMonoCall(x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9); +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_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(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; +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_dec(x_15); +x_24 = lean_ctor_get(x_16, 0); +lean_inc(x_24); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_24); +x_25 = lean_infer_type(x_24, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_26); +x_28 = l_Lean_Expr_cleanupAnnotations(x_26); +x_29 = l_Lean_Expr_isApp(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_28); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_box(0); +x_31 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_30, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_31; +} +else +{ +lean_object* x_32; uint8_t x_33; +x_32 = l_Lean_Expr_appFnCleanup(x_28, lean_box(0)); +x_33 = l_Lean_Expr_isApp(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_32); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_34 = lean_box(0); +x_35 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_34, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = l_Lean_Expr_appArg(x_32, lean_box(0)); +x_37 = l_Lean_Expr_appFnCleanup(x_32, lean_box(0)); +x_38 = l_Lean_Expr_isApp(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_39 = lean_box(0); +x_40 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_39, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_40; +} +else +{ +lean_object* x_41; uint8_t x_42; +x_41 = l_Lean_Expr_appFnCleanup(x_37, lean_box(0)); +x_42 = l_Lean_Expr_isApp(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_43, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_44; +} +else +{ +lean_object* x_45; uint8_t x_46; +x_45 = l_Lean_Expr_appFnCleanup(x_41, lean_box(0)); +x_46 = l_Lean_Expr_isApp(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_45); +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_47 = lean_box(0); +x_48 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_47, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_Expr_appFnCleanup(x_45, lean_box(0)); +x_50 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +x_51 = l_Lean_Expr_isConstOf(x_49, x_50); +lean_dec(x_49); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_52 = lean_box(0); +x_53 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_26, x_10, x_52, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_10); +return x_53; +} +else +{ +lean_object* x_54; +lean_dec(x_26); +x_54 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5(x_1, x_10, x_2, x_3, x_24, x_36, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_10); +return x_54; +} +} +} +} +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_25); +if (x_55 == 0) +{ +return x_25; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_25, 0); +x_57 = lean_ctor_get(x_25, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_25); +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_59; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_15); +if (x_59 == 0) +{ +return x_15; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_15, 0); +x_61 = lean_ctor_get(x_15, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_apply", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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) { +_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; 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; +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_5); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_6); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_1); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_2); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_7); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_3); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_4); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_19); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_18); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_16); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_15); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_14); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_13); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_array_mk(x_29); +x_31 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2; +x_32 = l_Lean_Meta_mkAppOptM(x_31, x_30, x_8, x_9, x_10, x_11, x_12); +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; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_32, 0); +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_32); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_32); +if (x_40 == 0) +{ +return x_32; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_32, 0); +x_42 = lean_ctor_get(x_32, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_32); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instOrderPi", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_14 = l_Lean_Meta_whnfUntil(x_7, x_13, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_MessageData_ofExpr(x_1); +x_18 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2; +x_19 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_MessageData_ofExpr(x_7); +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +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 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_25, x_8, x_9, x_10, x_11, x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_7); +x_31 = lean_ctor_get(x_14, 1); +lean_inc(x_31); +lean_dec(x_14); +x_32 = lean_ctor_get(x_15, 0); +lean_inc(x_32); +lean_dec(x_15); +lean_inc(x_32); +x_33 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_32, x_8, x_9, x_10, x_11, x_31); +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(x_33); +x_36 = l_Lean_Expr_cleanupAnnotations(x_34); +x_37 = l_Lean_Expr_isApp(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_36); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_38 = lean_box(0); +x_39 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_32, x_2, x_38, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = l_Lean_Expr_appArg(x_36, lean_box(0)); +x_41 = l_Lean_Expr_appFnCleanup(x_36, lean_box(0)); +x_42 = l_Lean_Expr_isApp(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_32, x_2, x_43, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = l_Lean_Expr_appArg(x_41, lean_box(0)); +x_46 = l_Lean_Expr_appFnCleanup(x_41, lean_box(0)); +x_47 = l_Lean_Expr_isApp(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_40); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_48 = lean_box(0); +x_49 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_32, x_2, x_48, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = l_Lean_Expr_appArg(x_46, lean_box(0)); +x_51 = l_Lean_Expr_appFnCleanup(x_46, lean_box(0)); +x_52 = l_Lean_Expr_isConstOf(x_51, x_13); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_50); +lean_dec(x_45); +lean_dec(x_40); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_53 = lean_box(0); +x_54 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_32, x_2, x_53, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_54; +} +else +{ +lean_object* x_55; +lean_dec(x_32); +lean_dec(x_1); +x_55 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8(x_3, x_4, x_5, x_6, x_50, x_45, x_40, x_8, x_9, x_10, x_11, x_35); +return x_55; +} +} +} +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_11); +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); +lean_dec(x_1); +x_56 = !lean_is_exclusive(x_14); +if (x_56 == 0) +{ +return x_14; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_14, 0); +x_58 = lean_ctor_get(x_14, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_14); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall(lean_object* x_1, lean_object* x_2, 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; +lean_inc(x_2); +lean_inc(x_1); +lean_inc(x_3); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7___boxed), 9, 3); +lean_closure_set(x_9, 0, x_3); +lean_closure_set(x_9, 1, x_1); +lean_closure_set(x_9, 2, x_2); +x_10 = l_Lean_Expr_isApp(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_9); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7(x_3, x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_Expr_appArg_x21(x_3); +x_14 = l_Lean_Expr_hasLooseBVars(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_Lean_Expr_appFn_x21(x_3); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_16 = l_Lean_Meta_Monotonicity_solveMonoCall(x_1, x_2, x_15, x_4, x_5, x_6, x_7, x_8); +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_13); +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); +lean_dec(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; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_dec(x_16); +x_25 = lean_ctor_get(x_17, 0); +lean_inc(x_25); +lean_dec(x_17); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_25); +x_26 = lean_infer_type(x_25, x_4, x_5, x_6, x_7, x_24); +if (lean_obj_tag(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_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +lean_inc(x_27); +x_29 = l_Lean_Expr_cleanupAnnotations(x_27); +x_30 = l_Lean_Expr_isApp(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_31 = lean_box(0); +x_32 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_31, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_32; +} +else +{ +lean_object* x_33; uint8_t x_34; +x_33 = l_Lean_Expr_appFnCleanup(x_29, lean_box(0)); +x_34 = l_Lean_Expr_isApp(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_33); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_35 = lean_box(0); +x_36 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_35, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = l_Lean_Expr_appArg(x_33, lean_box(0)); +x_38 = l_Lean_Expr_appFnCleanup(x_33, lean_box(0)); +x_39 = l_Lean_Expr_isApp(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_40 = lean_box(0); +x_41 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_40, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_41; +} +else +{ +lean_object* x_42; uint8_t x_43; +x_42 = l_Lean_Expr_appFnCleanup(x_38, lean_box(0)); +x_43 = l_Lean_Expr_isApp(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_42); +lean_dec(x_37); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_44 = lean_box(0); +x_45 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_44, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_45; +} +else +{ +lean_object* x_46; uint8_t x_47; +x_46 = l_Lean_Expr_appFnCleanup(x_42, lean_box(0)); +x_47 = l_Lean_Expr_isApp(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_46); +lean_dec(x_37); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_48 = lean_box(0); +x_49 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_48, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = l_Lean_Expr_appFnCleanup(x_46, lean_box(0)); +x_51 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +x_52 = l_Lean_Expr_isConstOf(x_50, x_51); +lean_dec(x_50); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_37); +lean_dec(x_25); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_box(0); +x_54 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_3, x_27, x_9, x_53, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_9); +return x_54; +} +else +{ +lean_object* x_55; +lean_dec(x_27); +x_55 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9(x_3, x_9, x_1, x_2, x_13, x_25, x_37, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_9); +return x_55; +} +} +} +} +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_25); +lean_dec(x_13); +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); +lean_dec(x_1); +x_56 = !lean_is_exclusive(x_26); +if (x_56 == 0) +{ +return x_26; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_26, 0); +x_58 = lean_ctor_get(x_26, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_26); +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_60; +lean_dec(x_13); +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); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_16); +if (x_60 == 0) +{ +return x_16; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_16, 0); +x_62 = lean_ctor_get(x_16, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_16); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_13); +lean_dec(x_9); +x_64 = lean_box(0); +x_65 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7(x_3, x_1, x_2, x_64, x_4, x_5, x_6, x_7, x_8); +return x_65; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Monotonicity_solveMonoCall___lambda__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_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9(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_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +uint8_t x_10; +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_7); +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_object* x_20; +x_15 = lean_ctor_get(x_2, 0); +lean_inc(x_15); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_7); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Succeeded with ", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_lt(x_9, x_8); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_28; lean_object* x_29; lean_object* x_63; +lean_dec(x_10); +x_18 = lean_array_uget(x_7, x_9); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_18); +lean_inc(x_1); +x_63 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(x_1, x_18, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_2); +x_67 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_11, x_12, x_13, x_14, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_unbox(x_68); +lean_dec(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_free_object(x_63); +lean_dec(x_18); +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +lean_dec(x_67); +x_71 = lean_box(0); +x_72 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_65, x_71, x_11, x_12, x_13, x_14, x_70); +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(x_72); +lean_inc(x_6); +x_75 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_73, x_11, x_12, x_13, x_14, x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_19 = x_76; +x_20 = x_77; +goto block_27; +} +else +{ +uint8_t x_78; +x_78 = !lean_is_exclusive(x_67); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_79 = lean_ctor_get(x_67, 1); +x_80 = lean_ctor_get(x_67, 0); +lean_dec(x_80); +x_81 = 0; +x_82 = l_Lean_MessageData_ofConstName(x_18, x_81); +x_83 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2; +lean_ctor_set_tag(x_67, 7); +lean_ctor_set(x_67, 1, x_82); +lean_ctor_set(x_67, 0, x_83); +x_84 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +lean_ctor_set_tag(x_63, 7); +lean_ctor_set(x_63, 1, x_84); +lean_ctor_set(x_63, 0, x_67); +lean_inc(x_2); +x_85 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_63, x_11, x_12, x_13, x_14, x_79); +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(x_85); +x_88 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_65, x_86, x_11, x_12, x_13, x_14, x_87); +lean_dec(x_86); +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(x_88); +lean_inc(x_6); +x_91 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_89, x_11, x_12, x_13, x_14, x_90); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_19 = x_92; +x_20 = x_93; +goto block_27; +} +else +{ +lean_object* x_94; uint8_t 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; +x_94 = lean_ctor_get(x_67, 1); +lean_inc(x_94); +lean_dec(x_67); +x_95 = 0; +x_96 = l_Lean_MessageData_ofConstName(x_18, x_95); +x_97 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2; +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +x_99 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +lean_ctor_set_tag(x_63, 7); +lean_ctor_set(x_63, 1, x_99); +lean_ctor_set(x_63, 0, x_98); +lean_inc(x_2); +x_100 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_63, x_11, x_12, x_13, x_14, x_94); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_65, x_101, x_11, x_12, x_13, x_14, x_102); +lean_dec(x_101); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +lean_inc(x_6); +x_106 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_104, x_11, x_12, x_13, x_14, x_105); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_19 = x_107; +x_20 = x_108; +goto block_27; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_109 = lean_ctor_get(x_63, 0); +x_110 = lean_ctor_get(x_63, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_63); +lean_inc(x_2); +x_111 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_11, x_12, x_13, x_14, x_110); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_unbox(x_112); +lean_dec(x_112); +if (x_113 == 0) +{ +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_dec(x_18); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +lean_dec(x_111); +x_115 = lean_box(0); +x_116 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_109, x_115, x_11, x_12, x_13, x_14, x_114); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +lean_inc(x_6); +x_119 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_117, x_11, x_12, x_13, x_14, x_118); +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(x_119); +x_19 = x_120; +x_20 = x_121; +goto block_27; +} +else +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_122 = lean_ctor_get(x_111, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_123 = x_111; +} else { + lean_dec_ref(x_111); + x_123 = lean_box(0); +} +x_124 = 0; +x_125 = l_Lean_MessageData_ofConstName(x_18, x_124); +x_126 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2; +if (lean_is_scalar(x_123)) { + x_127 = lean_alloc_ctor(7, 2, 0); +} else { + x_127 = x_123; + lean_ctor_set_tag(x_127, 7); +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +x_128 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_129 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +lean_inc(x_2); +x_130 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_129, x_11, x_12, x_13, x_14, x_122); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_109, x_131, x_11, x_12, x_13, x_14, x_132); +lean_dec(x_131); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +lean_inc(x_6); +x_136 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_134, x_11, x_12, x_13, x_14, x_135); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +x_19 = x_137; +x_20 = x_138; +goto block_27; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +lean_dec(x_18); +x_139 = lean_ctor_get(x_63, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_63, 1); +lean_inc(x_140); +lean_dec(x_63); +x_28 = x_139; +x_29 = x_140; +goto block_62; +} +block_27: +{ +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(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; +} +else +{ +lean_object* x_23; size_t x_24; size_t x_25; +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +lean_dec(x_19); +x_24 = 1; +x_25 = lean_usize_add(x_9, x_24); +x_9 = x_25; +x_10 = x_23; +x_15 = x_20; +goto _start; +} +} +block_62: +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isInterrupt(x_28); +if (x_30 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_inc(x_2); +x_32 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_11, x_12, x_13, x_14, x_29); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_28); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +lean_inc(x_5); +lean_inc(x_6); +x_36 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_5, x_11, x_12, x_13, x_14, x_35); +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(x_36); +x_19 = x_37; +x_20 = x_38; +goto block_27; +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_32); +if (x_39 == 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; lean_object* x_49; +x_40 = lean_ctor_get(x_32, 1); +x_41 = lean_ctor_get(x_32, 0); +lean_dec(x_41); +x_42 = l_Lean_Exception_toMessageData(x_28); +x_43 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_42); +lean_ctor_set(x_32, 0, x_43); +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_32); +lean_ctor_set(x_44, 1, x_43); +lean_inc(x_2); +x_45 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_44, x_11, x_12, x_13, x_14, x_40); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +lean_inc(x_5); +lean_inc(x_6); +x_47 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_5, x_11, x_12, x_13, x_14, x_46); +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(x_47); +x_19 = x_48; +x_20 = x_49; +goto block_27; +} +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; +x_50 = lean_ctor_get(x_32, 1); +lean_inc(x_50); +lean_dec(x_32); +x_51 = l_Lean_Exception_toMessageData(x_28); +x_52 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +lean_inc(x_2); +x_55 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_54, x_11, x_12, x_13, x_14, x_50); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +lean_inc(x_5); +lean_inc(x_6); +x_57 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_6, x_5, x_11, x_12, x_13, x_14, x_56); +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(x_57); +x_19 = x_58; +x_20 = x_59; +goto block_27; +} +} +} +else +{ +lean_object* x_60; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_28); +lean_ctor_set(x_60, 1, x_29); +return x_60; +} +} +else +{ +lean_object* x_61; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_28); +lean_ctor_set(x_61, 1, x_29); +return x_61; +} +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1; +x_2 = lean_box(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_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_4, 1); +x_15 = lean_nat_dec_lt(x_6, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_6); +lean_dec(x_3); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +lean_dec(x_5); +x_17 = lean_array_get_size(x_1); +x_18 = lean_nat_dec_lt(x_6, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Lean_instInhabitedExpr; +x_20 = l_outOfBounds___rarg(x_19); +x_21 = l_Lean_Expr_hasLooseBVars(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_4, 2); +x_23 = lean_nat_add(x_6, x_22); +lean_dec(x_6); +lean_inc(x_3); +{ +lean_object* _tmp_4 = x_3; +lean_object* _tmp_5 = x_23; +lean_object* _tmp_6 = lean_box(0); +lean_object* _tmp_7 = lean_box(0); +x_5 = _tmp_4; +x_6 = _tmp_5; +x_7 = _tmp_6; +x_8 = _tmp_7; +} +goto _start; +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_6); +lean_dec(x_3); +x_25 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2; +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_13); +return x_26; +} +} +else +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_array_fget(x_1, x_6); +x_28 = l_Lean_Expr_hasLooseBVars(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_nat_add(x_6, x_29); +lean_dec(x_6); +lean_inc(x_3); +{ +lean_object* _tmp_4 = x_3; +lean_object* _tmp_5 = x_30; +lean_object* _tmp_6 = lean_box(0); +lean_object* _tmp_7 = lean_box(0); +x_5 = _tmp_4; +x_6 = _tmp_5; +x_7 = _tmp_6; +x_8 = _tmp_7; +} +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_6); +lean_dec(x_3); +x_32 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_13); +return x_33; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___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; uint8_t x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = 0; +x_9 = l_Lean_MessageData_ofConstName(x_5, x_8); +x_10 = 1; +x_11 = lean_usize_add(x_2, x_10); +x_12 = lean_array_uset(x_7, x_2, x_9); +x_2 = x_11; +x_3 = x_12; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_5; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_2); +x_1 = x_8; +x_2 = x_9; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_expr_instantiate1(x_1, x_2); +x_9 = l_Lean_Meta_Monotonicity_findMonoThms(x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = lean_apply_8(x_1, lean_box(0), x_2, x_3, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 1; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_Expr_sort___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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; +x_13 = lean_st_ref_get(x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Meta_isMatcherAppCore_x3f(x_16, x_4); +lean_dec(x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_18 = lean_apply_8(x_1, lean_box(0), x_2, x_3, x_8, x_9, x_10, x_11, x_15); +return x_18; +} +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; 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; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_4, x_20); +x_22 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1; +lean_inc(x_21); +x_23 = lean_mk_array(x_21, x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_21, x_24); +lean_dec(x_21); +lean_inc(x_4); +x_26 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_4, x_23, x_25); +x_27 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_19); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_nat_add(x_27, x_28); +lean_dec(x_28); +lean_inc(x_27); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_30, 2, x_24); +lean_inc(x_5); +x_31 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2(x_26, x_30, x_5, x_30, x_5, x_27, lean_box(0), lean_box(0), x_8, x_9, x_10, x_11, x_15); +lean_dec(x_30); +lean_dec(x_26); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(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_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2; +x_36 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_37 = lean_apply_6(x_35, x_36, x_8, x_9, x_10, x_11, x_34); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_6); +lean_dec(x_4); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_apply_8(x_1, lean_box(0), x_2, x_3, x_8, x_9, x_10, x_11, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_ctor_get(x_37, 1); +lean_inc(x_42); +lean_dec(x_37); +x_43 = l_Lean_Meta_Split_splitMatch(x_6, x_4, x_8, x_9, x_10, x_11, x_42); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +else +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +return x_43; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_43); +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(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_37); +if (x_52 == 0) +{ +return x_37; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_37, 0); +x_54 = lean_ctor_get(x_37, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_37); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_33, 0); +lean_inc(x_56); +lean_dec(x_33); +x_57 = lean_unbox(x_56); +lean_dec(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_6); +lean_dec(x_4); +x_58 = lean_ctor_get(x_31, 1); +lean_inc(x_58); +lean_dec(x_31); +x_59 = lean_apply_8(x_1, lean_box(0), x_2, x_3, x_8, x_9, x_10, x_11, x_58); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_60 = lean_ctor_get(x_31, 1); +lean_inc(x_60); +lean_dec(x_31); +x_61 = l_Lean_Meta_Split_splitMatch(x_6, x_4, x_8, x_9, x_10, x_11, x_60); +if (lean_obj_tag(x_61) == 0) +{ +uint8_t x_62; +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +return x_61; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +else +{ +uint8_t x_66; +x_66 = !lean_is_exclusive(x_61); +if (x_66 == 0) +{ +return x_61; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_61, 0); +x_68 = lean_ctor_get(x_61, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_61); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(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_Monotonicity_solveMonoStep___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_box(0); +x_14 = lean_box(0); +x_15 = lean_array_size(x_1); +x_16 = 0; +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_2); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1(x_2, x_3, x_1, x_13, x_14, x_17, x_1, x_15, x_16, x_17, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +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_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +x_23 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4(x_4, x_5, x_1, x_6, x_17, x_2, x_22, x_8, x_9, x_10, x_11, x_21); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_18, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_26); +return x_18; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_dec(x_18); +x_28 = lean_ctor_get(x_20, 0); +lean_inc(x_28); +lean_dec(x_20); +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; +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) +{ +return x_18; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_18, 0); +x_32 = lean_ctor_get(x_18, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_18); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("f", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___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_Monotonicity_solveMonoStep___lambda__6___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Found monoThms: ", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_12 = l_Lean_Expr_bindingDomain_x21(x_1); +lean_inc(x_2); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1___boxed), 7, 1); +lean_closure_set(x_13, 0, x_2); +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__2; +x_15 = 0; +x_16 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_17 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_14, x_15, x_12, x_13, x_16, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_3); +x_20 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_3, x_7, x_8, x_9, x_10, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_box(0); +x_25 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5(x_18, x_4, x_3, x_5, x_1, x_2, x_24, x_7, x_8, x_9, x_10, x_23); +return x_25; +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_27 = lean_ctor_get(x_20, 1); +x_28 = lean_ctor_get(x_20, 0); +lean_dec(x_28); +x_29 = lean_array_size(x_18); +x_30 = 0; +lean_inc(x_18); +x_31 = l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___spec__3(x_29, x_30, x_18); +x_32 = lean_array_to_list(x_31); +x_33 = lean_box(0); +x_34 = l_List_mapTR_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__4(x_32, x_33); +x_35 = l_Lean_MessageData_ofList(x_34); +x_36 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4; +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_35); +lean_ctor_set(x_20, 0, x_36); +x_37 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_38 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_38, 0, x_20); +lean_ctor_set(x_38, 1, x_37); +lean_inc(x_3); +x_39 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_3, x_38, x_7, x_8, x_9, x_10, x_27); +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(x_39); +x_42 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5(x_18, x_4, x_3, x_5, x_1, x_2, x_40, x_7, x_8, x_9, x_10, x_41); +lean_dec(x_40); +return x_42; +} +else +{ +lean_object* x_43; size_t x_44; size_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 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_20, 1); +lean_inc(x_43); +lean_dec(x_20); +x_44 = lean_array_size(x_18); +x_45 = 0; +lean_inc(x_18); +x_46 = l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___spec__3(x_44, x_45, x_18); +x_47 = lean_array_to_list(x_46); +x_48 = lean_box(0); +x_49 = l_List_mapTR_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__4(x_47, x_48); +x_50 = l_Lean_MessageData_ofList(x_49); +x_51 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4; +x_52 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +lean_inc(x_3); +x_55 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_3, x_54, x_7, x_8, x_9, x_10, x_43); +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(x_55); +x_58 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5(x_18, x_4, x_3, x_5, x_1, x_2, x_56, x_7, x_8, x_9, x_10, x_57); +lean_dec(x_56); +return x_58; +} +} +} +else +{ +uint8_t x_59; +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); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_17); +if (x_59 == 0) +{ +return x_17; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_17, 0); +x_61 = lean_ctor_get(x_17, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_17); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +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; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_11 = lean_apply_8(x_1, lean_box(0), x_2, x_10, x_5, x_6, x_7, x_8, x_9); +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_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_apply_6(x_3, x_12, x_5, x_6, x_7, x_8, x_13); +return x_14; +} +else +{ +uint8_t x_15; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) +{ +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_11); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__7___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Failed to assign ", 17, 17); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" : ", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" to goal", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_12 = lean_checked_assign(x_1, x_2, 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; uint8_t x_16; +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(x_12); +x_15 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1; +x_16 = lean_unbox(x_13); +lean_dec(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_inc(x_3); +x_17 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_3, x_7, x_8, x_9, x_10, x_14); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8(x_4, x_5, x_15, x_21, x_7, x_8, x_9, x_10, x_20); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_17, 1); +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_26 = lean_infer_type(x_2, x_7, x_8, x_9, x_10, x_24); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_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; +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(x_26); +x_29 = l_Lean_MessageData_ofExpr(x_2); +x_30 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_29); +lean_ctor_set(x_17, 0, x_30); +x_31 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_MessageData_ofExpr(x_27); +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_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7; +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_3, x_36, x_7, x_8, x_9, x_10, x_28); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8(x_4, x_5, x_15, x_38, x_7, x_8, x_9, x_10, x_39); +lean_dec(x_38); +return x_40; +} +else +{ +uint8_t x_41; +lean_free_object(x_17); +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_41 = !lean_is_exclusive(x_26); +if (x_41 == 0) +{ +return x_26; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_26, 0); +x_43 = lean_ctor_get(x_26, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_26); +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_object* x_46; +x_45 = lean_ctor_get(x_17, 1); +lean_inc(x_45); +lean_dec(x_17); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_46 = lean_infer_type(x_2, x_7, x_8, x_9, x_10, x_45); +if (lean_obj_tag(x_46) == 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; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_MessageData_ofExpr(x_2); +x_50 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3; +x_51 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5; +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_MessageData_ofExpr(x_47); +x_55 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7; +x_57 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_3, x_57, x_7, x_8, x_9, x_10, x_48); +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(x_58); +x_61 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8(x_4, x_5, x_15, x_59, x_7, x_8, x_9, x_10, x_60); +lean_dec(x_59); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +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_62 = lean_ctor_get(x_46, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_46, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_64 = x_46; +} else { + lean_dec_ref(x_46); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = lean_box(0); +x_67 = lean_apply_6(x_15, x_66, x_7, x_8, x_9, x_10, x_14); +return x_67; +} +} +else +{ +uint8_t x_68; +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_68 = !lean_is_exclusive(x_12); +if (x_68 == 0) +{ +return x_12; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_12, 0); +x_70 = lean_ctor_get(x_12, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_12); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Found recursive call ", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_3); +x_14 = l_Lean_Meta_Monotonicity_solveMonoCall(x_1, x_2, x_3, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +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_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6(x_4, x_3, x_5, x_6, x_7, x_17, x_9, x_10, x_11, x_12, x_16); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = lean_ctor_get(x_15, 0); +lean_inc(x_20); +lean_dec(x_15); +lean_inc(x_5); +x_21 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_5, x_9, x_10, x_11, x_12, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_3); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_box(0); +x_26 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9(x_6, x_20, x_5, x_7, x_4, x_25, x_9, x_10, x_11, x_12, x_24); +return x_26; +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_21); +if (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; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_28 = lean_ctor_get(x_21, 1); +x_29 = lean_ctor_get(x_21, 0); +lean_dec(x_29); +x_30 = l_Lean_MessageData_ofExpr(x_3); +x_31 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2; +lean_ctor_set_tag(x_21, 7); +lean_ctor_set(x_21, 1, x_30); +lean_ctor_set(x_21, 0, x_31); +x_32 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4; +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_21); +lean_ctor_set(x_33, 1, x_32); +lean_inc(x_20); +x_34 = l_Lean_indentExpr(x_20); +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_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +lean_inc(x_5); +x_38 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_5, x_37, x_9, x_10, x_11, x_12, x_28); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9(x_6, x_20, x_5, x_7, x_4, x_39, x_9, x_10, x_11, x_12, x_40); +lean_dec(x_39); +return x_41; +} +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; +x_42 = lean_ctor_get(x_21, 1); +lean_inc(x_42); +lean_dec(x_21); +x_43 = l_Lean_MessageData_ofExpr(x_3); +x_44 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2; +x_45 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4; +x_47 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +lean_inc(x_20); +x_48 = l_Lean_indentExpr(x_20); +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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_51 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_5); +x_52 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_5, x_51, x_9, x_10, x_11, x_12, x_42); +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(x_52); +x_55 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9(x_6, x_20, x_5, x_7, x_4, x_53, x_9, x_10, x_11, x_12, x_54); +lean_dec(x_53); +return x_55; +} +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_12); +lean_dec(x_11); +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); +x_56 = !lean_is_exclusive(x_14); +if (x_56 == 0) +{ +return x_14; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_14, 0); +x_58 = lean_ctor_get(x_14, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_14); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = l_Lean_Expr_isBVar(x_3); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_15, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4; +x_18 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(x_6, x_17, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +return x_18; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_18); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_of_monotone_apply", 26, 26); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Unexpected number of goals after ", 33, 33); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__5() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2; +x_2 = 0; +x_3 = l_Lean_MessageData_ofConstName(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__5; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(".", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8; +x_3 = lean_alloc_ctor(7, 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_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +uint8_t x_14; +x_14 = l_Lean_Expr_isLambda(x_3); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_15, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_18 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(x_6, x_17, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_3); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9; +x_22 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_21, x_9, x_10, x_11, x_12, x_20); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +return x_22; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_22); +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; +} +} +else +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_dec(x_18); +x_29 = !lean_is_exclusive(x_19); +if (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_19, 0); +x_31 = lean_ctor_get(x_19, 1); +lean_dec(x_31); +x_32 = l_Lean_Expr_bindingName_x21(x_3); +lean_dec(x_3); +x_33 = l_Lean_MVarId_intro(x_30, x_32, x_9, x_10, x_11, x_12, x_28); +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; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_box(0); +lean_ctor_set(x_19, 1, x_37); +lean_ctor_set(x_19, 0, x_36); +lean_ctor_set(x_33, 0, x_19); +return x_33; +} +else +{ +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_33, 0); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_box(0); +lean_ctor_set(x_19, 1, x_41); +lean_ctor_set(x_19, 0, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_19); +lean_ctor_set(x_42, 1, x_39); +return x_42; +} +} +else +{ +uint8_t x_43; +lean_free_object(x_19); +x_43 = !lean_is_exclusive(x_33); +if (x_43 == 0) +{ +return x_33; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_33, 0); +x_45 = lean_ctor_get(x_33, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_33); +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 +{ +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 = l_Lean_Expr_bindingName_x21(x_3); +lean_dec(x_3); +x_49 = l_Lean_MVarId_intro(x_47, x_48, x_9, x_10, x_11, x_12, x_28); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_box(0); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +if (lean_is_scalar(x_52)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_52; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_51); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_49, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_49, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_59 = x_49; +} else { + lean_dec_ref(x_49); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_27); +lean_dec(x_19); +lean_dec(x_3); +x_61 = lean_ctor_get(x_18, 1); +lean_inc(x_61); +lean_dec(x_18); +x_62 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9; +x_63 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_62, x_9, x_10, x_11, x_12, x_61); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +return x_63; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +x_68 = !lean_is_exclusive(x_18); +if (x_68 == 0) +{ +return x_18; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_18, 0); +x_70 = lean_ctor_get(x_18, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_18); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__13(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_3 = l_Lean_MessageData_ofExpr(x_1); +x_4 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2; +x_5 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4; +x_7 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = l_Lean_indentD(x_2); +x_9 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +x_10 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_11 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get(x_2, 0); +lean_dec(x_10); +lean_ctor_set_tag(x_2, 1); +lean_ctor_set(x_2, 1, x_1); +lean_ctor_set(x_2, 0, x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_7); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, 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_7); +return x_14; +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_letFun", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3() { +_start: +{ +uint8_t x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_1 = 0; +x_2 = 1; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 0, 4); +lean_ctor_set_uint8(x_4, 0, x_1); +lean_ctor_set_uint8(x_4, 1, x_2); +lean_ctor_set_uint8(x_4, 2, x_3); +lean_ctor_set_uint8(x_4, 3, x_2); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2; +x_2 = 0; +x_3 = l_Lean_MessageData_ofConstName(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Expr.updateLambdaE!", 24, 24); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___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; +x_1 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7; +x_3 = lean_unsigned_to_nat(1815u); +x_4 = lean_unsigned_to_nat(20u); +x_5 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; lean_object* x_25; +x_17 = l_Lean_Expr_bindingDomain_x21(x_1); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_2); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_3); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_4); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_5); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_6); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_7); +x_24 = lean_box(0); +if (lean_obj_tag(x_1) == 6) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; size_t x_94; size_t x_95; uint8_t x_96; +x_89 = lean_ctor_get(x_1, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_1, 1); +lean_inc(x_90); +x_91 = lean_ctor_get(x_1, 2); +lean_inc(x_91); +x_92 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_dec(x_1); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +x_93 = l_Lean_Expr_lam___override(x_89, x_90, x_91, x_92); +x_94 = lean_ptr_addr(x_90); +lean_dec(x_90); +x_95 = lean_ptr_addr(x_17); +x_96 = lean_usize_dec_eq(x_94, x_95); +if (x_96 == 0) +{ +lean_object* x_97; +lean_dec(x_93); +lean_dec(x_91); +lean_inc(x_10); +x_97 = l_Lean_Expr_lam___override(x_89, x_17, x_10, x_92); +x_25 = x_97; +goto block_88; +} +else +{ +size_t x_98; size_t x_99; uint8_t x_100; +x_98 = lean_ptr_addr(x_91); +lean_dec(x_91); +x_99 = lean_ptr_addr(x_10); +x_100 = lean_usize_dec_eq(x_98, x_99); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_93); +lean_inc(x_10); +x_101 = l_Lean_Expr_lam___override(x_89, x_17, x_10, x_92); +x_25 = x_101; +goto block_88; +} +else +{ +uint8_t x_102; +x_102 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_92, x_92); +if (x_102 == 0) +{ +lean_object* x_103; +lean_dec(x_93); +lean_inc(x_10); +x_103 = l_Lean_Expr_lam___override(x_89, x_17, x_10, x_92); +x_25 = x_103; +goto block_88; +} +else +{ +lean_dec(x_89); +lean_dec(x_17); +x_25 = x_93; +goto block_88; +} +} +} +} +else +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_17); +lean_dec(x_1); +x_104 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8; +x_105 = l_panic___at_Lean_Expr_appFn_x21___spec__1(x_104); +x_25 = x_105; +goto block_88; +} +block_88: +{ +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_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_array_mk(x_33); +x_35 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_36 = l_Lean_Meta_mkAppOptM(x_35, x_34, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_36) == 0) +{ +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_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(x_36); +x_39 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3; +lean_inc(x_37); +x_40 = lean_alloc_closure((void*)(l_Lean_MVarId_apply), 8, 3); +lean_closure_set(x_40, 0, x_8); +lean_closure_set(x_40, 1, x_37); +lean_closure_set(x_40, 2, x_39); +x_41 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__13), 2, 1); +lean_closure_set(x_41, 0, x_37); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_42 = l_Lean_Meta_mapErrorImp___rarg(x_40, x_41, x_12, x_13, x_14, x_15, x_38); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_dec(x_10); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6; +x_46 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_45, x_12, x_13, x_14, x_15, x_44); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +return x_46; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_46); +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; +x_51 = lean_ctor_get(x_43, 1); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_42, 1); +lean_inc(x_52); +lean_dec(x_42); +x_53 = lean_ctor_get(x_43, 0); +lean_inc(x_53); +lean_dec(x_43); +x_54 = l_Lean_Expr_isLambda(x_10); +if (x_54 == 0) +{ +uint8_t x_55; lean_object* x_56; +lean_dec(x_10); +x_55 = 0; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_56 = l_Lean_Meta_intro1Core(x_53, x_55, x_12, x_13, x_14, x_15, x_52); +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, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__14(x_24, x_57, x_12, x_13, x_14, x_15, x_58); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_60 = !lean_is_exclusive(x_56); +if (x_60 == 0) +{ +return x_56; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 0); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_56); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = l_Lean_Expr_bindingName_x21(x_10); +lean_dec(x_10); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_65 = l_Lean_MVarId_intro(x_53, x_64, x_12, x_13, x_14, x_15, x_52); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +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(x_65); +x_68 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__14(x_24, x_66, x_12, x_13, x_14, x_15, x_67); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +return x_68; +} +else +{ +uint8_t x_69; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_69 = !lean_is_exclusive(x_65); +if (x_69 == 0) +{ +return x_65; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_65, 0); +x_71 = lean_ctor_get(x_65, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_65); +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; +} +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +lean_dec(x_51); +lean_dec(x_43); +lean_dec(x_10); +x_73 = lean_ctor_get(x_42, 1); +lean_inc(x_73); +lean_dec(x_42); +x_74 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6; +x_75 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_74, x_12, x_13, x_14, x_15, x_73); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +return x_75; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_75); +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_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +x_80 = !lean_is_exclusive(x_42); +if (x_80 == 0) +{ +return x_42; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_42, 0); +x_82 = lean_ctor_get(x_42, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_42); +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_84; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +x_84 = !lean_is_exclusive(x_36); +if (x_84 == 0) +{ +return x_36; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_36, 0); +x_86 = lean_ctor_get(x_36, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_36); +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_Meta_Monotonicity_solveMonoStep___lambda__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; +x_17 = l_Lean_Expr_hasLooseBVars(x_9); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = l_Lean_Expr_hasLooseBVars(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_8); +x_19 = lean_box(0); +x_20 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15(x_1, x_2, x_3, x_9, x_4, x_5, x_10, x_6, x_7, x_11, x_19, x_12, x_13, x_14, x_15, x_16); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_1); +x_22 = lean_apply_8(x_8, lean_box(0), x_1, x_21, x_12, x_13, x_14, x_15, x_16); +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(x_22); +x_25 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15(x_1, x_2, x_3, x_9, x_4, x_5, x_10, x_6, x_7, x_11, x_23, x_12, x_13, x_14, x_15, x_24); +lean_dec(x_23); +return x_25; +} +else +{ +uint8_t x_26; +lean_dec(x_15); +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(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) +{ +return x_22; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 0); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_22); +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; +} +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_1); +x_31 = lean_apply_8(x_8, lean_box(0), x_1, x_30, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15(x_1, x_2, x_3, x_9, x_4, x_5, x_10, x_6, x_7, x_11, x_32, x_12, x_13, x_14, x_15, x_33); +lean_dec(x_32); +return x_34; +} +else +{ +uint8_t x_35; +lean_dec(x_15); +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(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) +{ +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_31); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__17(lean_object* x_1, 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 = lean_box(0); +x_9 = lean_apply_6(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("letFun", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___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_Monotonicity_solveMonoStep___lambda__18___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, 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; uint8_t x_21; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___boxed), 13, 7); +lean_closure_set(x_16, 0, x_1); +lean_closure_set(x_16, 1, x_2); +lean_closure_set(x_16, 2, x_3); +lean_closure_set(x_16, 3, x_4); +lean_closure_set(x_16, 4, x_5); +lean_closure_set(x_16, 5, x_6); +lean_closure_set(x_16, 6, x_7); +lean_inc(x_3); +x_17 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_3, x_11, x_12, x_13, x_14, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Expr_cleanupAnnotations(x_18); +x_21 = l_Lean_Expr_isApp(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +x_22 = lean_box(0); +x_23 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_22, x_11, x_12, x_13, x_14, x_19); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = l_Lean_Expr_appArg(x_20, lean_box(0)); +x_25 = l_Lean_Expr_appFnCleanup(x_20, lean_box(0)); +x_26 = l_Lean_Expr_isApp(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_27, x_11, x_12, x_13, x_14, x_19); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = l_Lean_Expr_appArg(x_25, lean_box(0)); +x_30 = l_Lean_Expr_appFnCleanup(x_25, lean_box(0)); +x_31 = l_Lean_Expr_isApp(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +x_32 = lean_box(0); +x_33 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_32, x_11, x_12, x_13, x_14, x_19); +return x_33; +} +else +{ +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Expr_appFnCleanup(x_30, lean_box(0)); +x_35 = l_Lean_Expr_isApp(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_34); +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +x_36 = lean_box(0); +x_37 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_36, x_11, x_12, x_13, x_14, x_19); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = l_Lean_Expr_appArg(x_34, lean_box(0)); +x_39 = l_Lean_Expr_appFnCleanup(x_34, lean_box(0)); +x_40 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__2; +x_41 = l_Lean_Expr_isConstOf(x_39, x_40); +lean_dec(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_38); +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_42, x_11, x_12, x_13, x_14, x_19); +return x_43; +} +else +{ +lean_object* x_44; +lean_dec(x_5); +lean_dec(x_3); +x_44 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__16(x_4, x_1, x_8, x_2, x_9, x_6, x_16, x_7, x_38, x_29, x_24, x_11, x_12, x_13, x_14, x_19); +lean_dec(x_16); +return x_44; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Expr_bindingDomain_x21(x_1); +x_12 = lean_expr_instantiate1(x_2, x_5); +x_13 = l_Lean_Expr_appFn_x21(x_3); +if (lean_obj_tag(x_1) == 6) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; size_t x_63; size_t x_64; uint8_t x_65; +x_58 = lean_ctor_get(x_1, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_1, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_1, 2); +lean_inc(x_60); +x_61 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_dec(x_1); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +x_62 = l_Lean_Expr_lam___override(x_58, x_59, x_60, x_61); +x_63 = lean_ptr_addr(x_59); +lean_dec(x_59); +x_64 = lean_ptr_addr(x_11); +x_65 = lean_usize_dec_eq(x_63, x_64); +if (x_65 == 0) +{ +lean_object* x_66; +lean_dec(x_62); +lean_dec(x_60); +x_66 = l_Lean_Expr_lam___override(x_58, x_11, x_12, x_61); +x_14 = x_66; +goto block_57; +} +else +{ +size_t x_67; size_t x_68; uint8_t x_69; +x_67 = lean_ptr_addr(x_60); +lean_dec(x_60); +x_68 = lean_ptr_addr(x_12); +x_69 = lean_usize_dec_eq(x_67, x_68); +if (x_69 == 0) +{ +lean_object* x_70; +lean_dec(x_62); +x_70 = l_Lean_Expr_lam___override(x_58, x_11, x_12, x_61); +x_14 = x_70; +goto block_57; +} +else +{ +uint8_t x_71; +x_71 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_61, x_61); +if (x_71 == 0) +{ +lean_object* x_72; +lean_dec(x_62); +x_72 = l_Lean_Expr_lam___override(x_58, x_11, x_12, x_61); +x_14 = x_72; +goto block_57; +} +else +{ +lean_dec(x_58); +lean_dec(x_12); +lean_dec(x_11); +x_14 = x_62; +goto block_57; +} +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_1); +x_73 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8; +x_74 = l_panic___at_Lean_Expr_appFn_x21___spec__1(x_73); +x_14 = x_74; +goto block_57; +} +block_57: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = l_Lean_Expr_app___override(x_13, x_14); +x_16 = lean_box(0); +lean_inc(x_6); +x_17 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_15, x_16, x_6, x_7, x_8, x_9, x_10); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_box(0); +lean_ctor_set_tag(x_17, 1); +lean_ctor_set(x_17, 1, x_21); +lean_ctor_set(x_17, 0, x_5); +x_22 = lean_array_mk(x_17); +x_23 = 0; +x_24 = 1; +x_25 = 1; +lean_inc(x_19); +x_26 = l_Lean_Meta_mkLambdaFVars(x_22, x_19, x_23, x_24, x_23, x_25, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_22); +if (lean_obj_tag(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_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_4, x_27, x_6, x_7, x_8, x_9, x_28); +lean_dec(x_6); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_19); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_19); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_19); +lean_dec(x_6); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) +{ +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; +x_38 = lean_ctor_get(x_17, 0); +x_39 = lean_ctor_get(x_17, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_17); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_5); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_array_mk(x_41); +x_43 = 0; +x_44 = 1; +x_45 = 1; +lean_inc(x_38); +x_46 = l_Lean_Meta_mkLambdaFVars(x_42, x_38, x_43, x_44, x_43, x_45, x_6, x_7, x_8, x_9, x_39); +lean_dec(x_42); +if (lean_obj_tag(x_46) == 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; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_4, x_47, x_6, x_7, x_8, x_9, x_48); +lean_dec(x_6); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_38); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_38); +lean_dec(x_6); +lean_dec(x_4); +x_53 = lean_ctor_get(x_46, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_55 = x_46; +} else { + lean_dec_ref(x_46); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__19___boxed), 10, 4); +lean_closure_set(x_14, 0, x_1); +lean_closure_set(x_14, 1, x_2); +lean_closure_set(x_14, 2, x_3); +lean_closure_set(x_14, 3, x_4); +x_15 = 0; +x_16 = l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___spec__1___rarg(x_5, x_6, x_7, x_14, x_15, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (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, 0); +x_19 = l_Lean_Expr_mvarId_x21(x_18); +lean_dec(x_18); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_16, 0, x_21); +return x_16; +} +else +{ +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_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = l_Lean_Expr_mvarId_x21(x_22); +lean_dec(x_22); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_16); +if (x_28 == 0) +{ +return x_16; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_16); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +if (lean_obj_tag(x_3) == 8) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_3, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_3, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_3, 2); +lean_inc(x_19); +x_20 = lean_ctor_get(x_3, 3); +lean_inc(x_20); +lean_dec(x_3); +x_21 = l_Lean_Expr_hasLooseBVars(x_18); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = l_Lean_Expr_hasLooseBVars(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_7); +x_23 = lean_box(0); +x_24 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20(x_4, x_20, x_10, x_6, x_17, x_18, x_19, x_23, x_12, x_13, x_14, x_15, x_16); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_4); +x_26 = lean_apply_8(x_7, lean_box(0), 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; 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(x_26); +x_29 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20(x_4, x_20, x_10, x_6, x_17, x_18, x_19, x_27, x_12, x_13, x_14, x_15, x_28); +lean_dec(x_27); +return x_29; +} +else +{ +uint8_t x_30; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +x_30 = !lean_is_exclusive(x_26); +if (x_30 == 0) +{ +return x_26; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_26, 0); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_26); +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_object* x_34; lean_object* x_35; +x_34 = l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_4); +x_35 = lean_apply_8(x_7, lean_box(0), x_4, x_34, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +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(x_35); +x_38 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20(x_4, x_20, x_10, x_6, x_17, x_18, x_19, x_36, x_12, x_13, x_14, x_15, x_37); +lean_dec(x_36); +return x_38; +} +else +{ +uint8_t x_39; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +return x_35; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 0); +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_35); +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_object* x_44; +lean_dec(x_10); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_43, x_12, x_13, x_14, x_15, x_16); +return x_44; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__22(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; +x_17 = l_Lean_Expr_isMData(x_3); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18, x_12, x_13, x_14, x_15, x_16); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_20 = l_Lean_Expr_bindingDomain_x21(x_4); +x_21 = l_Lean_Expr_mdataExpr_x21(x_3); +lean_dec(x_3); +x_22 = l_Lean_Expr_appFn_x21(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_4) == 6) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; size_t x_54; size_t x_55; uint8_t x_56; +x_49 = lean_ctor_get(x_4, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_4, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_4, 2); +lean_inc(x_51); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*3 + 8); +lean_dec(x_4); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +x_53 = l_Lean_Expr_lam___override(x_49, x_50, x_51, x_52); +x_54 = lean_ptr_addr(x_50); +lean_dec(x_50); +x_55 = lean_ptr_addr(x_20); +x_56 = lean_usize_dec_eq(x_54, x_55); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_53); +lean_dec(x_51); +x_57 = l_Lean_Expr_lam___override(x_49, x_20, x_21, x_52); +x_23 = x_57; +goto block_48; +} +else +{ +size_t x_58; size_t x_59; uint8_t x_60; +x_58 = lean_ptr_addr(x_51); +lean_dec(x_51); +x_59 = lean_ptr_addr(x_21); +x_60 = lean_usize_dec_eq(x_58, x_59); +if (x_60 == 0) +{ +lean_object* x_61; +lean_dec(x_53); +x_61 = l_Lean_Expr_lam___override(x_49, x_20, x_21, x_52); +x_23 = x_61; +goto block_48; +} +else +{ +uint8_t x_62; +x_62 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_52, x_52); +if (x_62 == 0) +{ +lean_object* x_63; +lean_dec(x_53); +x_63 = l_Lean_Expr_lam___override(x_49, x_20, x_21, x_52); +x_23 = x_63; +goto block_48; +} +else +{ +lean_dec(x_49); +lean_dec(x_21); +lean_dec(x_20); +x_23 = x_53; +goto block_48; +} +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_4); +x_64 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8; +x_65 = l_panic___at_Lean_Expr_appFn_x21___spec__1(x_64); +x_23 = x_65; +goto block_48; +} +block_48: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = l_Lean_Expr_app___override(x_22, x_23); +x_25 = lean_box(0); +lean_inc(x_12); +x_26 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_24, x_25, x_12, x_13, x_14, x_15, x_16); +x_27 = !lean_is_exclusive(x_26); +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_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +x_30 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_28, x_12, x_13, x_14, x_15, x_29); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +x_33 = l_Lean_Expr_mvarId_x21(x_28); +lean_dec(x_28); +x_34 = lean_box(0); +lean_ctor_set_tag(x_26, 1); +lean_ctor_set(x_26, 1, x_34); +lean_ctor_set(x_26, 0, x_33); +lean_ctor_set(x_30, 0, x_26); +return x_30; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_dec(x_30); +x_36 = l_Lean_Expr_mvarId_x21(x_28); +lean_dec(x_28); +x_37 = lean_box(0); +lean_ctor_set_tag(x_26, 1); +lean_ctor_set(x_26, 1, x_37); +lean_ctor_set(x_26, 0, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_26); +lean_ctor_set(x_38, 1, x_35); +return x_38; +} +} +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_26, 0); +x_40 = lean_ctor_get(x_26, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_26); +lean_inc(x_39); +x_41 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_6, x_39, x_12, x_13, x_14, x_15, x_40); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; +} else { + lean_dec_ref(x_41); + x_43 = lean_box(0); +} +x_44 = l_Lean_Expr_mvarId_x21(x_39); +lean_dec(x_39); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +if (lean_is_scalar(x_43)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_43; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_42); +return x_47; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotone_const", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_17; +x_15 = l_Lean_Meta_Monotonicity_headBetaUnderLambda(x_9); +x_16 = l_Lean_Expr_bindingBody_x21(x_15); +x_17 = l_Lean_Expr_hasLooseBVars(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_18 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2; +x_19 = l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst(x_4, x_18, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +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_object* x_28; lean_object* x_29; +x_28 = lean_box(0); +x_29 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__22(x_1, x_2, x_16, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11, x_12, x_13, x_14); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__24(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_19; +x_15 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_9, x_10, x_11, x_12, x_13, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Expr_headBeta(x_16); +x_19 = l_Lean_Expr_isLambda(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_20 = l_Lean_Meta_etaExpand(x_18, x_10, x_11, x_12, x_13, x_17); +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(x_20); +x_23 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23(x_5, x_6, x_1, x_2, x_3, x_7, x_8, x_4, x_21, x_10, x_11, x_12, x_13, x_22); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_20); +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_object* x_28; +x_28 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23(x_5, x_6, x_1, x_2, x_3, x_7, x_8, x_4, x_18, x_10, x_11, x_12, x_13, x_17); +return x_28; +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Unexpected goal:", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_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; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_1); +x_9 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2; +x_10 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +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_Split_applyMatchSplitter___spec__1(x_12, x_3, x_4, x_5, x_6, x_7); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; uint8_t x_15; +lean_inc(x_1); +x_11 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_1, x_6, x_7, x_8, x_9, x_10); +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(x_11); +x_14 = l_Lean_Expr_cleanupAnnotations(x_12); +x_15 = l_Lean_Expr_isApp(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_14); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_16, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lean_Expr_appArg(x_14, lean_box(0)); +x_19 = l_Lean_Expr_appFnCleanup(x_14, lean_box(0)); +x_20 = l_Lean_Expr_isApp(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_21 = lean_box(0); +x_22 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_21, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = l_Lean_Expr_appArg(x_19, lean_box(0)); +x_24 = l_Lean_Expr_appFnCleanup(x_19, lean_box(0)); +x_25 = l_Lean_Expr_isApp(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_26, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = l_Lean_Expr_appArg(x_24, lean_box(0)); +x_29 = l_Lean_Expr_appFnCleanup(x_24, lean_box(0)); +x_30 = l_Lean_Expr_isApp(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_31 = lean_box(0); +x_32 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_31, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = l_Lean_Expr_appArg(x_29, lean_box(0)); +x_34 = l_Lean_Expr_appFnCleanup(x_29, lean_box(0)); +x_35 = l_Lean_Expr_isApp(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_36 = lean_box(0); +x_37 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_36, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = l_Lean_Expr_appArg(x_34, lean_box(0)); +x_39 = l_Lean_Expr_appFnCleanup(x_34, lean_box(0)); +x_40 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5; +x_41 = l_Lean_Expr_isConstOf(x_39, x_40); +lean_dec(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_38); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25(x_3, x_42, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_43; +} +else +{ +lean_object* x_44; +x_44 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__24(x_2, x_3, x_4, x_1, x_38, x_33, x_28, x_23, x_18, x_6, x_7, x_8, x_9, x_13); +return x_44; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_inc(x_1); +x_10 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Expr_isForall(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__26(x_11, x_2, x_1, x_3, x_14, x_5, x_6, x_7, x_8, x_12); +return x_15; +} +else +{ +uint8_t x_16; lean_object* x_17; +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_16 = 1; +x_17 = l_Lean_Meta_intro1Core(x_1, x_16, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 1); +x_22 = lean_ctor_get(x_19, 0); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 1, x_23); +lean_ctor_set(x_19, 0, x_21); +return x_17; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +} +else +{ +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; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_30 = x_27; +} else { + lean_dec_ref(x_27); + x_30 = lean_box(0); +} +x_31 = lean_box(0); +if (lean_is_scalar(x_30)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_30; + lean_ctor_set_tag(x_32, 1); +} +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_28); +return x_33; +} +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_17); +if (x_34 == 0) +{ +return x_17; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_17, 0); +x_36 = lean_ctor_get(x_17, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_17); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_10); +if (x_38 == 0) +{ +return x_10; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_10, 0); +x_40 = lean_ctor_get(x_10, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_10); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotonicity at\n", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28(lean_object* x_1, lean_object* x_2, 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; +lean_inc(x_1); +x_9 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = lean_box(0); +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(x_2, x_1, x_3, x_13, x_4, x_5, x_6, x_7, x_12); +return x_14; +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_9); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_16 = lean_ctor_get(x_9, 1); +x_17 = lean_ctor_get(x_9, 0); +lean_dec(x_17); +lean_inc(x_2); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_2); +x_19 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2; +lean_ctor_set_tag(x_9, 7); +lean_ctor_set(x_9, 1, x_18); +lean_ctor_set(x_9, 0, x_19); +x_20 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_9); +lean_ctor_set(x_21, 1, x_20); +lean_inc(x_1); +x_22 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_1, x_21, x_4, x_5, x_6, x_7, x_16); +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(x_22); +x_25 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(x_2, x_1, x_3, x_23, x_4, x_5, x_6, x_7, x_24); +lean_dec(x_23); +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; +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_dec(x_9); +lean_inc(x_2); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_2); +x_28 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2; +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9; +x_31 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +lean_inc(x_1); +x_32 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_1, x_31, x_4, x_5, x_6, x_7, x_26); +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(x_32); +x_35 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(x_2, x_1, x_3, x_33, x_4, x_5, x_6, x_7, x_34); +lean_dec(x_33); +return x_35; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("monotonicity", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_solveMonoStep___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11; +x_3 = l_Lean_Meta_Monotonicity_solveMonoStep___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep(lean_object* x_1, 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 = l_Lean_Meta_Monotonicity_solveMonoStep___closed__2; +lean_inc(x_2); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28), 8, 3); +lean_closure_set(x_9, 0, x_8); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_1); +x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_2, x_9, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_17 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_16, x_17, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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: +{ +lean_object* x_14; +x_14 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___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); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___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_Array_mapMUnsafe_map___at_Lean_Meta_Monotonicity_solveMonoStep___spec__3(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_Meta_Monotonicity_solveMonoStep___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Meta_Monotonicity_solveMonoStep___lambda__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); +lean_dec(x_7); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10(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_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__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, x_13); +lean_dec(x_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__14___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_Monotonicity_solveMonoStep___lambda__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_11); +lean_dec(x_9); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, 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_Lean_Meta_Monotonicity_solveMonoStep___lambda__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_7); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__17(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_Monotonicity_solveMonoStep___lambda__18___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_Monotonicity_solveMonoStep___lambda__18(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_10); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__19___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_Monotonicity_solveMonoStep___lambda__19(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(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__20___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_Monotonicity_solveMonoStep___lambda__20(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_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_11); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__22(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_11); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___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_Monotonicity_solveMonoStep___lambda__25(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__26___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_Monotonicity_solveMonoStep___lambda__26(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27___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: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_solveMonoStep___lambda__27(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Monotonicity_solveMono___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) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_12 = l_Lean_Meta_Monotonicity_solveMono(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_2 = x_11; +x_7 = x_13; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +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(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_Monotonicity_solveMono___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = lean_apply_8(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_solveMono(lean_object* x_1, 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 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_solveMono___lambda__1), 9, 1); +lean_closure_set(x_8, 0, x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_8); +x_9 = l_Lean_Meta_Monotonicity_solveMonoStep(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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(x_9); +x_12 = l_List_forM___at_Lean_Meta_Monotonicity_solveMono___spec__1(x_8, x_10, x_3, x_4, x_5, x_6, x_11); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) +{ +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_9); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Meta_Monotonicity_solveMonoStep(x_13, x_11, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Elab_Tactic_replaceMainGoal(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +x_20 = lean_box(0); +lean_ctor_set(x_17, 0, x_20); +return x_17; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_dec(x_17); +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 +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +return x_17; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_17, 0); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_17); +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 +{ +uint8_t x_28; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) +{ +return x_14; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_14); +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 +{ +uint8_t x_32; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_32 = !lean_is_exclusive(x_10); +if (x_32 == 0) +{ +return x_10; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_10, 0); +x_34 = lean_ctor_get(x_10, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_10); +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_Monotonicity_evalMonotonicity___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Monotonicity_evalMonotonicity___rarg___closed__1; +x_11 = l_Lean_Elab_Tactic_withMainContext___rarg(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_evalMonotonicity___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Monotonicity_evalMonotonicity___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Monotonicity_evalMonotonicity(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3; +x_3 = l_Lean_Meta_Monotonicity_solveMonoStep___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("evalMonotonicity", 16, 16); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___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_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2; +x_3 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +x_4 = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_tacticElabAttribute; +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Monotonicity_evalMonotonicity___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4; +x_3 = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1; +x_4 = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__3; +x_5 = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6; +x_2 = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7; +x_2 = lean_unsigned_to_nat(5433u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Meta_Monotonicity_solveMonoStep___closed__2; +x_3 = 0; +x_4 = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* initialize_Lean_Meta_Tactic_Split(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_RecAppSyntax(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Tactic_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Internal_Order(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_Monotonicity(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_Split(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_RecAppSyntax(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Internal_Order(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__1); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__2); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__3); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__4 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Monotonicity_headBetaUnderLambda___spec__1___closed__4); +l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1 = _init_l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_headBetaUnderLambda___closed__1); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__1(); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__3___closed__2(); +l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__6___closed__1); +l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__1); +l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2 = _init_l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__9___closed__2); +l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1 = _init_l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__13___closed__1); +l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__1); +l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__2); +l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__3); +l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__4 = _init_l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____spec__1___closed__4); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__2); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__3); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__4); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__5 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__5); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__6); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__7); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__8); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__9); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166____closed__10); +if (builtin) {res = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_166_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Meta_Monotonicity_monotoneExt = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Meta_Monotonicity_monotoneExt); +lean_dec_ref(res); +}l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__1); +l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____spec__1___closed__2); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__1___closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__2); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__3); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__4); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__5); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__6); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__7); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__8); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__9); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__4___closed__10); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__2(); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__3); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__4); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__5); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__6); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__7); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__8); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__9); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__10 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__10(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__10); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__11); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__12 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__12(); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__13 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__13(); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__14(); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__15 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__15(); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__16); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__5___closed__17); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____lambda__6___closed__2); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__1); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__2); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__3); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__4); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__5); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__6); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__7); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__8); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__9); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__10); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__11); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__12); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__13); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__14); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__15); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__16); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__17); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__18); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__19); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__20); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__21); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__22); +l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23 = _init_l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249____closed__23); +if (builtin) {res = l_Lean_Meta_Monotonicity_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_249_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__1); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__2); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__3); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__4); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__5); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__6); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__7); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_defaultFailK___rarg___closed__8); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__1); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__2); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__3); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___lambda__1___closed__4); +l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1 = _init_l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Monotonicity_0__Lean_Meta_Monotonicity_applyConst___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__3); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__2___closed__4); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__3); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__3___closed__4); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__3); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__4___closed__4); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__3); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__5___closed__4); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__6___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__8___closed__2); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__1); +l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoCall___lambda__9___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__1___closed__2); +l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__1); +l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Meta_Monotonicity_solveMonoStep___spec__2___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__4___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__5___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__3); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__6___closed__4); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__3); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__4); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__5); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__6 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__6); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__9___closed__7); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__10___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__3); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__4); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__5 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__5); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__6); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__7); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__8); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__12___closed__9); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__3); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__4); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__5); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__6); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__7); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__15___closed__8); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__18___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__23___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__25___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___lambda__28___closed__2); +l_Lean_Meta_Monotonicity_solveMonoStep___closed__1 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___closed__1); +l_Lean_Meta_Monotonicity_solveMonoStep___closed__2 = _init_l_Lean_Meta_Monotonicity_solveMonoStep___closed__2(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_solveMonoStep___closed__2); +l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1 = _init_l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___lambda__1___closed__1); +l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___closed__1 = _init_l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Monotonicity_evalMonotonicity___rarg___closed__1); +l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1 = _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__1); +l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2 = _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__2); +l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__3 = _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__3); +l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4 = _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__4); +l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5 = _init_l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1___closed__5); +if (builtin) {res = l___regBuiltin_Lean_Meta_Monotonicity_evalMonotonicity__1(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__1); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__2); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__3); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__4); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__5); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__6); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__7); +l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8 = _init_l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8(); +lean_mark_persistent(l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433____closed__8); +if (builtin) {res = l_initFn____x40_Lean_Elab_Tactic_Monotonicity___hyg_5433_(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/Elab/Tactic/NormCast.c b/stage0/stdlib/Lean/Elab/Tactic/NormCast.c index 79edd14162..f4b6f22866 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/NormCast.c +++ b/stage0/stdlib/Lean/Elab/Tactic/NormCast.c @@ -448,6 +448,7 @@ static lean_object* l_Lean_Elab_Tactic_NormCast_proveEqUsing___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_NormCast_evalConvNormCast_declRange__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_upwardAndElim___lambda__1___boxed(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_Simp_defaultMaxSteps; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___boxed(lean_object*); lean_object* l_Lean_Meta_Simp_Result_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_derive___lambda__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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_NormCast_elabAddElim_declRange__1___closed__4; @@ -501,6 +502,7 @@ static lean_object* l_Lean_Elab_Tactic_NormCast_derive___lambda__12___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_NormCast_evalNormCast0_declRange__1___closed__5; static lean_object* l_Lean_Elab_Tactic_NormCast_initFn____x40_Lean_Elab_Tactic_NormCast___hyg_5____closed__6; uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); +lean_object* l_Lean_Expr_consumeMData(lean_object*); static lean_object* l_Lean_Elab_Tactic_NormCast_derive___lambda__8___closed__4; static lean_object* l_Lean_Elab_Tactic_NormCast_proveEqUsing___closed__8; lean_object* l_Lean_MessageData_ofName(lean_object*); @@ -4524,155 +4526,146 @@ x_2 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__3; x_3 = l_Lean_Expr_isConstOf(x_1, x_2); if (x_3 == 0) { -if (lean_obj_tag(x_1) == 5) -{ lean_object* x_4; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); +x_4 = l_Lean_Expr_consumeMData(x_1); if (lean_obj_tag(x_4) == 5) { lean_object* x_5; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); +lean_dec(x_4); if (lean_obj_tag(x_5) == 5) { lean_object* x_6; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); -if (lean_obj_tag(x_6) == 4) +if (lean_obj_tag(x_6) == 5) { lean_object* x_7; x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_7) == 1) +if (lean_obj_tag(x_7) == 4) { lean_object* x_8; x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); +lean_dec(x_7); if (lean_obj_tag(x_8) == 1) { lean_object* x_9; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) +if (lean_obj_tag(x_9) == 1) { -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_10 = lean_ctor_get(x_4, 1); +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_4); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; x_11 = lean_ctor_get(x_5, 1); lean_inc(x_11); lean_dec(x_5); -x_12 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); -lean_dec(x_7); +lean_dec(x_6); x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); lean_dec(x_8); -x_14 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__4; -x_15 = lean_string_dec_eq(x_13, x_14); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__4; +x_16 = lean_string_dec_eq(x_14, x_15); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_dec(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_16 = lean_box(0); -return x_16; +x_17 = lean_box(0); +return x_17; } else { -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__5; -x_18 = lean_string_dec_eq(x_12, x_17); -lean_dec(x_12); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_11); -lean_dec(x_10); -x_19 = lean_box(0); -return x_19; -} -else -{ -if (lean_obj_tag(x_10) == 9) +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__5; +x_19 = lean_string_dec_eq(x_13, x_18); +lean_dec(x_13); +if (x_19 == 0) { lean_object* x_20; -x_20 = lean_ctor_get(x_10, 0); -lean_inc(x_20); -lean_dec(x_10); -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_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_11); -lean_ctor_set(x_23, 1, x_22); -lean_ctor_set_tag(x_20, 1); -lean_ctor_set(x_20, 0, x_23); +lean_dec(x_12); +lean_dec(x_11); +x_20 = lean_box(0); return x_20; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -lean_dec(x_20); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_11); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -return x_26; -} +if (lean_obj_tag(x_11) == 9) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_11, 0); +lean_inc(x_21); +lean_dec(x_11); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set_tag(x_21, 1); +lean_ctor_set(x_21, 0, x_24); +return x_21; } else { -lean_object* x_27; -lean_dec(x_20); -lean_dec(x_11); -x_27 = lean_box(0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_12); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); return x_27; } } else { lean_object* x_28; -lean_dec(x_11); -lean_dec(x_10); +lean_dec(x_21); +lean_dec(x_12); x_28 = lean_box(0); return x_28; } } -} -} else { lean_object* x_29; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_11); x_29 = lean_box(0); return x_29; } } +} +} else { lean_object* x_30; +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); x_30 = lean_box(0); return x_30; } @@ -4680,9 +4673,10 @@ return x_30; else { lean_object* x_31; -lean_dec(x_7); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); x_31 = lean_box(0); return x_31; } @@ -4690,9 +4684,9 @@ return x_31; else { lean_object* x_32; +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); x_32 = lean_box(0); return x_32; } @@ -4700,8 +4694,9 @@ return x_32; else { lean_object* x_33; +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); x_33 = lean_box(0); return x_33; } @@ -4709,7 +4704,8 @@ return x_33; else { lean_object* x_34; -lean_dec(x_4); +lean_dec(x_6); +lean_dec(x_5); x_34 = lean_box(0); return x_34; } @@ -4717,7 +4713,7 @@ return x_34; else { lean_object* x_35; -lean_dec(x_1); +lean_dec(x_5); x_35 = lean_box(0); return x_35; } @@ -4725,11 +4721,27 @@ return x_35; else { lean_object* x_36; -lean_dec(x_1); -x_36 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__9; +lean_dec(x_4); +x_36 = lean_box(0); return x_36; } } +else +{ +lean_object* x_37; +x_37 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___closed__9; +return x_37; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_isNumeral_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_1); +lean_dec(x_1); +return x_2; +} } LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___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) { _start: @@ -7287,7 +7299,6 @@ if (x_73 == 0) { lean_object* x_74; lean_dec(x_70); -lean_inc(x_1); x_74 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_1); if (lean_obj_tag(x_74) == 0) { @@ -7686,7 +7697,6 @@ if (x_142 == 0) { lean_object* x_143; lean_dec(x_139); -lean_inc(x_3); x_143 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_3); if (lean_obj_tag(x_143) == 0) { @@ -11643,7 +11653,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_numeralToCoe(lean_object* x _start: { lean_object* x_7; -lean_inc(x_1); x_7 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_1); if (lean_obj_tag(x_7) == 0) { diff --git a/stage0/stdlib/Lean/Meta/Check.c b/stage0/stdlib/Lean/Meta/Check.c index 1c92077d57..693f81aa80 100644 --- a/stage0/stdlib/Lean/Meta/Check.c +++ b/stage0/stdlib/Lean/Meta/Check.c @@ -19,7 +19,6 @@ static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__4___cl LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__2___rarg___lambda__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_check___lambda__1___closed__8; LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__2(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6; lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); @@ -69,7 +68,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Expr_setAppPPExplicit(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__3___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7; static lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); static lean_object* l_Lean_Meta_check___lambda__1___closed__2; @@ -78,10 +76,10 @@ uint8_t lean_float_decLt(double, double); static lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Meta_check___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_check___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_check___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14; lean_object* lean_io_get_num_heartbeats(lean_object*); static double l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__2___closed__1; lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); @@ -90,13 +88,15 @@ lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__6; static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___closed__2; static lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__2___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__4___closed__2; lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__2; lean_object* l_Lean_Meta_throwFunctionExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); @@ -105,9 +105,10 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch__ static double l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__4___closed__5; static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___closed__3; size_t lean_usize_of_nat(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9; lean_object* lean_expr_abstract(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1; static double l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__4___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); @@ -118,11 +119,9 @@ static lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9; uint64_t lean_uint64_shift_right(uint64_t, uint64_t); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_throwLetTypeMismatchMessage(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Meta_processPostponed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11; static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___closed__2; LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_setPPExplicit(lean_object*, uint8_t); @@ -144,23 +143,23 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMe extern lean_object* l_Lean_checkEmoji; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_throwAppTypeMismatch(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__4; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___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_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7; LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* lean_io_mono_nanos_now(lean_object*); extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2; lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); lean_object* l_Lean_Meta_isLabeledSorry_x3f(lean_object*); lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13; static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__4___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__2(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -177,6 +176,7 @@ lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_objec LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__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_Lean_Meta_checkProj___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731_(lean_object*); static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__4___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -194,13 +194,14 @@ LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Meta_addPPExplic lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_crossEmoji; LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___closed__1; static lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___closed__4; @@ -210,8 +211,10 @@ lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8; lean_object* l_Lean_Meta_getFVarLocalDecl(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_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12; lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_check___lambda__1___closed__4; static lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5; @@ -226,7 +229,6 @@ static lean_object* l_Lean_Meta_check___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1; uint8_t l___private_Lean_Data_DeclarationRange_0__Lean_decEqDeclarationLocation____x40_Lean_Data_DeclarationRange___hyg_600_(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkProj___closed__2; static lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__4___closed__3; @@ -243,7 +245,6 @@ lean_object* l_Lean_Expr_setOption___at_Lean_Expr_setPPExplicit___spec__1(lean_o static lean_object* l_Lean_Meta_check___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___lambda__2___boxed(lean_object**); lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8; static lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__3___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__4___closed__1; @@ -274,12 +275,11 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_setPPFunBinderTypes(lean_object*, uint8_t); lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13; static lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__5; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__2___rarg___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_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_checkProj___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_check___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -293,6 +293,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__3 uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___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_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_check___spec__1___lambda__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*); uint8_t l_Lean_Exception_isRuntime(lean_object*); @@ -307,7 +308,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__3; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__4(lean_object*, lean_object*, lean_object*); @@ -371,336 +371,6 @@ return x_17; } } } -static lean_object* _init_l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_instInhabitedMetaM___boxed), 5, 1); -lean_closure_set(x_1, 0, lean_box(0)); -return x_1; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1; -x_8 = lean_panic_fn(x_7, x_1); -x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg), 6, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1; -x_8 = lean_panic_fn(x_7, x_1); -x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg), 6, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg(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_Meta_instAddMessageContextMetaM___spec__1(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_throwLetTypeMismatchMessage___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg___boxed), 6, 0); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Check", 15, 15); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.throwLetTypeMismatchMessage", 37, 37); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3() { -_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_Lean_Meta_throwLetTypeMismatchMessage___rarg___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; -x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1; -x_2 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2; -x_3 = lean_unsigned_to_nat(26u); -x_4 = lean_unsigned_to_nat(9u); -x_5 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid let declaration, term", 29, 29); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("\nhas type", 9, 9); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("\nbut is expected to have type", 29, 29); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg(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; -x_7 = lean_ctor_get(x_2, 2); -lean_inc(x_7); -x_8 = lean_local_ctx_find(x_7, x_1); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4; -x_10 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(x_9, x_2, x_3, x_4, x_5, x_6); -return x_10; -} -else -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_8, 0); -lean_inc(x_11); -lean_dec(x_8); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_11); -x_12 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4; -x_13 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg(x_12, x_2, x_3, x_4, x_5, x_6); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_11, 3); -lean_inc(x_14); -x_15 = lean_ctor_get(x_11, 4); -lean_inc(x_15); -lean_dec(x_11); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_15); -x_16 = lean_infer_type(x_15, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_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(x_16); -x_19 = l_Lean_indentExpr(x_15); -x_20 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6; -x_21 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8; -x_23 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_indentExpr(x_17); -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 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_indentExpr(x_14); -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_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg(x_31, x_2, x_3, x_4, x_5, x_18); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_33 = !lean_is_exclusive(x_16); -if (x_33 == 0) -{ -return x_16; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_16, 0); -x_35 = lean_ctor_get(x_16, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_16); -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_Lean_Meta_throwLetTypeMismatchMessage(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwLetTypeMismatchMessage___rarg), 6, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg___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_throwLetTypeMismatchMessage___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(lean_object* x_1, 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: { @@ -6678,6 +6348,424 @@ return x_19; } } } +static lean_object* _init_l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_instInhabitedMetaM___boxed), 5, 1); +lean_closure_set(x_1, 0, lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1; +x_8 = lean_panic_fn(x_7, x_1); +x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1; +x_8 = lean_panic_fn(x_7, x_1); +x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg(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_Meta_instAddMessageContextMetaM___spec__1(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_throwLetTypeMismatchMessage___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Check", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.throwLetTypeMismatchMessage", 37, 37); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3() { +_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_Lean_Meta_throwLetTypeMismatchMessage___rarg___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; +x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1; +x_2 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2; +x_3 = lean_unsigned_to_nat(179u); +x_4 = lean_unsigned_to_nat(9u); +x_5 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid let declaration, term", 29, 29); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\nhas type", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\nbut is expected to have type", 29, 29); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg(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; +x_7 = lean_ctor_get(x_2, 2); +lean_inc(x_7); +x_8 = lean_local_ctx_find(x_7, x_1); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4; +x_10 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(x_9, x_2, x_3, x_4, x_5, x_6); +return x_10; +} +else +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec(x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_11); +x_12 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4; +x_13 = l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__2___rarg(x_12, x_2, x_3, x_4, x_5, x_6); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_11, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 4); +lean_inc(x_15); +lean_dec(x_11); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_15); +x_16 = lean_infer_type(x_15, x_2, x_3, x_4, x_5, x_6); +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(x_16); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_19 = l_Lean_Meta_addPPExplicitToExposeDiff(x_17, x_14, x_2, x_3, x_4, x_5, x_18); +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 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_ctor_get(x_20, 1); +x_25 = l_Lean_indentExpr(x_15); +x_26 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6; +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_25); +lean_ctor_set(x_20, 0, x_26); +x_27 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8; +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_indentExpr(x_23); +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_throwLetTypeMismatchMessage___rarg___closed__10; +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_indentExpr(x_24); +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_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg(x_36, x_2, x_3, x_4, x_5, x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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_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 = l_Lean_indentExpr(x_15); +x_41 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6; +x_42 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8; +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_indentExpr(x_38); +x_46 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_indentExpr(x_39); +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_throwLetTypeMismatchMessage___rarg___closed__12; +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_Meta_throwLetTypeMismatchMessage___spec__3___rarg(x_52, x_2, x_3, x_4, x_5, x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_19); +if (x_54 == 0) +{ +return x_19; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_19, 0); +x_56 = lean_ctor_get(x_19, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_19); +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_15); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_16); +if (x_58 == 0) +{ +return x_16; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_16, 0); +x_60 = lean_ctor_get(x_16, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_16); +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_throwLetTypeMismatchMessage(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwLetTypeMismatchMessage___rarg), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg___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_throwLetTypeMismatchMessage___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} static lean_object* _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1() { _start: { @@ -16993,7 +17081,7 @@ return x_30; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1() { _start: { lean_object* x_1; @@ -17001,27 +17089,27 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____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_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__2; x_2 = l_Lean_Meta_check___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4() { _start: { lean_object* x_1; @@ -17029,17 +17117,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6() { _start: { lean_object* x_1; @@ -17047,37 +17135,37 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8; x_2 = l_Lean_Meta_check___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10() { _start: { lean_object* x_1; @@ -17085,17 +17173,17 @@ x_1 = lean_mk_string_unchecked("Check", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12() { _start: { lean_object* x_1; @@ -17103,33 +17191,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13; -x_2 = lean_unsigned_to_nat(4692u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13; +x_2 = lean_unsigned_to_nat(4731u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Meta_check___closed__3; x_3 = 0; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -17147,32 +17235,6 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Sorry(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1 = _init_l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11); -l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12(); -lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12); l_Std_Range_forIn_x27_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___lambda__2___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___lambda__2___closed__1(); l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__3___closed__1 = _init_l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__3___closed__1); @@ -17208,6 +17270,32 @@ l_Lean_Meta_addPPExplicitToExposeDiff___closed__3 = _init_l_Lean_Meta_addPPExpli lean_mark_persistent(l_Lean_Meta_addPPExplicitToExposeDiff___closed__3); l_Lean_Meta_addPPExplicitToExposeDiff___closed__4 = _init_l_Lean_Meta_addPPExplicitToExposeDiff___closed__4(); lean_mark_persistent(l_Lean_Meta_addPPExplicitToExposeDiff___closed__4); +l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1 = _init_l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___closed__1); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__11); +l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12(); +lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12); l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1 = _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1(); lean_mark_persistent(l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1); l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2 = _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2(); @@ -17281,35 +17369,35 @@ l_Lean_Meta_check___closed__2 = _init_l_Lean_Meta_check___closed__2(); lean_mark_persistent(l_Lean_Meta_check___closed__2); l_Lean_Meta_check___closed__3 = _init_l_Lean_Meta_check___closed__3(); lean_mark_persistent(l_Lean_Meta_check___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__12); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__13); -l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692____closed__14); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4692_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__12); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__13); +l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731____closed__14); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_4731_(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.c b/stage0/stdlib/Lean/Meta/Tactic/Grind.c index f6c2115f76..08ec47f8a2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind -// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Preprocessor Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.MarkNestedProofs Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.Proof Lean.Meta.Tactic.Grind.Propagate Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Parser Lean.Meta.Tactic.Grind.TheoremPatterns +// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.MarkNestedProofs Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.Proof Lean.Meta.Tactic.Grind.Propagate Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Parser Lean.Meta.Tactic.Grind.EMatchTheorem Lean.Meta.Tactic.Grind.EMatch Lean.Meta.Tactic.Grind.Main #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,75 +13,92 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449_(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78_(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77_(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2; -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1() { +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337_(lean_object*); +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2; +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1() { _start: { lean_object* x_1; @@ -89,17 +106,17 @@ x_1 = lean_mk_string_unchecked("grind", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3() { _start: { lean_object* x_1; @@ -107,17 +124,17 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5() { _start: { lean_object* x_1; @@ -125,17 +142,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7() { _start: { lean_object* x_1; @@ -143,27 +160,27 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10() { _start: { lean_object* x_1; @@ -171,17 +188,17 @@ x_1 = lean_mk_string_unchecked("Meta", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12() { _start: { lean_object* x_1; @@ -189,17 +206,17 @@ x_1 = lean_mk_string_unchecked("Tactic", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14() { _start: { lean_object* x_1; @@ -207,17 +224,17 @@ x_1 = lean_mk_string_unchecked("Grind", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16() { _start: { lean_object* x_1; @@ -225,430 +242,194 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(3u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(4u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("eq", 2, 2); +x_1 = lean_mk_string_unchecked("assert", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(40u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(41u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("issues", 6, 6); +x_1 = lean_mk_string_unchecked("eqc", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(77u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(78u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("add", 3, 3); +x_1 = lean_mk_string_unchecked("internalize", 11, 11); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(114u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(115u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("pre", 3, 3); +x_1 = lean_mk_string_unchecked("ematch", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(151u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(152u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("debug", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(188u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("proofs", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(225u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("simp", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(262u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("congr", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(299u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("proof", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(336u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("detail", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(373u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373_(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2; -x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3; -x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1() { _start: { lean_object* x_1; @@ -656,33 +437,432 @@ x_1 = lean_mk_string_unchecked("pattern", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17; -x_2 = lean_unsigned_to_nat(410u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(189u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instance", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(226u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("assignment", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____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_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(263u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("issues", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(300u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("simp", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(337u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("debug", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(375u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("proofs", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(412u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("congr", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(449u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("proof", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(486u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("proj", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(523u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("parent", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17; +x_2 = lean_unsigned_to_nat(560u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -690,7 +870,6 @@ return x_5; lean_object* initialize_Lean_Meta_Tactic_Grind_Attr(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_RevertAll(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Preprocessor(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Injection(uint8_t builtin, lean_object*); @@ -704,7 +883,9 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_PP(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_Ctor(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Parser(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_TheoremPatterns(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_EMatch(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Main(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind(uint8_t builtin, lean_object* w) { lean_object * res; @@ -719,9 +900,6 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_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_Preprocessor(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Util(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -761,145 +939,187 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Parser(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_TheoremPatterns(builtin, lean_io_mk_world()); +res = initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__3); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__4); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__5); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__6); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__7); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__8); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__9); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__10); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__11); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__12); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__13); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__14); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__15); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__16); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__17); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3____closed__18); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_3_(lean_io_mk_world()); +res = initialize_Lean_Meta_Tactic_Grind_EMatch(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_40_(lean_io_mk_world()); +res = initialize_Lean_Meta_Tactic_Grind_Main(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_77_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__3); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__4); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__5); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__7); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__9); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__10); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__11); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__12); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__14); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__15); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__16); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__17); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__18); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_114_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_151_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_78_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_188_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_225_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_262_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_299_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_336_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_373_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_410_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_375_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_412_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_449_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_486_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_523_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_560_(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/Canon.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c index fb9018ad05..29d5704f10 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c @@ -221,9 +221,10 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_Grind_Canon_instInhabitedState___closed__2; -x_2 = lean_alloc_ctor(0, 2, 0); +x_2 = lean_alloc_ctor(0, 3, 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); return x_2; } } @@ -2505,395 +2506,117 @@ return x_50; else { uint8_t x_51; +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_4); x_51 = !lean_is_exclusive(x_21); if (x_51 == 0) { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_21, 1); -x_53 = lean_ctor_get(x_21, 0); -lean_dec(x_53); -lean_inc(x_1); -x_54 = l_Lean_Expr_fvarsSubset(x_19, x_1); -if (x_54 == 0) +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_21, 0); +lean_dec(x_52); +x_53 = !lean_is_exclusive(x_10); +if (x_53 == 0) { -lean_object* x_55; lean_object* x_56; -lean_free_object(x_21); -lean_free_object(x_7); -x_55 = lean_box(0); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_1); -lean_inc(x_4); -x_56 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonElemCore___spec__10___lambda__1(x_2, x_4, x_1, x_19, x_55, x_10, x_11, x_12, x_13, x_14, x_52); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) -{ -uint8_t x_59; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_1); -x_59 = !lean_is_exclusive(x_56); -if (x_59 == 0) -{ -lean_object* x_60; uint8_t x_61; -x_60 = lean_ctor_get(x_56, 0); -lean_dec(x_60); -x_61 = !lean_is_exclusive(x_57); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_57, 0); -lean_dec(x_62); -x_63 = lean_ctor_get(x_58, 0); -lean_inc(x_63); -lean_dec(x_58); -lean_ctor_set(x_57, 0, x_63); -return x_56; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_57, 1); -lean_inc(x_64); -lean_dec(x_57); -x_65 = lean_ctor_get(x_58, 0); -lean_inc(x_65); -lean_dec(x_58); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -lean_ctor_set(x_56, 0, x_66); -return x_56; -} -} -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_56, 1); -lean_inc(x_67); -lean_dec(x_56); -x_68 = lean_ctor_get(x_57, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_69 = x_57; -} else { - lean_dec_ref(x_57); - x_69 = lean_box(0); -} -x_70 = lean_ctor_get(x_58, 0); -lean_inc(x_70); -lean_dec(x_58); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); -} else { - x_71 = x_69; -} -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_68); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_67); -return x_72; -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_56, 1); -lean_inc(x_73); -lean_dec(x_56); -x_74 = lean_ctor_get(x_57, 1); -lean_inc(x_74); -lean_dec(x_57); -x_75 = lean_ctor_get(x_58, 0); -lean_inc(x_75); -lean_dec(x_58); -x_7 = x_20; -x_8 = x_75; -x_9 = lean_box(0); -x_10 = x_74; -x_15 = x_73; -goto _start; -} -} -else -{ -uint8_t x_77; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_1); -x_77 = !lean_is_exclusive(x_56); -if (x_77 == 0) -{ -return x_56; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_56, 0); -x_79 = lean_ctor_get(x_56, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_56); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -x_81 = !lean_is_exclusive(x_10); -if (x_81 == 0) -{ -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_10, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_54 = lean_ctor_get(x_10, 1); lean_inc(x_19); -x_83 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_82, x_1, x_19); -lean_ctor_set(x_10, 1, x_83); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_19); -x_85 = lean_box(0); +x_55 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_54, x_1, x_19); +lean_ctor_set(x_10, 1, x_55); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_19); +x_57 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 1, x_85); -lean_ctor_set(x_7, 0, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_7); -lean_ctor_set(x_86, 1, x_10); -lean_ctor_set(x_21, 0, x_86); +lean_ctor_set(x_7, 1, x_57); +lean_ctor_set(x_7, 0, x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_7); +lean_ctor_set(x_58, 1, x_10); +lean_ctor_set(x_21, 0, x_58); return x_21; } else { -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_87 = lean_ctor_get(x_10, 0); -x_88 = lean_ctor_get(x_10, 1); -lean_inc(x_88); -lean_inc(x_87); +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; +x_59 = lean_ctor_get(x_10, 0); +x_60 = lean_ctor_get(x_10, 1); +x_61 = lean_ctor_get(x_10, 2); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_10); lean_inc(x_19); -x_89 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_88, x_1, x_19); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_19); -x_92 = lean_box(0); +x_62 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_60, x_1, x_19); +x_63 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 2, x_61); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_19); +x_65 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 1, x_92); -lean_ctor_set(x_7, 0, x_91); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_7); -lean_ctor_set(x_93, 1, x_90); -lean_ctor_set(x_21, 0, x_93); +lean_ctor_set(x_7, 1, x_65); +lean_ctor_set(x_7, 0, x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_7); +lean_ctor_set(x_66, 1, x_63); +lean_ctor_set(x_21, 0, x_66); return x_21; } } -} else { -lean_object* x_94; uint8_t x_95; -x_94 = lean_ctor_get(x_21, 1); -lean_inc(x_94); +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; +x_67 = lean_ctor_get(x_21, 1); +lean_inc(x_67); lean_dec(x_21); -lean_inc(x_1); -x_95 = l_Lean_Expr_fvarsSubset(x_19, x_1); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; -lean_free_object(x_7); -x_96 = lean_box(0); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_1); -lean_inc(x_4); -x_97 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonElemCore___spec__10___lambda__1(x_2, x_4, x_1, x_19, x_96, x_10, x_11, x_12, x_13, x_14, x_94); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_1); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_101 = x_97; -} else { - lean_dec_ref(x_97); - x_101 = lean_box(0); -} -x_102 = lean_ctor_get(x_98, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_103 = x_98; -} else { - lean_dec_ref(x_98); - x_103 = lean_box(0); -} -x_104 = lean_ctor_get(x_99, 0); -lean_inc(x_104); -lean_dec(x_99); -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); -if (lean_is_scalar(x_101)) { - x_106 = lean_alloc_ctor(0, 2, 0); -} else { - x_106 = x_101; -} -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_100); -return x_106; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_97, 1); -lean_inc(x_107); -lean_dec(x_97); -x_108 = lean_ctor_get(x_98, 1); -lean_inc(x_108); -lean_dec(x_98); -x_109 = lean_ctor_get(x_99, 0); -lean_inc(x_109); -lean_dec(x_99); -x_7 = x_20; -x_8 = x_109; -x_9 = lean_box(0); -x_10 = x_108; -x_15 = x_107; -goto _start; -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_1); -x_111 = lean_ctor_get(x_97, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_97, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_113 = x_97; -} else { - lean_dec_ref(x_97); - x_113 = lean_box(0); -} -if (lean_is_scalar(x_113)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_113; -} -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_112); -return x_114; -} -} -else -{ -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_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -x_115 = lean_ctor_get(x_10, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_10, 1); -lean_inc(x_116); +x_68 = lean_ctor_get(x_10, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_10, 1); +lean_inc(x_69); +x_70 = lean_ctor_get(x_10, 2); +lean_inc(x_70); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); - x_117 = x_10; + lean_ctor_release(x_10, 2); + x_71 = x_10; } else { lean_dec_ref(x_10); - x_117 = lean_box(0); + x_71 = lean_box(0); } lean_inc(x_19); -x_118 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_116, x_1, x_19); -if (lean_is_scalar(x_117)) { - x_119 = lean_alloc_ctor(0, 2, 0); +x_72 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_69, x_1, x_19); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 3, 0); } else { - x_119 = x_117; + x_73 = x_71; } -lean_ctor_set(x_119, 0, x_115); -lean_ctor_set(x_119, 1, x_118); -x_120 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_120, 0, x_19); -x_121 = lean_box(0); +lean_ctor_set(x_73, 0, x_68); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_70); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_19); +x_75 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 1, x_121); -lean_ctor_set(x_7, 0, x_120); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_7); -lean_ctor_set(x_122, 1, x_119); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_94); -return x_123; -} +lean_ctor_set(x_7, 1, x_75); +lean_ctor_set(x_7, 0, x_74); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_7); +lean_ctor_set(x_76, 1, x_73); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_67); +return x_77; } } } else { -uint8_t x_124; +uint8_t x_78; lean_free_object(x_7); lean_dec(x_20); lean_dec(x_19); @@ -2904,360 +2627,238 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_4); lean_dec(x_1); -x_124 = !lean_is_exclusive(x_21); -if (x_124 == 0) +x_78 = !lean_is_exclusive(x_21); +if (x_78 == 0) { return x_21; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_21, 0); -x_126 = lean_ctor_get(x_21, 1); -lean_inc(x_126); -lean_inc(x_125); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_21, 0); +x_80 = lean_ctor_get(x_21, 1); +lean_inc(x_80); +lean_inc(x_79); lean_dec(x_21); -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; +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_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_7, 0); -x_129 = lean_ctor_get(x_7, 1); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_7, 0); +x_83 = lean_ctor_get(x_7, 1); +lean_inc(x_83); +lean_inc(x_82); lean_dec(x_7); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_128); +lean_inc(x_82); lean_inc(x_1); -x_130 = l_Lean_Meta_isExprDefEq(x_1, x_128, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_130) == 0) +x_84 = l_Lean_Meta_isExprDefEq(x_1, x_82, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_131; uint8_t x_132; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_unbox(x_131); -lean_dec(x_131); -if (x_132 == 0) +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_unbox(x_85); +lean_dec(x_85); +if (x_86 == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_130, 1); -lean_inc(x_133); -lean_dec(x_130); -x_134 = lean_box(0); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +lean_dec(x_84); +x_88 = lean_box(0); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); lean_inc(x_4); -x_135 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonElemCore___spec__10___lambda__1(x_2, x_4, x_1, x_128, x_134, x_10, x_11, x_12, x_13, x_14, x_133); -if (lean_obj_tag(x_135) == 0) +x_89 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonElemCore___spec__10___lambda__1(x_2, x_4, x_1, x_82, x_88, x_10, x_11, x_12, x_13, x_14, x_87); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_136; lean_object* x_137; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -if (lean_obj_tag(x_137) == 0) +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +if (lean_obj_tag(x_91) == 0) { -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_dec(x_129); +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_dec(x_83); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_4); lean_dec(x_1); -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; +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_135); - x_139 = lean_box(0); + lean_dec_ref(x_89); + x_93 = lean_box(0); } -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_141 = x_136; +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_95 = x_90; } else { - lean_dec_ref(x_136); - x_141 = lean_box(0); + lean_dec_ref(x_90); + x_95 = lean_box(0); } -x_142 = lean_ctor_get(x_137, 0); -lean_inc(x_142); -lean_dec(x_137); -if (lean_is_scalar(x_141)) { - x_143 = lean_alloc_ctor(0, 2, 0); +x_96 = lean_ctor_get(x_91, 0); +lean_inc(x_96); +lean_dec(x_91); +if (lean_is_scalar(x_95)) { + x_97 = lean_alloc_ctor(0, 2, 0); } else { - x_143 = x_141; + x_97 = x_95; } -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_140); -if (lean_is_scalar(x_139)) { - x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_94); +if (lean_is_scalar(x_93)) { + x_98 = lean_alloc_ctor(0, 2, 0); } else { - x_144 = x_139; + x_98 = x_93; } -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_138); -return x_144; +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_92); +return x_98; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_135, 1); -lean_inc(x_145); -lean_dec(x_135); -x_146 = lean_ctor_get(x_136, 1); -lean_inc(x_146); -lean_dec(x_136); -x_147 = lean_ctor_get(x_137, 0); -lean_inc(x_147); -lean_dec(x_137); -x_7 = x_129; -x_8 = x_147; +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_89, 1); +lean_inc(x_99); +lean_dec(x_89); +x_100 = lean_ctor_get(x_90, 1); +lean_inc(x_100); +lean_dec(x_90); +x_101 = lean_ctor_get(x_91, 0); +lean_inc(x_101); +lean_dec(x_91); +x_7 = x_83; +x_8 = x_101; x_9 = lean_box(0); -x_10 = x_146; -x_15 = x_145; +x_10 = x_100; +x_15 = x_99; goto _start; } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_129); +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_83); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_4); lean_dec(x_1); -x_149 = lean_ctor_get(x_135, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_135, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_151 = x_135; +x_103 = lean_ctor_get(x_89, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_89, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_105 = x_89; } else { - lean_dec_ref(x_135); - x_151 = lean_box(0); + lean_dec_ref(x_89); + x_105 = lean_box(0); } -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_152 = x_151; + x_106 = x_105; } -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; } } else { -lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_153 = lean_ctor_get(x_130, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_154 = x_130; -} else { - lean_dec_ref(x_130); - x_154 = lean_box(0); -} -lean_inc(x_1); -x_155 = l_Lean_Expr_fvarsSubset(x_128, x_1); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; -lean_dec(x_154); -x_156 = lean_box(0); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_1); -lean_inc(x_4); -x_157 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonElemCore___spec__10___lambda__1(x_2, x_4, x_1, x_128, x_156, x_10, x_11, x_12, x_13, x_14, x_153); -if (lean_obj_tag(x_157) == 0) -{ -lean_object* x_158; lean_object* x_159; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -if (lean_obj_tag(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_dec(x_129); +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_dec(x_83); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_4); -lean_dec(x_1); -x_160 = lean_ctor_get(x_157, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_161 = x_157; +x_107 = lean_ctor_get(x_84, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_108 = x_84; } else { - lean_dec_ref(x_157); - x_161 = lean_box(0); + lean_dec_ref(x_84); + x_108 = lean_box(0); } -x_162 = lean_ctor_get(x_158, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_163 = x_158; -} else { - lean_dec_ref(x_158); - x_163 = lean_box(0); -} -x_164 = lean_ctor_get(x_159, 0); -lean_inc(x_164); -lean_dec(x_159); -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); -if (lean_is_scalar(x_161)) { - x_166 = lean_alloc_ctor(0, 2, 0); -} else { - x_166 = x_161; -} -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_160); -return x_166; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_157, 1); -lean_inc(x_167); -lean_dec(x_157); -x_168 = lean_ctor_get(x_158, 1); -lean_inc(x_168); -lean_dec(x_158); -x_169 = lean_ctor_get(x_159, 0); -lean_inc(x_169); -lean_dec(x_159); -x_7 = x_129; -x_8 = x_169; -x_9 = lean_box(0); -x_10 = x_168; -x_15 = x_167; -goto _start; -} -} -else -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_129); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_1); -x_171 = lean_ctor_get(x_157, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_157, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_173 = x_157; -} else { - lean_dec_ref(x_157); - x_173 = lean_box(0); -} -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); -} else { - x_174 = x_173; -} -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_129); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_4); -x_175 = lean_ctor_get(x_10, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_10, 1); -lean_inc(x_176); +x_109 = lean_ctor_get(x_10, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_10, 1); +lean_inc(x_110); +x_111 = lean_ctor_get(x_10, 2); +lean_inc(x_111); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); - x_177 = x_10; + lean_ctor_release(x_10, 2); + x_112 = x_10; } else { lean_dec_ref(x_10); - x_177 = lean_box(0); + x_112 = lean_box(0); } -lean_inc(x_128); -x_178 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_176, x_1, x_128); -if (lean_is_scalar(x_177)) { - x_179 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_82); +x_113 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_110, x_1, x_82); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 3, 0); } else { - x_179 = x_177; + x_114 = x_112; } -lean_ctor_set(x_179, 0, x_175); -lean_ctor_set(x_179, 1, x_178); -x_180 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_180, 0, x_128); -x_181 = lean_box(0); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, 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_179); -if (lean_is_scalar(x_154)) { - x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_109); +lean_ctor_set(x_114, 1, x_113); +lean_ctor_set(x_114, 2, x_111); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_82); +x_116 = lean_box(0); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_114); +if (lean_is_scalar(x_108)) { + x_119 = lean_alloc_ctor(0, 2, 0); } else { - x_184 = x_154; -} -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_153); -return x_184; + x_119 = x_108; } +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_107); +return x_119; } } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_129); -lean_dec(x_128); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_83); +lean_dec(x_82); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3265,26 +2866,26 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_4); lean_dec(x_1); -x_185 = lean_ctor_get(x_130, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_130, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_187 = x_130; +x_120 = lean_ctor_get(x_84, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_84, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_122 = x_84; } else { - lean_dec_ref(x_130); - x_187 = lean_box(0); + lean_dec_ref(x_84); + x_122 = lean_box(0); } -if (lean_is_scalar(x_187)) { - x_188 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - x_188 = x_187; + x_123 = x_122; } -lean_ctor_set(x_188, 0, x_185); -lean_ctor_set(x_188, 1, x_186); -return x_188; +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } } @@ -4128,30 +3729,60 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Canon_canonElemCore___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_11 = lean_ctor_get(x_5, 0); -lean_inc(x_11); +uint8_t x_11; +x_11 = !lean_is_exclusive(x_5); +if (x_11 == 0) +{ +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_5, 0); +x_13 = lean_ctor_get(x_5, 1); lean_inc(x_1); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_2); -x_13 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__11(x_11, x_3, x_12); -x_14 = lean_ctor_get(x_5, 1); -lean_inc(x_14); -lean_dec(x_5); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_2); +x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__11(x_12, x_3, x_14); lean_inc_n(x_1, 2); -x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_14, x_1, x_1); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_13); -lean_ctor_set(x_16, 1, x_15); +x_16 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_13, x_1, x_1); +lean_ctor_set(x_5, 1, x_16); +lean_ctor_set(x_5, 0, x_15); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); +lean_ctor_set(x_17, 1, x_5); x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_10); return x_18; } +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; lean_object* x_26; lean_object* x_27; +x_19 = lean_ctor_get(x_5, 0); +x_20 = lean_ctor_get(x_5, 1); +x_21 = lean_ctor_get(x_5, 2); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_5); +lean_inc(x_1); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_2); +x_23 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__11(x_19, x_3, x_22); +lean_inc_n(x_1, 2); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_20, x_1, x_1); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_25, 2, x_21); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_1); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_10); +return x_27; +} +} } static lean_object* _init_l_Lean_Meta_Grind_Canon_canonElemCore___lambda__2___closed__1() { _start: @@ -7210,233 +6841,67 @@ _start: switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_12; lean_object* x_46; uint8_t x_47; +lean_object* x_12; lean_object* x_43; lean_object* x_77; uint8_t x_78; lean_dec(x_4); -x_46 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_47 = l_Lean_Expr_isConstOf(x_2, x_46); -if (x_47 == 0) +x_77 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_78 = l_Lean_Expr_isConstOf(x_2, x_77); +if (x_78 == 0) { -lean_object* x_48; -x_48 = lean_box(0); -x_12 = x_48; -goto block_45; +lean_object* x_79; +x_79 = lean_box(0); +x_43 = x_79; +goto block_76; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_array_get_size(x_3); -x_50 = lean_unsigned_to_nat(2u); -x_51 = lean_nat_dec_eq(x_49, x_50); -if (x_51 == 0) +lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_80 = lean_array_get_size(x_3); +x_81 = lean_unsigned_to_nat(2u); +x_82 = lean_nat_dec_eq(x_80, x_81); +if (x_82 == 0) { -lean_object* x_52; -lean_dec(x_49); -x_52 = lean_box(0); -x_12 = x_52; -goto block_45; +lean_object* x_83; +lean_dec(x_80); +x_83 = lean_box(0); +x_43 = x_83; +goto block_76; } else { -lean_object* x_53; uint8_t x_54; -x_53 = lean_unsigned_to_nat(0u); -x_54 = lean_nat_dec_lt(x_53, x_49); -lean_dec(x_49); -if (x_54 == 0) +lean_object* x_84; uint8_t x_85; +x_84 = lean_unsigned_to_nat(0u); +x_85 = lean_nat_dec_lt(x_84, x_80); +lean_dec(x_80); +if (x_85 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = l_Lean_instInhabitedExpr; -x_56 = l_outOfBounds___rarg(x_55); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_56); -x_57 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; uint8_t x_64; -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(x_57); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_ptr_addr(x_56); -lean_dec(x_56); -x_63 = lean_ptr_addr(x_60); -x_64 = lean_usize_dec_eq(x_62, x_63); -if (x_64 == 0) -{ -lean_object* x_65; -lean_dec(x_60); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_65 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_61, x_7, x_8, x_9, x_10, x_59); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_65; +lean_object* x_86; lean_object* x_87; +x_86 = l_Lean_instInhabitedExpr; +x_87 = l_outOfBounds___rarg(x_86); +x_12 = x_87; +goto block_42; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_array_set(x_3, x_53, x_60); -x_67 = l_Lean_mkAppN(x_2, x_66); -lean_dec(x_66); -x_68 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_67, x_5, x_61, x_7, x_8, x_9, x_10, x_59); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_68; -} -} -else -{ -uint8_t x_69; -lean_dec(x_56); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_69 = !lean_is_exclusive(x_57); -if (x_69 == 0) -{ -return x_57; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_57, 0); -x_71 = lean_ctor_get(x_57, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_57); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_object* x_88; +x_88 = lean_array_fget(x_3, x_84); +x_12 = x_88; +goto block_42; } } } -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_array_fget(x_3, x_53); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_73); -x_74 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_73, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; size_t x_79; size_t x_80; uint8_t 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(x_74); -x_77 = lean_ctor_get(x_75, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -lean_dec(x_75); -x_79 = lean_ptr_addr(x_73); -lean_dec(x_73); -x_80 = lean_ptr_addr(x_77); -x_81 = lean_usize_dec_eq(x_79, x_80); -if (x_81 == 0) -{ -lean_object* x_82; -lean_dec(x_77); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_82 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_78, x_7, x_8, x_9, x_10, x_76); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_array_set(x_3, x_53, x_77); -x_84 = l_Lean_mkAppN(x_2, x_83); -lean_dec(x_83); -x_85 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_84, x_5, x_78, x_7, x_8, x_9, x_10, x_76); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_85; -} -} -else -{ -uint8_t x_86; -lean_dec(x_73); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_86 = !lean_is_exclusive(x_74); -if (x_86 == 0) -{ -return x_74; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_74, 0); -x_88 = lean_ctor_get(x_74, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_74); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; -} -} -} -} -} -block_45: +block_42: { lean_object* x_13; -lean_dec(x_12); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_2); -x_13 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +lean_inc(x_5); +lean_inc(x_12); +x_13 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_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; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -7444,85 +6909,224 @@ lean_inc(x_15); lean_dec(x_13); x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -x_17 = lean_array_get_size(x_3); -x_18 = lean_unsigned_to_nat(0u); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_17); -lean_ctor_set(x_20, 2, x_19); -x_21 = 0; -x_22 = lean_box(x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_3); -lean_ctor_set(x_23, 1, x_22); +x_18 = lean_ctor_get(x_17, 2); +lean_inc(x_18); +lean_inc(x_18); +x_19 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_18, x_16); +if (lean_obj_tag(x_19) == 0) +{ +size_t x_20; size_t x_21; uint8_t x_22; +x_20 = lean_ptr_addr(x_12); +lean_dec(x_12); +x_21 = lean_ptr_addr(x_16); +x_22 = lean_usize_dec_eq(x_20, x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_23 = lean_unsigned_to_nat(0u); +lean_inc(x_16); +x_24 = lean_array_set(x_3, x_23, x_16); +x_25 = l_Lean_mkAppN(x_2, x_24); +lean_dec(x_24); +x_26 = lean_ctor_get(x_17, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +lean_inc(x_25); +x_28 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_18, x_16, x_25); +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_26); +lean_ctor_set(x_29, 1, x_27); +lean_ctor_set(x_29, 2, x_28); +x_30 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_25, x_5, x_29, x_7, x_8, x_9, x_10, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_3); +lean_dec(x_2); +x_31 = lean_ctor_get(x_17, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_dec(x_17); +lean_inc(x_1); +x_33 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_18, x_16, x_1); +x_34 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_34, 2, x_33); +lean_inc(x_1); +x_35 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_34, x_7, x_8, x_9, x_10, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_ctor_get(x_19, 0); +lean_inc(x_36); +lean_dec(x_19); +x_37 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_36, x_5, x_17, x_7, x_8, x_9, x_10, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_37; +} +} +else +{ +uint8_t x_38; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_13); +if (x_38 == 0) +{ +return x_13; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_13, 0); +x_40 = lean_ctor_get(x_13, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_13); +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; +} +} +} +block_76: +{ +lean_object* x_44; +lean_dec(x_43); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_44 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_array_get_size(x_3); +x_49 = lean_unsigned_to_nat(0u); +x_50 = lean_unsigned_to_nat(1u); +x_51 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_48); +lean_ctor_set(x_51, 2, x_50); +x_52 = 0; +x_53 = lean_box(x_52); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_3); +lean_ctor_set(x_54, 1, x_53); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); lean_inc(x_2); -x_24 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_16, x_20, x_20, x_23, x_18, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_15); -lean_dec(x_20); -lean_dec(x_16); -if (lean_obj_tag(x_24) == 0) +x_55 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_47, x_51, x_51, x_54, x_49, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_46); +lean_dec(x_51); +lean_dec(x_47); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -x_28 = lean_unbox(x_27); -lean_dec(x_27); -if (x_28 == 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_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +x_59 = lean_unbox(x_58); +lean_dec(x_58); +if (x_59 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_26); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_57); lean_dec(x_2); -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); +x_60 = lean_ctor_get(x_55, 1); +lean_inc(x_60); +lean_dec(x_55); +x_61 = lean_ctor_get(x_56, 1); +lean_inc(x_61); +lean_dec(x_56); lean_inc(x_1); -x_31 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_30, x_7, x_8, x_9, x_10, x_29); +x_62 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_61, x_7, x_8, x_9, x_10, x_60); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_31; +return x_62; } else { -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_24, 1); -lean_inc(x_32); -lean_dec(x_24); -x_33 = lean_ctor_get(x_25, 1); -lean_inc(x_33); -lean_dec(x_25); -x_34 = lean_ctor_get(x_26, 0); -lean_inc(x_34); -lean_dec(x_26); -x_35 = l_Lean_mkAppN(x_2, x_34); -lean_dec(x_34); -x_36 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_35, x_5, x_33, x_7, x_8, x_9, x_10, x_32); +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_55, 1); +lean_inc(x_63); +lean_dec(x_55); +x_64 = lean_ctor_get(x_56, 1); +lean_inc(x_64); +lean_dec(x_56); +x_65 = lean_ctor_get(x_57, 0); +lean_inc(x_65); +lean_dec(x_57); +x_66 = l_Lean_mkAppN(x_2, x_65); +lean_dec(x_65); +x_67 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_66, x_5, x_64, x_7, x_8, x_9, x_10, x_63); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_36; +return x_67; } } else { -uint8_t x_37; +uint8_t x_68; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -7530,29 +7134,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_24); -if (x_37 == 0) +x_68 = !lean_is_exclusive(x_55); +if (x_68 == 0) { -return x_24; +return x_55; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_24, 0); -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_24); -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_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_55, 0); +x_70 = lean_ctor_get(x_55, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_55); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } else { -uint8_t x_41; +uint8_t x_72; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -7562,331 +7166,176 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_13); -if (x_41 == 0) +x_72 = !lean_is_exclusive(x_44); +if (x_72 == 0) { -return x_13; +return x_44; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_13, 0); -x_43 = lean_ctor_get(x_13, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_13); -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; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_44, 0); +x_74 = lean_ctor_get(x_44, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_44); +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 1: { -lean_object* x_90; lean_object* x_124; uint8_t x_125; +lean_object* x_89; lean_object* x_120; lean_object* x_154; uint8_t x_155; lean_dec(x_4); -x_124 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_125 = l_Lean_Expr_isConstOf(x_2, x_124); -if (x_125 == 0) +x_154 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_155 = l_Lean_Expr_isConstOf(x_2, x_154); +if (x_155 == 0) { -lean_object* x_126; -x_126 = lean_box(0); -x_90 = x_126; -goto block_123; +lean_object* x_156; +x_156 = lean_box(0); +x_120 = x_156; +goto block_153; } else { -lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_127 = lean_array_get_size(x_3); -x_128 = lean_unsigned_to_nat(2u); -x_129 = lean_nat_dec_eq(x_127, x_128); -if (x_129 == 0) -{ -lean_object* x_130; -lean_dec(x_127); -x_130 = lean_box(0); -x_90 = x_130; -goto block_123; -} -else -{ -lean_object* x_131; uint8_t x_132; -x_131 = lean_unsigned_to_nat(0u); -x_132 = lean_nat_dec_lt(x_131, x_127); -lean_dec(x_127); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = l_Lean_instInhabitedExpr; -x_134 = l_outOfBounds___rarg(x_133); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_134); -x_135 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_134, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_135) == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; size_t x_140; size_t x_141; uint8_t x_142; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_138 = lean_ctor_get(x_136, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_136, 1); -lean_inc(x_139); -lean_dec(x_136); -x_140 = lean_ptr_addr(x_134); -lean_dec(x_134); -x_141 = lean_ptr_addr(x_138); -x_142 = lean_usize_dec_eq(x_140, x_141); -if (x_142 == 0) -{ -lean_object* x_143; -lean_dec(x_138); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_143 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_139, x_7, x_8, x_9, x_10, x_137); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_143; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_array_set(x_3, x_131, x_138); -x_145 = l_Lean_mkAppN(x_2, x_144); -lean_dec(x_144); -x_146 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_145, x_5, x_139, x_7, x_8, x_9, x_10, x_137); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_146; -} -} -else -{ -uint8_t x_147; -lean_dec(x_134); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_147 = !lean_is_exclusive(x_135); -if (x_147 == 0) -{ -return x_135; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_135, 0); -x_149 = lean_ctor_get(x_135, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_135); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; -} -} -} -else -{ -lean_object* x_151; lean_object* x_152; -x_151 = lean_array_fget(x_3, x_131); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_151); -x_152 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_151, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; size_t x_157; size_t x_158; uint8_t x_159; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = lean_ctor_get(x_153, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_153, 1); -lean_inc(x_156); -lean_dec(x_153); -x_157 = lean_ptr_addr(x_151); -lean_dec(x_151); -x_158 = lean_ptr_addr(x_155); -x_159 = lean_usize_dec_eq(x_157, x_158); +lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_157 = lean_array_get_size(x_3); +x_158 = lean_unsigned_to_nat(2u); +x_159 = lean_nat_dec_eq(x_157, x_158); if (x_159 == 0) { lean_object* x_160; -lean_dec(x_155); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_160 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_156, x_7, x_8, x_9, x_10, x_154); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_160; +lean_dec(x_157); +x_160 = lean_box(0); +x_120 = x_160; +goto block_153; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_array_set(x_3, x_131, x_155); -x_162 = l_Lean_mkAppN(x_2, x_161); -lean_dec(x_161); -x_163 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_162, x_5, x_156, x_7, x_8, x_9, x_10, x_154); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_163; -} +lean_object* x_161; uint8_t x_162; +x_161 = lean_unsigned_to_nat(0u); +x_162 = lean_nat_dec_lt(x_161, x_157); +lean_dec(x_157); +if (x_162 == 0) +{ +lean_object* x_163; lean_object* x_164; +x_163 = l_Lean_instInhabitedExpr; +x_164 = l_outOfBounds___rarg(x_163); +x_89 = x_164; +goto block_119; } else { -uint8_t x_164; -lean_dec(x_151); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_164 = !lean_is_exclusive(x_152); -if (x_164 == 0) +lean_object* x_165; +x_165 = lean_array_fget(x_3, x_161); +x_89 = x_165; +goto block_119; +} +} +} +block_119: { -return x_152; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_152, 0); -x_166 = lean_ctor_get(x_152, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_152); -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; -} -} -} -} -} -block_123: -{ -lean_object* x_91; -lean_dec(x_90); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_91 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(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; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_ctor_get(x_92, 0); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_array_get_size(x_3); -x_96 = lean_unsigned_to_nat(0u); -x_97 = lean_unsigned_to_nat(1u); -x_98 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_95); -lean_ctor_set(x_98, 2, x_97); -x_99 = 0; -x_100 = lean_box(x_99); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_3); -lean_ctor_set(x_101, 1, x_100); +lean_object* x_90; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_2); -x_102 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_94, x_98, x_98, x_101, x_96, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_93); -lean_dec(x_98); -lean_dec(x_94); -if (lean_obj_tag(x_102) == 0) +lean_inc(x_89); +x_90 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_89, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_103 = lean_ctor_get(x_102, 0); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = lean_ctor_get(x_91, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = lean_ctor_get(x_94, 2); +lean_inc(x_95); +lean_inc(x_95); +x_96 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_95, x_93); +if (lean_obj_tag(x_96) == 0) +{ +size_t x_97; size_t x_98; uint8_t x_99; +x_97 = lean_ptr_addr(x_89); +lean_dec(x_89); +x_98 = lean_ptr_addr(x_93); +x_99 = lean_usize_dec_eq(x_97, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_100 = lean_unsigned_to_nat(0u); +lean_inc(x_93); +x_101 = lean_array_set(x_3, x_100, x_93); +x_102 = l_Lean_mkAppN(x_2, x_101); +lean_dec(x_101); +x_103 = lean_ctor_get(x_94, 0); lean_inc(x_103); -x_104 = lean_ctor_get(x_103, 0); +x_104 = lean_ctor_get(x_94, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_104); -lean_dec(x_2); -x_107 = lean_ctor_get(x_102, 1); -lean_inc(x_107); -lean_dec(x_102); -x_108 = lean_ctor_get(x_103, 1); -lean_inc(x_108); -lean_dec(x_103); -lean_inc(x_1); -x_109 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_108, x_7, x_8, x_9, x_10, x_107); +lean_dec(x_94); +lean_inc(x_102); +x_105 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_95, x_93, x_102); +x_106 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +lean_ctor_set(x_106, 2, x_105); +x_107 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_102, x_5, x_106, x_7, x_8, x_9, x_10, x_92); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_109; +return x_107; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_110 = lean_ctor_get(x_102, 1); -lean_inc(x_110); -lean_dec(x_102); -x_111 = lean_ctor_get(x_103, 1); -lean_inc(x_111); -lean_dec(x_103); -x_112 = lean_ctor_get(x_104, 0); -lean_inc(x_112); -lean_dec(x_104); -x_113 = l_Lean_mkAppN(x_2, x_112); -lean_dec(x_112); -x_114 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_113, x_5, x_111, x_7, x_8, x_9, x_10, x_110); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_3); +lean_dec(x_2); +x_108 = lean_ctor_get(x_94, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_94, 1); +lean_inc(x_109); +lean_dec(x_94); +lean_inc(x_1); +x_110 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_95, x_93, x_1); +x_111 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +lean_ctor_set(x_111, 2, x_110); +lean_inc(x_1); +x_112 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_111, x_7, x_8, x_9, x_10, x_92); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_112; +} +} +else +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_95); +lean_dec(x_93); +lean_dec(x_89); +lean_dec(x_3); +lean_dec(x_2); +x_113 = lean_ctor_get(x_96, 0); +lean_inc(x_113); +lean_dec(x_96); +x_114 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_113, x_5, x_94, x_7, x_8, x_9, x_10, x_92); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -7898,26 +7347,28 @@ return x_114; else { uint8_t x_115; +lean_dec(x_89); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_115 = !lean_is_exclusive(x_102); +x_115 = !lean_is_exclusive(x_90); if (x_115 == 0) { -return x_102; +return x_90; } else { lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_102, 0); -x_117 = lean_ctor_get(x_102, 1); +x_116 = lean_ctor_get(x_90, 0); +x_117 = lean_ctor_get(x_90, 1); lean_inc(x_117); lean_inc(x_116); -lean_dec(x_102); +lean_dec(x_90); x_118 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_118, 0, x_116); lean_ctor_set(x_118, 1, x_117); @@ -7925,9 +7376,135 @@ return x_118; } } } +block_153: +{ +lean_object* x_121; +lean_dec(x_120); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_121 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_121) == 0) +{ +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +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(x_121); +x_124 = lean_ctor_get(x_122, 0); +lean_inc(x_124); +lean_dec(x_122); +x_125 = lean_array_get_size(x_3); +x_126 = lean_unsigned_to_nat(0u); +x_127 = lean_unsigned_to_nat(1u); +x_128 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_125); +lean_ctor_set(x_128, 2, x_127); +x_129 = 0; +x_130 = lean_box(x_129); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_3); +lean_ctor_set(x_131, 1, x_130); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_132 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_124, x_128, x_128, x_131, x_126, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_123); +lean_dec(x_128); +lean_dec(x_124); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_134, 1); +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(x_134); +lean_dec(x_2); +x_137 = lean_ctor_get(x_132, 1); +lean_inc(x_137); +lean_dec(x_132); +x_138 = lean_ctor_get(x_133, 1); +lean_inc(x_138); +lean_dec(x_133); +lean_inc(x_1); +x_139 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_138, x_7, x_8, x_9, x_10, x_137); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_139; +} else { -uint8_t x_119; +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_140 = lean_ctor_get(x_132, 1); +lean_inc(x_140); +lean_dec(x_132); +x_141 = lean_ctor_get(x_133, 1); +lean_inc(x_141); +lean_dec(x_133); +x_142 = lean_ctor_get(x_134, 0); +lean_inc(x_142); +lean_dec(x_134); +x_143 = l_Lean_mkAppN(x_2, x_142); +lean_dec(x_142); +x_144 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_143, x_5, x_141, x_7, x_8, x_9, x_10, x_140); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_144; +} +} +else +{ +uint8_t x_145; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_145 = !lean_is_exclusive(x_132); +if (x_145 == 0) +{ +return x_132; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_132, 0); +x_147 = lean_ctor_get(x_132, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_132); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; +} +} +} +else +{ +uint8_t x_149; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -7937,97 +7514,304 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_91); -if (x_119 == 0) +x_149 = !lean_is_exclusive(x_121); +if (x_149 == 0) { -return x_91; +return x_121; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_91, 0); -x_121 = lean_ctor_get(x_91, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_91); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_121, 0); +x_151 = lean_ctor_get(x_121, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_121); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; } } } } case 2: { -lean_object* x_168; lean_object* x_202; uint8_t x_203; +lean_object* x_166; lean_object* x_197; lean_object* x_231; uint8_t x_232; lean_dec(x_4); -x_202 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_203 = l_Lean_Expr_isConstOf(x_2, x_202); -if (x_203 == 0) +x_231 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_232 = l_Lean_Expr_isConstOf(x_2, x_231); +if (x_232 == 0) { -lean_object* x_204; -x_204 = lean_box(0); -x_168 = x_204; -goto block_201; +lean_object* x_233; +x_233 = lean_box(0); +x_197 = x_233; +goto block_230; } else { -lean_object* x_205; lean_object* x_206; uint8_t x_207; -x_205 = lean_array_get_size(x_3); -x_206 = lean_unsigned_to_nat(2u); -x_207 = lean_nat_dec_eq(x_205, x_206); -if (x_207 == 0) +lean_object* x_234; lean_object* x_235; uint8_t x_236; +x_234 = lean_array_get_size(x_3); +x_235 = lean_unsigned_to_nat(2u); +x_236 = lean_nat_dec_eq(x_234, x_235); +if (x_236 == 0) { -lean_object* x_208; -lean_dec(x_205); -x_208 = lean_box(0); -x_168 = x_208; -goto block_201; +lean_object* x_237; +lean_dec(x_234); +x_237 = lean_box(0); +x_197 = x_237; +goto block_230; } else { -lean_object* x_209; uint8_t x_210; -x_209 = lean_unsigned_to_nat(0u); -x_210 = lean_nat_dec_lt(x_209, x_205); -lean_dec(x_205); -if (x_210 == 0) +lean_object* x_238; uint8_t x_239; +x_238 = lean_unsigned_to_nat(0u); +x_239 = lean_nat_dec_lt(x_238, x_234); +lean_dec(x_234); +if (x_239 == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = l_Lean_instInhabitedExpr; -x_212 = l_outOfBounds___rarg(x_211); +lean_object* x_240; lean_object* x_241; +x_240 = l_Lean_instInhabitedExpr; +x_241 = l_outOfBounds___rarg(x_240); +x_166 = x_241; +goto block_196; +} +else +{ +lean_object* x_242; +x_242 = lean_array_fget(x_3, x_238); +x_166 = x_242; +goto block_196; +} +} +} +block_196: +{ +lean_object* x_167; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_212); -x_213 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_212, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_213) == 0) +lean_inc(x_166); +x_167 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_166, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_167) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; size_t x_218; size_t x_219; uint8_t x_220; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -x_216 = lean_ctor_get(x_214, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_214, 1); -lean_inc(x_217); -lean_dec(x_214); -x_218 = lean_ptr_addr(x_212); -lean_dec(x_212); -x_219 = lean_ptr_addr(x_216); -x_220 = lean_usize_dec_eq(x_218, x_219); -if (x_220 == 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); +lean_dec(x_167); +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_168, 1); +lean_inc(x_171); +lean_dec(x_168); +x_172 = lean_ctor_get(x_171, 2); +lean_inc(x_172); +lean_inc(x_172); +x_173 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_172, x_170); +if (lean_obj_tag(x_173) == 0) { -lean_object* x_221; -lean_dec(x_216); +size_t x_174; size_t x_175; uint8_t x_176; +x_174 = lean_ptr_addr(x_166); +lean_dec(x_166); +x_175 = lean_ptr_addr(x_170); +x_176 = lean_usize_dec_eq(x_174, x_175); +if (x_176 == 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; +x_177 = lean_unsigned_to_nat(0u); +lean_inc(x_170); +x_178 = lean_array_set(x_3, x_177, x_170); +x_179 = l_Lean_mkAppN(x_2, x_178); +lean_dec(x_178); +x_180 = lean_ctor_get(x_171, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_171, 1); +lean_inc(x_181); +lean_dec(x_171); +lean_inc(x_179); +x_182 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_172, x_170, x_179); +x_183 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_183, 0, x_180); +lean_ctor_set(x_183, 1, x_181); +lean_ctor_set(x_183, 2, x_182); +x_184 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_179, x_5, x_183, x_7, x_8, x_9, x_10, x_169); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_184; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_dec(x_3); lean_dec(x_2); +x_185 = lean_ctor_get(x_171, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_171, 1); +lean_inc(x_186); +lean_dec(x_171); lean_inc(x_1); -x_221 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_217, x_7, x_8, x_9, x_10, x_215); +x_187 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_172, x_170, x_1); +x_188 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_187); +lean_inc(x_1); +x_189 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_188, x_7, x_8, x_9, x_10, x_169); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_189; +} +} +else +{ +lean_object* x_190; lean_object* x_191; +lean_dec(x_172); +lean_dec(x_170); +lean_dec(x_166); +lean_dec(x_3); +lean_dec(x_2); +x_190 = lean_ctor_get(x_173, 0); +lean_inc(x_190); +lean_dec(x_173); +x_191 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_190, x_5, x_171, x_7, x_8, x_9, x_10, x_169); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_191; +} +} +else +{ +uint8_t x_192; +lean_dec(x_166); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_192 = !lean_is_exclusive(x_167); +if (x_192 == 0) +{ +return x_167; +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_167, 0); +x_194 = lean_ctor_get(x_167, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_167); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; +} +} +} +block_230: +{ +lean_object* x_198; +lean_dec(x_197); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_198 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_198) == 0) +{ +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; uint8_t x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_198, 1); +lean_inc(x_200); +lean_dec(x_198); +x_201 = lean_ctor_get(x_199, 0); +lean_inc(x_201); +lean_dec(x_199); +x_202 = lean_array_get_size(x_3); +x_203 = lean_unsigned_to_nat(0u); +x_204 = lean_unsigned_to_nat(1u); +x_205 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_202); +lean_ctor_set(x_205, 2, x_204); +x_206 = 0; +x_207 = lean_box(x_206); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_3); +lean_ctor_set(x_208, 1, x_207); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_209 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_201, x_205, x_205, x_208, x_203, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_200); +lean_dec(x_205); +lean_dec(x_201); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +x_213 = lean_unbox(x_212); +lean_dec(x_212); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_211); +lean_dec(x_2); +x_214 = lean_ctor_get(x_209, 1); +lean_inc(x_214); +lean_dec(x_209); +x_215 = lean_ctor_get(x_210, 1); +lean_inc(x_215); +lean_dec(x_210); +lean_inc(x_1); +x_216 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_215, x_7, x_8, x_9, x_10, x_214); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_216; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_217 = lean_ctor_get(x_209, 1); +lean_inc(x_217); +lean_dec(x_209); +x_218 = lean_ctor_get(x_210, 1); +lean_inc(x_218); +lean_dec(x_210); +x_219 = lean_ctor_get(x_211, 0); +lean_inc(x_219); +lean_dec(x_211); +x_220 = l_Lean_mkAppN(x_2, x_219); +lean_dec(x_219); +x_221 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_220, x_5, x_218, x_7, x_8, x_9, x_10, x_217); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8035,244 +7819,10 @@ lean_dec(x_7); lean_dec(x_5); return x_221; } -else -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_array_set(x_3, x_209, x_216); -x_223 = l_Lean_mkAppN(x_2, x_222); -lean_dec(x_222); -x_224 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_223, x_5, x_217, x_7, x_8, x_9, x_10, x_215); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_224; -} } else { -uint8_t x_225; -lean_dec(x_212); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_225 = !lean_is_exclusive(x_213); -if (x_225 == 0) -{ -return x_213; -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_213, 0); -x_227 = lean_ctor_get(x_213, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_213); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; -} -} -} -else -{ -lean_object* x_229; lean_object* x_230; -x_229 = lean_array_fget(x_3, x_209); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_229); -x_230 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_229, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_230) == 0) -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; size_t x_235; size_t x_236; uint8_t x_237; -x_231 = lean_ctor_get(x_230, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 1); -lean_inc(x_232); -lean_dec(x_230); -x_233 = lean_ctor_get(x_231, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_231, 1); -lean_inc(x_234); -lean_dec(x_231); -x_235 = lean_ptr_addr(x_229); -lean_dec(x_229); -x_236 = lean_ptr_addr(x_233); -x_237 = lean_usize_dec_eq(x_235, x_236); -if (x_237 == 0) -{ -lean_object* x_238; -lean_dec(x_233); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_238 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_234, x_7, x_8, x_9, x_10, x_232); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_238; -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_array_set(x_3, x_209, x_233); -x_240 = l_Lean_mkAppN(x_2, x_239); -lean_dec(x_239); -x_241 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_240, x_5, x_234, x_7, x_8, x_9, x_10, x_232); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_241; -} -} -else -{ -uint8_t x_242; -lean_dec(x_229); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_242 = !lean_is_exclusive(x_230); -if (x_242 == 0) -{ -return x_230; -} -else -{ -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_230, 0); -x_244 = lean_ctor_get(x_230, 1); -lean_inc(x_244); -lean_inc(x_243); -lean_dec(x_230); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -return x_245; -} -} -} -} -} -block_201: -{ -lean_object* x_169; -lean_dec(x_168); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_169 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -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; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = lean_ctor_get(x_170, 0); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_array_get_size(x_3); -x_174 = lean_unsigned_to_nat(0u); -x_175 = lean_unsigned_to_nat(1u); -x_176 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_173); -lean_ctor_set(x_176, 2, x_175); -x_177 = 0; -x_178 = lean_box(x_177); -x_179 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_179, 0, x_3); -lean_ctor_set(x_179, 1, x_178); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_2); -x_180 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_172, x_176, x_176, x_179, x_174, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_171); -lean_dec(x_176); -lean_dec(x_172); -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_182, 1); -lean_inc(x_183); -x_184 = lean_unbox(x_183); -lean_dec(x_183); -if (x_184 == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_182); -lean_dec(x_2); -x_185 = lean_ctor_get(x_180, 1); -lean_inc(x_185); -lean_dec(x_180); -x_186 = lean_ctor_get(x_181, 1); -lean_inc(x_186); -lean_dec(x_181); -lean_inc(x_1); -x_187 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_186, x_7, x_8, x_9, x_10, x_185); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_187; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_188 = lean_ctor_get(x_180, 1); -lean_inc(x_188); -lean_dec(x_180); -x_189 = lean_ctor_get(x_181, 1); -lean_inc(x_189); -lean_dec(x_181); -x_190 = lean_ctor_get(x_182, 0); -lean_inc(x_190); -lean_dec(x_182); -x_191 = l_Lean_mkAppN(x_2, x_190); -lean_dec(x_190); -x_192 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_191, x_5, x_189, x_7, x_8, x_9, x_10, x_188); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_192; -} -} -else -{ -uint8_t x_193; +uint8_t x_222; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8280,29 +7830,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_193 = !lean_is_exclusive(x_180); -if (x_193 == 0) +x_222 = !lean_is_exclusive(x_209); +if (x_222 == 0) { -return x_180; +return x_209; } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_180, 0); -x_195 = lean_ctor_get(x_180, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_180); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_194); -lean_ctor_set(x_196, 1, x_195); -return x_196; +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_209, 0); +x_224 = lean_ctor_get(x_209, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_209); +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_197; +uint8_t x_226; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8312,123 +7862,188 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_197 = !lean_is_exclusive(x_169); -if (x_197 == 0) +x_226 = !lean_is_exclusive(x_198); +if (x_226 == 0) { -return x_169; +return x_198; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_169, 0); -x_199 = lean_ctor_get(x_169, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_169); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_198, 0); +x_228 = lean_ctor_get(x_198, 1); +lean_inc(x_228); +lean_inc(x_227); +lean_dec(x_198); +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; } } } } case 3: { -lean_object* x_246; lean_object* x_280; uint8_t x_281; +lean_object* x_243; lean_object* x_274; lean_object* x_308; uint8_t x_309; lean_dec(x_4); -x_280 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_281 = l_Lean_Expr_isConstOf(x_2, x_280); -if (x_281 == 0) +x_308 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_309 = l_Lean_Expr_isConstOf(x_2, x_308); +if (x_309 == 0) { -lean_object* x_282; -x_282 = lean_box(0); -x_246 = x_282; -goto block_279; +lean_object* x_310; +x_310 = lean_box(0); +x_274 = x_310; +goto block_307; } else { -lean_object* x_283; lean_object* x_284; uint8_t x_285; -x_283 = lean_array_get_size(x_3); -x_284 = lean_unsigned_to_nat(2u); -x_285 = lean_nat_dec_eq(x_283, x_284); -if (x_285 == 0) +lean_object* x_311; lean_object* x_312; uint8_t x_313; +x_311 = lean_array_get_size(x_3); +x_312 = lean_unsigned_to_nat(2u); +x_313 = lean_nat_dec_eq(x_311, x_312); +if (x_313 == 0) { -lean_object* x_286; -lean_dec(x_283); -x_286 = lean_box(0); -x_246 = x_286; -goto block_279; +lean_object* x_314; +lean_dec(x_311); +x_314 = lean_box(0); +x_274 = x_314; +goto block_307; } else { -lean_object* x_287; uint8_t x_288; -x_287 = lean_unsigned_to_nat(0u); -x_288 = lean_nat_dec_lt(x_287, x_283); -lean_dec(x_283); -if (x_288 == 0) +lean_object* x_315; uint8_t x_316; +x_315 = lean_unsigned_to_nat(0u); +x_316 = lean_nat_dec_lt(x_315, x_311); +lean_dec(x_311); +if (x_316 == 0) { -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = l_Lean_instInhabitedExpr; -x_290 = l_outOfBounds___rarg(x_289); +lean_object* x_317; lean_object* x_318; +x_317 = l_Lean_instInhabitedExpr; +x_318 = l_outOfBounds___rarg(x_317); +x_243 = x_318; +goto block_273; +} +else +{ +lean_object* x_319; +x_319 = lean_array_fget(x_3, x_315); +x_243 = x_319; +goto block_273; +} +} +} +block_273: +{ +lean_object* x_244; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_290); -x_291 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_290, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_291) == 0) +lean_inc(x_243); +x_244 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_243, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_244) == 0) { -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; size_t x_296; size_t x_297; uint8_t x_298; -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_294 = lean_ctor_get(x_292, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_292, 1); -lean_inc(x_295); -lean_dec(x_292); -x_296 = lean_ptr_addr(x_290); -lean_dec(x_290); -x_297 = lean_ptr_addr(x_294); -x_298 = lean_usize_dec_eq(x_296, x_297); -if (x_298 == 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; +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_ctor_get(x_245, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_245, 1); +lean_inc(x_248); +lean_dec(x_245); +x_249 = lean_ctor_get(x_248, 2); +lean_inc(x_249); +lean_inc(x_249); +x_250 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_249, x_247); +if (lean_obj_tag(x_250) == 0) { -lean_object* x_299; -lean_dec(x_294); +size_t x_251; size_t x_252; uint8_t x_253; +x_251 = lean_ptr_addr(x_243); +lean_dec(x_243); +x_252 = lean_ptr_addr(x_247); +x_253 = lean_usize_dec_eq(x_251, x_252); +if (x_253 == 0) +{ +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; +x_254 = lean_unsigned_to_nat(0u); +lean_inc(x_247); +x_255 = lean_array_set(x_3, x_254, x_247); +x_256 = l_Lean_mkAppN(x_2, x_255); +lean_dec(x_255); +x_257 = lean_ctor_get(x_248, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_248, 1); +lean_inc(x_258); +lean_dec(x_248); +lean_inc(x_256); +x_259 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_249, x_247, x_256); +x_260 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_260, 0, x_257); +lean_ctor_set(x_260, 1, x_258); +lean_ctor_set(x_260, 2, x_259); +x_261 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_256, x_5, x_260, x_7, x_8, x_9, x_10, x_246); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_261; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_dec(x_3); lean_dec(x_2); +x_262 = lean_ctor_get(x_248, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_248, 1); +lean_inc(x_263); +lean_dec(x_248); lean_inc(x_1); -x_299 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_295, x_7, x_8, x_9, x_10, x_293); +x_264 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_249, x_247, x_1); +x_265 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +lean_ctor_set(x_265, 2, x_264); +lean_inc(x_1); +x_266 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_265, x_7, x_8, x_9, x_10, x_246); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_299; +return x_266; +} } else { -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_array_set(x_3, x_287, x_294); -x_301 = l_Lean_mkAppN(x_2, x_300); -lean_dec(x_300); -x_302 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_301, x_5, x_295, x_7, x_8, x_9, x_10, x_293); +lean_object* x_267; lean_object* x_268; +lean_dec(x_249); +lean_dec(x_247); +lean_dec(x_243); +lean_dec(x_3); +lean_dec(x_2); +x_267 = lean_ctor_get(x_250, 0); +lean_inc(x_267); +lean_dec(x_250); +x_268 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_267, x_5, x_248, x_7, x_8, x_9, x_10, x_246); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_302; +return x_268; } } else { -uint8_t x_303; -lean_dec(x_290); +uint8_t x_269; +lean_dec(x_243); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8437,19 +8052,177 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_303 = !lean_is_exclusive(x_291); +x_269 = !lean_is_exclusive(x_244); +if (x_269 == 0) +{ +return x_244; +} +else +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_270 = lean_ctor_get(x_244, 0); +x_271 = lean_ctor_get(x_244, 1); +lean_inc(x_271); +lean_inc(x_270); +lean_dec(x_244); +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_270); +lean_ctor_set(x_272, 1, x_271); +return x_272; +} +} +} +block_307: +{ +lean_object* x_275; +lean_dec(x_274); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_275 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_276 = lean_ctor_get(x_275, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_275, 1); +lean_inc(x_277); +lean_dec(x_275); +x_278 = lean_ctor_get(x_276, 0); +lean_inc(x_278); +lean_dec(x_276); +x_279 = lean_array_get_size(x_3); +x_280 = lean_unsigned_to_nat(0u); +x_281 = lean_unsigned_to_nat(1u); +x_282 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_282, 0, x_280); +lean_ctor_set(x_282, 1, x_279); +lean_ctor_set(x_282, 2, x_281); +x_283 = 0; +x_284 = lean_box(x_283); +x_285 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_285, 0, x_3); +lean_ctor_set(x_285, 1, x_284); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_286 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_278, x_282, x_282, x_285, x_280, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_277); +lean_dec(x_282); +lean_dec(x_278); +if (lean_obj_tag(x_286) == 0) +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +x_290 = lean_unbox(x_289); +lean_dec(x_289); +if (x_290 == 0) +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_dec(x_288); +lean_dec(x_2); +x_291 = lean_ctor_get(x_286, 1); +lean_inc(x_291); +lean_dec(x_286); +x_292 = lean_ctor_get(x_287, 1); +lean_inc(x_292); +lean_dec(x_287); +lean_inc(x_1); +x_293 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_292, x_7, x_8, x_9, x_10, x_291); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_293; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_294 = lean_ctor_get(x_286, 1); +lean_inc(x_294); +lean_dec(x_286); +x_295 = lean_ctor_get(x_287, 1); +lean_inc(x_295); +lean_dec(x_287); +x_296 = lean_ctor_get(x_288, 0); +lean_inc(x_296); +lean_dec(x_288); +x_297 = l_Lean_mkAppN(x_2, x_296); +lean_dec(x_296); +x_298 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_297, x_5, x_295, x_7, x_8, x_9, x_10, x_294); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_298; +} +} +else +{ +uint8_t x_299; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_299 = !lean_is_exclusive(x_286); +if (x_299 == 0) +{ +return x_286; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_300 = lean_ctor_get(x_286, 0); +x_301 = lean_ctor_get(x_286, 1); +lean_inc(x_301); +lean_inc(x_300); +lean_dec(x_286); +x_302 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_302, 0, x_300); +lean_ctor_set(x_302, 1, x_301); +return x_302; +} +} +} +else +{ +uint8_t x_303; +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); +lean_dec(x_1); +x_303 = !lean_is_exclusive(x_275); if (x_303 == 0) { -return x_291; +return x_275; } else { lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_291, 0); -x_305 = lean_ctor_get(x_291, 1); +x_304 = lean_ctor_get(x_275, 0); +x_305 = lean_ctor_get(x_275, 1); lean_inc(x_305); lean_inc(x_304); -lean_dec(x_291); +lean_dec(x_275); x_306 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_306, 0, x_304); lean_ctor_set(x_306, 1, x_305); @@ -8457,539 +8230,136 @@ return x_306; } } } -else -{ -lean_object* x_307; lean_object* x_308; -x_307 = lean_array_fget(x_3, x_287); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_307); -x_308 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_307, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_308) == 0) -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; size_t x_313; size_t x_314; uint8_t x_315; -x_309 = lean_ctor_get(x_308, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_308, 1); -lean_inc(x_310); -lean_dec(x_308); -x_311 = lean_ctor_get(x_309, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_309, 1); -lean_inc(x_312); -lean_dec(x_309); -x_313 = lean_ptr_addr(x_307); -lean_dec(x_307); -x_314 = lean_ptr_addr(x_311); -x_315 = lean_usize_dec_eq(x_313, x_314); -if (x_315 == 0) -{ -lean_object* x_316; -lean_dec(x_311); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_316 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_312, x_7, x_8, x_9, x_10, x_310); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_316; -} -else -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_317 = lean_array_set(x_3, x_287, x_311); -x_318 = l_Lean_mkAppN(x_2, x_317); -lean_dec(x_317); -x_319 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_318, x_5, x_312, x_7, x_8, x_9, x_10, x_310); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_319; -} -} -else -{ -uint8_t x_320; -lean_dec(x_307); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_320 = !lean_is_exclusive(x_308); -if (x_320 == 0) -{ -return x_308; -} -else -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_321 = lean_ctor_get(x_308, 0); -x_322 = lean_ctor_get(x_308, 1); -lean_inc(x_322); -lean_inc(x_321); -lean_dec(x_308); -x_323 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_323, 0, x_321); -lean_ctor_set(x_323, 1, x_322); -return x_323; -} -} -} -} -} -block_279: -{ -lean_object* x_247; -lean_dec(x_246); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_247 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(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; uint8_t x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -x_250 = lean_ctor_get(x_248, 0); -lean_inc(x_250); -lean_dec(x_248); -x_251 = lean_array_get_size(x_3); -x_252 = lean_unsigned_to_nat(0u); -x_253 = lean_unsigned_to_nat(1u); -x_254 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_251); -lean_ctor_set(x_254, 2, x_253); -x_255 = 0; -x_256 = lean_box(x_255); -x_257 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_257, 0, x_3); -lean_ctor_set(x_257, 1, x_256); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_2); -x_258 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_250, x_254, x_254, x_257, x_252, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_249); -lean_dec(x_254); -lean_dec(x_250); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_260, 1); -lean_inc(x_261); -x_262 = lean_unbox(x_261); -lean_dec(x_261); -if (x_262 == 0) -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -lean_dec(x_260); -lean_dec(x_2); -x_263 = lean_ctor_get(x_258, 1); -lean_inc(x_263); -lean_dec(x_258); -x_264 = lean_ctor_get(x_259, 1); -lean_inc(x_264); -lean_dec(x_259); -lean_inc(x_1); -x_265 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_264, x_7, x_8, x_9, x_10, x_263); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_265; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_266 = lean_ctor_get(x_258, 1); -lean_inc(x_266); -lean_dec(x_258); -x_267 = lean_ctor_get(x_259, 1); -lean_inc(x_267); -lean_dec(x_259); -x_268 = lean_ctor_get(x_260, 0); -lean_inc(x_268); -lean_dec(x_260); -x_269 = l_Lean_mkAppN(x_2, x_268); -lean_dec(x_268); -x_270 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_269, x_5, x_267, x_7, x_8, x_9, x_10, x_266); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_270; -} -} -else -{ -uint8_t x_271; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_271 = !lean_is_exclusive(x_258); -if (x_271 == 0) -{ -return x_258; -} -else -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_258, 0); -x_273 = lean_ctor_get(x_258, 1); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_258); -x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_272); -lean_ctor_set(x_274, 1, x_273); -return x_274; -} -} -} -else -{ -uint8_t x_275; -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); -lean_dec(x_1); -x_275 = !lean_is_exclusive(x_247); -if (x_275 == 0) -{ -return x_247; -} -else -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_247, 0); -x_277 = lean_ctor_get(x_247, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_247); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -return x_278; -} -} -} } case 4: { -lean_object* x_324; lean_object* x_358; uint8_t x_359; +lean_object* x_320; lean_object* x_351; lean_object* x_385; uint8_t x_386; lean_dec(x_4); -x_358 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_359 = l_Lean_Expr_isConstOf(x_2, x_358); -if (x_359 == 0) +x_385 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_386 = l_Lean_Expr_isConstOf(x_2, x_385); +if (x_386 == 0) { -lean_object* x_360; -x_360 = lean_box(0); -x_324 = x_360; -goto block_357; +lean_object* x_387; +x_387 = lean_box(0); +x_351 = x_387; +goto block_384; } else { -lean_object* x_361; lean_object* x_362; uint8_t x_363; -x_361 = lean_array_get_size(x_3); -x_362 = lean_unsigned_to_nat(2u); -x_363 = lean_nat_dec_eq(x_361, x_362); -if (x_363 == 0) +lean_object* x_388; lean_object* x_389; uint8_t x_390; +x_388 = lean_array_get_size(x_3); +x_389 = lean_unsigned_to_nat(2u); +x_390 = lean_nat_dec_eq(x_388, x_389); +if (x_390 == 0) { -lean_object* x_364; -lean_dec(x_361); -x_364 = lean_box(0); -x_324 = x_364; -goto block_357; +lean_object* x_391; +lean_dec(x_388); +x_391 = lean_box(0); +x_351 = x_391; +goto block_384; } else { -lean_object* x_365; uint8_t x_366; -x_365 = lean_unsigned_to_nat(0u); -x_366 = lean_nat_dec_lt(x_365, x_361); -lean_dec(x_361); -if (x_366 == 0) -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_367 = l_Lean_instInhabitedExpr; -x_368 = l_outOfBounds___rarg(x_367); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_368); -x_369 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_368, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_369) == 0) -{ -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; size_t x_374; size_t x_375; uint8_t x_376; -x_370 = lean_ctor_get(x_369, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_369, 1); -lean_inc(x_371); -lean_dec(x_369); -x_372 = lean_ctor_get(x_370, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_370, 1); -lean_inc(x_373); -lean_dec(x_370); -x_374 = lean_ptr_addr(x_368); -lean_dec(x_368); -x_375 = lean_ptr_addr(x_372); -x_376 = lean_usize_dec_eq(x_374, x_375); -if (x_376 == 0) -{ -lean_object* x_377; -lean_dec(x_372); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_377 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_373, x_7, x_8, x_9, x_10, x_371); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_377; -} -else -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_378 = lean_array_set(x_3, x_365, x_372); -x_379 = l_Lean_mkAppN(x_2, x_378); -lean_dec(x_378); -x_380 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_379, x_5, x_373, x_7, x_8, x_9, x_10, x_371); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_380; -} -} -else -{ -uint8_t x_381; -lean_dec(x_368); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_381 = !lean_is_exclusive(x_369); -if (x_381 == 0) -{ -return x_369; -} -else -{ -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_369, 0); -x_383 = lean_ctor_get(x_369, 1); -lean_inc(x_383); -lean_inc(x_382); -lean_dec(x_369); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -return x_384; -} -} -} -else -{ -lean_object* x_385; lean_object* x_386; -x_385 = lean_array_fget(x_3, x_365); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_385); -x_386 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_385, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_386) == 0) -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; size_t x_391; size_t x_392; uint8_t x_393; -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_386, 1); -lean_inc(x_388); -lean_dec(x_386); -x_389 = lean_ctor_get(x_387, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_387, 1); -lean_inc(x_390); -lean_dec(x_387); -x_391 = lean_ptr_addr(x_385); -lean_dec(x_385); -x_392 = lean_ptr_addr(x_389); -x_393 = lean_usize_dec_eq(x_391, x_392); +lean_object* x_392; uint8_t x_393; +x_392 = lean_unsigned_to_nat(0u); +x_393 = lean_nat_dec_lt(x_392, x_388); +lean_dec(x_388); if (x_393 == 0) { -lean_object* x_394; -lean_dec(x_389); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_394 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_390, x_7, x_8, x_9, x_10, x_388); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_394; +lean_object* x_394; lean_object* x_395; +x_394 = l_Lean_instInhabitedExpr; +x_395 = l_outOfBounds___rarg(x_394); +x_320 = x_395; +goto block_350; } else { -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_array_set(x_3, x_365, x_389); -x_396 = l_Lean_mkAppN(x_2, x_395); -lean_dec(x_395); -x_397 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_396, x_5, x_390, x_7, x_8, x_9, x_10, x_388); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_397; +lean_object* x_396; +x_396 = lean_array_fget(x_3, x_392); +x_320 = x_396; +goto block_350; } } -else +} +block_350: { -uint8_t x_398; -lean_dec(x_385); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_398 = !lean_is_exclusive(x_386); -if (x_398 == 0) -{ -return x_386; -} -else -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_399 = lean_ctor_get(x_386, 0); -x_400 = lean_ctor_get(x_386, 1); -lean_inc(x_400); -lean_inc(x_399); -lean_dec(x_386); -x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_400); -return x_401; -} -} -} -} -} -block_357: -{ -lean_object* x_325; -lean_dec(x_324); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_325 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_325) == 0) -{ -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; uint8_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_325, 1); -lean_inc(x_327); -lean_dec(x_325); -x_328 = lean_ctor_get(x_326, 0); -lean_inc(x_328); -lean_dec(x_326); -x_329 = lean_array_get_size(x_3); -x_330 = lean_unsigned_to_nat(0u); -x_331 = lean_unsigned_to_nat(1u); -x_332 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_332, 0, x_330); -lean_ctor_set(x_332, 1, x_329); -lean_ctor_set(x_332, 2, x_331); -x_333 = 0; -x_334 = lean_box(x_333); -x_335 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_335, 0, x_3); -lean_ctor_set(x_335, 1, x_334); +lean_object* x_321; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_2); -x_336 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_328, x_332, x_332, x_335, x_330, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_327); +lean_inc(x_320); +x_321 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_320, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_321) == 0) +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); +lean_inc(x_323); +lean_dec(x_321); +x_324 = lean_ctor_get(x_322, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_322, 1); +lean_inc(x_325); +lean_dec(x_322); +x_326 = lean_ctor_get(x_325, 2); +lean_inc(x_326); +lean_inc(x_326); +x_327 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_326, x_324); +if (lean_obj_tag(x_327) == 0) +{ +size_t x_328; size_t x_329; uint8_t x_330; +x_328 = lean_ptr_addr(x_320); +lean_dec(x_320); +x_329 = lean_ptr_addr(x_324); +x_330 = lean_usize_dec_eq(x_328, x_329); +if (x_330 == 0) +{ +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; +x_331 = lean_unsigned_to_nat(0u); +lean_inc(x_324); +x_332 = lean_array_set(x_3, x_331, x_324); +x_333 = l_Lean_mkAppN(x_2, x_332); lean_dec(x_332); -lean_dec(x_328); -if (lean_obj_tag(x_336) == 0) +x_334 = lean_ctor_get(x_325, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_325, 1); +lean_inc(x_335); +lean_dec(x_325); +lean_inc(x_333); +x_336 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_326, x_324, x_333); +x_337 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_337, 0, x_334); +lean_ctor_set(x_337, 1, x_335); +lean_ctor_set(x_337, 2, x_336); +x_338 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_333, x_5, x_337, x_7, x_8, x_9, x_10, x_323); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_338; +} +else { -lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_337, 0); -lean_inc(x_338); -x_339 = lean_ctor_get(x_338, 1); -lean_inc(x_339); -x_340 = lean_unbox(x_339); -lean_dec(x_339); -if (x_340 == 0) -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; -lean_dec(x_338); +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +lean_dec(x_3); lean_dec(x_2); -x_341 = lean_ctor_get(x_336, 1); -lean_inc(x_341); -lean_dec(x_336); -x_342 = lean_ctor_get(x_337, 1); -lean_inc(x_342); -lean_dec(x_337); +x_339 = lean_ctor_get(x_325, 0); +lean_inc(x_339); +x_340 = lean_ctor_get(x_325, 1); +lean_inc(x_340); +lean_dec(x_325); lean_inc(x_1); -x_343 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_342, x_7, x_8, x_9, x_10, x_341); +x_341 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_326, x_324, x_1); +x_342 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_342, 0, x_339); +lean_ctor_set(x_342, 1, x_340); +lean_ctor_set(x_342, 2, x_341); +lean_inc(x_1); +x_343 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_342, x_7, x_8, x_9, x_10, x_323); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8997,32 +8367,158 @@ lean_dec(x_7); lean_dec(x_5); return x_343; } +} else { -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_344 = lean_ctor_get(x_336, 1); +lean_object* x_344; lean_object* x_345; +lean_dec(x_326); +lean_dec(x_324); +lean_dec(x_320); +lean_dec(x_3); +lean_dec(x_2); +x_344 = lean_ctor_get(x_327, 0); lean_inc(x_344); -lean_dec(x_336); -x_345 = lean_ctor_get(x_337, 1); -lean_inc(x_345); -lean_dec(x_337); -x_346 = lean_ctor_get(x_338, 0); -lean_inc(x_346); -lean_dec(x_338); -x_347 = l_Lean_mkAppN(x_2, x_346); -lean_dec(x_346); -x_348 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_347, x_5, x_345, x_7, x_8, x_9, x_10, x_344); +lean_dec(x_327); +x_345 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_344, x_5, x_325, x_7, x_8, x_9, x_10, x_323); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_348; +return x_345; } } else { -uint8_t x_349; +uint8_t x_346; +lean_dec(x_320); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_346 = !lean_is_exclusive(x_321); +if (x_346 == 0) +{ +return x_321; +} +else +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_321, 0); +x_348 = lean_ctor_get(x_321, 1); +lean_inc(x_348); +lean_inc(x_347); +lean_dec(x_321); +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +return x_349; +} +} +} +block_384: +{ +lean_object* x_352; +lean_dec(x_351); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_352 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_352) == 0) +{ +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; uint8_t x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +x_355 = lean_ctor_get(x_353, 0); +lean_inc(x_355); +lean_dec(x_353); +x_356 = lean_array_get_size(x_3); +x_357 = lean_unsigned_to_nat(0u); +x_358 = lean_unsigned_to_nat(1u); +x_359 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_359, 0, x_357); +lean_ctor_set(x_359, 1, x_356); +lean_ctor_set(x_359, 2, x_358); +x_360 = 0; +x_361 = lean_box(x_360); +x_362 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_362, 0, x_3); +lean_ctor_set(x_362, 1, x_361); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_363 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_355, x_359, x_359, x_362, x_357, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_354); +lean_dec(x_359); +lean_dec(x_355); +if (lean_obj_tag(x_363) == 0) +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; uint8_t x_367; +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_364, 0); +lean_inc(x_365); +x_366 = lean_ctor_get(x_365, 1); +lean_inc(x_366); +x_367 = lean_unbox(x_366); +lean_dec(x_366); +if (x_367 == 0) +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; +lean_dec(x_365); +lean_dec(x_2); +x_368 = lean_ctor_get(x_363, 1); +lean_inc(x_368); +lean_dec(x_363); +x_369 = lean_ctor_get(x_364, 1); +lean_inc(x_369); +lean_dec(x_364); +lean_inc(x_1); +x_370 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_369, x_7, x_8, x_9, x_10, x_368); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_370; +} +else +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_371 = lean_ctor_get(x_363, 1); +lean_inc(x_371); +lean_dec(x_363); +x_372 = lean_ctor_get(x_364, 1); +lean_inc(x_372); +lean_dec(x_364); +x_373 = lean_ctor_get(x_365, 0); +lean_inc(x_373); +lean_dec(x_365); +x_374 = l_Lean_mkAppN(x_2, x_373); +lean_dec(x_373); +x_375 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_374, x_5, x_372, x_7, x_8, x_9, x_10, x_371); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_375; +} +} +else +{ +uint8_t x_376; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9030,29 +8526,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_349 = !lean_is_exclusive(x_336); -if (x_349 == 0) +x_376 = !lean_is_exclusive(x_363); +if (x_376 == 0) { -return x_336; +return x_363; } else { -lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_350 = lean_ctor_get(x_336, 0); -x_351 = lean_ctor_get(x_336, 1); -lean_inc(x_351); -lean_inc(x_350); -lean_dec(x_336); -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_350); -lean_ctor_set(x_352, 1, x_351); -return x_352; +lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_377 = lean_ctor_get(x_363, 0); +x_378 = lean_ctor_get(x_363, 1); +lean_inc(x_378); +lean_inc(x_377); +lean_dec(x_363); +x_379 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +return x_379; } } } else { -uint8_t x_353; +uint8_t x_380; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9062,140 +8558,205 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_353 = !lean_is_exclusive(x_325); -if (x_353 == 0) +x_380 = !lean_is_exclusive(x_352); +if (x_380 == 0) { -return x_325; +return x_352; } else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_325, 0); -x_355 = lean_ctor_get(x_325, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_325); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; +lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_381 = lean_ctor_get(x_352, 0); +x_382 = lean_ctor_get(x_352, 1); +lean_inc(x_382); +lean_inc(x_381); +lean_dec(x_352); +x_383 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_383, 0, x_381); +lean_ctor_set(x_383, 1, x_382); +return x_383; } } } } case 5: { -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_402 = lean_ctor_get(x_2, 0); -lean_inc(x_402); -x_403 = lean_ctor_get(x_2, 1); -lean_inc(x_403); +lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_397 = lean_ctor_get(x_2, 0); +lean_inc(x_397); +x_398 = lean_ctor_get(x_2, 1); +lean_inc(x_398); lean_dec(x_2); -x_404 = lean_array_set(x_3, x_4, x_403); -x_405 = lean_unsigned_to_nat(1u); -x_406 = lean_nat_sub(x_4, x_405); +x_399 = lean_array_set(x_3, x_4, x_398); +x_400 = lean_unsigned_to_nat(1u); +x_401 = lean_nat_sub(x_4, x_400); lean_dec(x_4); -x_2 = x_402; -x_3 = x_404; -x_4 = x_406; +x_2 = x_397; +x_3 = x_399; +x_4 = x_401; goto _start; } case 6: { -lean_object* x_408; lean_object* x_442; uint8_t x_443; +lean_object* x_403; lean_object* x_434; lean_object* x_468; uint8_t x_469; lean_dec(x_4); -x_442 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_443 = l_Lean_Expr_isConstOf(x_2, x_442); -if (x_443 == 0) +x_468 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_469 = l_Lean_Expr_isConstOf(x_2, x_468); +if (x_469 == 0) { -lean_object* x_444; -x_444 = lean_box(0); -x_408 = x_444; -goto block_441; +lean_object* x_470; +x_470 = lean_box(0); +x_434 = x_470; +goto block_467; } else { -lean_object* x_445; lean_object* x_446; uint8_t x_447; -x_445 = lean_array_get_size(x_3); -x_446 = lean_unsigned_to_nat(2u); -x_447 = lean_nat_dec_eq(x_445, x_446); -if (x_447 == 0) +lean_object* x_471; lean_object* x_472; uint8_t x_473; +x_471 = lean_array_get_size(x_3); +x_472 = lean_unsigned_to_nat(2u); +x_473 = lean_nat_dec_eq(x_471, x_472); +if (x_473 == 0) { -lean_object* x_448; -lean_dec(x_445); -x_448 = lean_box(0); -x_408 = x_448; -goto block_441; +lean_object* x_474; +lean_dec(x_471); +x_474 = lean_box(0); +x_434 = x_474; +goto block_467; } else { -lean_object* x_449; uint8_t x_450; -x_449 = lean_unsigned_to_nat(0u); -x_450 = lean_nat_dec_lt(x_449, x_445); -lean_dec(x_445); -if (x_450 == 0) +lean_object* x_475; uint8_t x_476; +x_475 = lean_unsigned_to_nat(0u); +x_476 = lean_nat_dec_lt(x_475, x_471); +lean_dec(x_471); +if (x_476 == 0) { -lean_object* x_451; lean_object* x_452; lean_object* x_453; -x_451 = l_Lean_instInhabitedExpr; -x_452 = l_outOfBounds___rarg(x_451); +lean_object* x_477; lean_object* x_478; +x_477 = l_Lean_instInhabitedExpr; +x_478 = l_outOfBounds___rarg(x_477); +x_403 = x_478; +goto block_433; +} +else +{ +lean_object* x_479; +x_479 = lean_array_fget(x_3, x_475); +x_403 = x_479; +goto block_433; +} +} +} +block_433: +{ +lean_object* x_404; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_452); -x_453 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_452, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_453) == 0) +lean_inc(x_403); +x_404 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_403, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_404) == 0) { -lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; size_t x_458; size_t x_459; uint8_t x_460; -x_454 = lean_ctor_get(x_453, 0); -lean_inc(x_454); -x_455 = lean_ctor_get(x_453, 1); -lean_inc(x_455); -lean_dec(x_453); -x_456 = lean_ctor_get(x_454, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_454, 1); -lean_inc(x_457); -lean_dec(x_454); -x_458 = lean_ptr_addr(x_452); -lean_dec(x_452); -x_459 = lean_ptr_addr(x_456); -x_460 = lean_usize_dec_eq(x_458, x_459); -if (x_460 == 0) +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_405 = lean_ctor_get(x_404, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_404, 1); +lean_inc(x_406); +lean_dec(x_404); +x_407 = lean_ctor_get(x_405, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_405, 1); +lean_inc(x_408); +lean_dec(x_405); +x_409 = lean_ctor_get(x_408, 2); +lean_inc(x_409); +lean_inc(x_409); +x_410 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_409, x_407); +if (lean_obj_tag(x_410) == 0) { -lean_object* x_461; -lean_dec(x_456); +size_t x_411; size_t x_412; uint8_t x_413; +x_411 = lean_ptr_addr(x_403); +lean_dec(x_403); +x_412 = lean_ptr_addr(x_407); +x_413 = lean_usize_dec_eq(x_411, x_412); +if (x_413 == 0) +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +x_414 = lean_unsigned_to_nat(0u); +lean_inc(x_407); +x_415 = lean_array_set(x_3, x_414, x_407); +x_416 = l_Lean_mkAppN(x_2, x_415); +lean_dec(x_415); +x_417 = lean_ctor_get(x_408, 0); +lean_inc(x_417); +x_418 = lean_ctor_get(x_408, 1); +lean_inc(x_418); +lean_dec(x_408); +lean_inc(x_416); +x_419 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_409, x_407, x_416); +x_420 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_420, 0, x_417); +lean_ctor_set(x_420, 1, x_418); +lean_ctor_set(x_420, 2, x_419); +x_421 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_416, x_5, x_420, x_7, x_8, x_9, x_10, x_406); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_421; +} +else +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_dec(x_3); lean_dec(x_2); +x_422 = lean_ctor_get(x_408, 0); +lean_inc(x_422); +x_423 = lean_ctor_get(x_408, 1); +lean_inc(x_423); +lean_dec(x_408); lean_inc(x_1); -x_461 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_457, x_7, x_8, x_9, x_10, x_455); +x_424 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_409, x_407, x_1); +x_425 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_425, 0, x_422); +lean_ctor_set(x_425, 1, x_423); +lean_ctor_set(x_425, 2, x_424); +lean_inc(x_1); +x_426 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_425, x_7, x_8, x_9, x_10, x_406); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_461; +return x_426; +} } else { -lean_object* x_462; lean_object* x_463; lean_object* x_464; -x_462 = lean_array_set(x_3, x_449, x_456); -x_463 = l_Lean_mkAppN(x_2, x_462); -lean_dec(x_462); -x_464 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_463, x_5, x_457, x_7, x_8, x_9, x_10, x_455); +lean_object* x_427; lean_object* x_428; +lean_dec(x_409); +lean_dec(x_407); +lean_dec(x_403); +lean_dec(x_3); +lean_dec(x_2); +x_427 = lean_ctor_get(x_410, 0); +lean_inc(x_427); +lean_dec(x_410); +x_428 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_427, x_5, x_408, x_7, x_8, x_9, x_10, x_406); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_464; +return x_428; } } else { -uint8_t x_465; -lean_dec(x_452); +uint8_t x_429; +lean_dec(x_403); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9204,217 +8765,125 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_465 = !lean_is_exclusive(x_453); -if (x_465 == 0) +x_429 = !lean_is_exclusive(x_404); +if (x_429 == 0) { +return x_404; +} +else +{ +lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_430 = lean_ctor_get(x_404, 0); +x_431 = lean_ctor_get(x_404, 1); +lean_inc(x_431); +lean_inc(x_430); +lean_dec(x_404); +x_432 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_432, 0, x_430); +lean_ctor_set(x_432, 1, x_431); +return x_432; +} +} +} +block_467: +{ +lean_object* x_435; +lean_dec(x_434); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_435 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_435) == 0) +{ +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; uint8_t x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_436 = lean_ctor_get(x_435, 0); +lean_inc(x_436); +x_437 = lean_ctor_get(x_435, 1); +lean_inc(x_437); +lean_dec(x_435); +x_438 = lean_ctor_get(x_436, 0); +lean_inc(x_438); +lean_dec(x_436); +x_439 = lean_array_get_size(x_3); +x_440 = lean_unsigned_to_nat(0u); +x_441 = lean_unsigned_to_nat(1u); +x_442 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_442, 0, x_440); +lean_ctor_set(x_442, 1, x_439); +lean_ctor_set(x_442, 2, x_441); +x_443 = 0; +x_444 = lean_box(x_443); +x_445 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_445, 0, x_3); +lean_ctor_set(x_445, 1, x_444); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_446 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_438, x_442, x_442, x_445, x_440, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_437); +lean_dec(x_442); +lean_dec(x_438); +if (lean_obj_tag(x_446) == 0) +{ +lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; +x_447 = lean_ctor_get(x_446, 0); +lean_inc(x_447); +x_448 = lean_ctor_get(x_447, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_448, 1); +lean_inc(x_449); +x_450 = lean_unbox(x_449); +lean_dec(x_449); +if (x_450 == 0) +{ +lean_object* x_451; lean_object* x_452; lean_object* x_453; +lean_dec(x_448); +lean_dec(x_2); +x_451 = lean_ctor_get(x_446, 1); +lean_inc(x_451); +lean_dec(x_446); +x_452 = lean_ctor_get(x_447, 1); +lean_inc(x_452); +lean_dec(x_447); +lean_inc(x_1); +x_453 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_452, x_7, x_8, x_9, x_10, x_451); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); return x_453; } else { -lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_466 = lean_ctor_get(x_453, 0); -x_467 = lean_ctor_get(x_453, 1); -lean_inc(x_467); -lean_inc(x_466); -lean_dec(x_453); -x_468 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_468, 0, x_466); -lean_ctor_set(x_468, 1, x_467); -return x_468; -} -} -} -else -{ -lean_object* x_469; lean_object* x_470; -x_469 = lean_array_fget(x_3, x_449); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_469); -x_470 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_469, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_470) == 0) -{ -lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; size_t x_475; size_t x_476; uint8_t x_477; -x_471 = lean_ctor_get(x_470, 0); -lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 1); -lean_inc(x_472); -lean_dec(x_470); -x_473 = lean_ctor_get(x_471, 0); -lean_inc(x_473); -x_474 = lean_ctor_get(x_471, 1); -lean_inc(x_474); -lean_dec(x_471); -x_475 = lean_ptr_addr(x_469); -lean_dec(x_469); -x_476 = lean_ptr_addr(x_473); -x_477 = lean_usize_dec_eq(x_475, x_476); -if (x_477 == 0) -{ -lean_object* x_478; -lean_dec(x_473); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_478 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_474, x_7, x_8, x_9, x_10, x_472); +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_454 = lean_ctor_get(x_446, 1); +lean_inc(x_454); +lean_dec(x_446); +x_455 = lean_ctor_get(x_447, 1); +lean_inc(x_455); +lean_dec(x_447); +x_456 = lean_ctor_get(x_448, 0); +lean_inc(x_456); +lean_dec(x_448); +x_457 = l_Lean_mkAppN(x_2, x_456); +lean_dec(x_456); +x_458 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_457, x_5, x_455, x_7, x_8, x_9, x_10, x_454); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_478; -} -else -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; -x_479 = lean_array_set(x_3, x_449, x_473); -x_480 = l_Lean_mkAppN(x_2, x_479); -lean_dec(x_479); -x_481 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_480, x_5, x_474, x_7, x_8, x_9, x_10, x_472); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_481; +return x_458; } } else { -uint8_t x_482; -lean_dec(x_469); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_482 = !lean_is_exclusive(x_470); -if (x_482 == 0) -{ -return x_470; -} -else -{ -lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_483 = lean_ctor_get(x_470, 0); -x_484 = lean_ctor_get(x_470, 1); -lean_inc(x_484); -lean_inc(x_483); -lean_dec(x_470); -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_483); -lean_ctor_set(x_485, 1, x_484); -return x_485; -} -} -} -} -} -block_441: -{ -lean_object* x_409; -lean_dec(x_408); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_409 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_409) == 0) -{ -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_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_410 = lean_ctor_get(x_409, 0); -lean_inc(x_410); -x_411 = lean_ctor_get(x_409, 1); -lean_inc(x_411); -lean_dec(x_409); -x_412 = lean_ctor_get(x_410, 0); -lean_inc(x_412); -lean_dec(x_410); -x_413 = lean_array_get_size(x_3); -x_414 = lean_unsigned_to_nat(0u); -x_415 = lean_unsigned_to_nat(1u); -x_416 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_416, 0, x_414); -lean_ctor_set(x_416, 1, x_413); -lean_ctor_set(x_416, 2, x_415); -x_417 = 0; -x_418 = lean_box(x_417); -x_419 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_419, 0, x_3); -lean_ctor_set(x_419, 1, x_418); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_2); -x_420 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_412, x_416, x_416, x_419, x_414, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_411); -lean_dec(x_416); -lean_dec(x_412); -if (lean_obj_tag(x_420) == 0) -{ -lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; -x_421 = lean_ctor_get(x_420, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_421, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_422, 1); -lean_inc(x_423); -x_424 = lean_unbox(x_423); -lean_dec(x_423); -if (x_424 == 0) -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; -lean_dec(x_422); -lean_dec(x_2); -x_425 = lean_ctor_get(x_420, 1); -lean_inc(x_425); -lean_dec(x_420); -x_426 = lean_ctor_get(x_421, 1); -lean_inc(x_426); -lean_dec(x_421); -lean_inc(x_1); -x_427 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_426, x_7, x_8, x_9, x_10, x_425); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_427; -} -else -{ -lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; -x_428 = lean_ctor_get(x_420, 1); -lean_inc(x_428); -lean_dec(x_420); -x_429 = lean_ctor_get(x_421, 1); -lean_inc(x_429); -lean_dec(x_421); -x_430 = lean_ctor_get(x_422, 0); -lean_inc(x_430); -lean_dec(x_422); -x_431 = l_Lean_mkAppN(x_2, x_430); -lean_dec(x_430); -x_432 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_431, x_5, x_429, x_7, x_8, x_9, x_10, x_428); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_432; -} -} -else -{ -uint8_t x_433; +uint8_t x_459; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9422,29 +8891,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_433 = !lean_is_exclusive(x_420); -if (x_433 == 0) +x_459 = !lean_is_exclusive(x_446); +if (x_459 == 0) { -return x_420; +return x_446; } else { -lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_434 = lean_ctor_get(x_420, 0); -x_435 = lean_ctor_get(x_420, 1); -lean_inc(x_435); -lean_inc(x_434); -lean_dec(x_420); -x_436 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_436, 0, x_434); -lean_ctor_set(x_436, 1, x_435); -return x_436; +lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_460 = lean_ctor_get(x_446, 0); +x_461 = lean_ctor_get(x_446, 1); +lean_inc(x_461); +lean_inc(x_460); +lean_dec(x_446); +x_462 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_462, 0, x_460); +lean_ctor_set(x_462, 1, x_461); +return x_462; } } } else { -uint8_t x_437; +uint8_t x_463; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9454,309 +8923,176 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_437 = !lean_is_exclusive(x_409); -if (x_437 == 0) +x_463 = !lean_is_exclusive(x_435); +if (x_463 == 0) { -return x_409; +return x_435; } else { -lean_object* x_438; lean_object* x_439; lean_object* x_440; -x_438 = lean_ctor_get(x_409, 0); -x_439 = lean_ctor_get(x_409, 1); -lean_inc(x_439); -lean_inc(x_438); -lean_dec(x_409); -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_438); -lean_ctor_set(x_440, 1, x_439); -return x_440; +lean_object* x_464; lean_object* x_465; lean_object* x_466; +x_464 = lean_ctor_get(x_435, 0); +x_465 = lean_ctor_get(x_435, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_435); +x_466 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_466, 0, x_464); +lean_ctor_set(x_466, 1, x_465); +return x_466; } } } } case 7: { -lean_object* x_486; lean_object* x_520; uint8_t x_521; +lean_object* x_480; lean_object* x_511; lean_object* x_545; uint8_t x_546; lean_dec(x_4); -x_520 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_521 = l_Lean_Expr_isConstOf(x_2, x_520); -if (x_521 == 0) +x_545 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_546 = l_Lean_Expr_isConstOf(x_2, x_545); +if (x_546 == 0) { -lean_object* x_522; -x_522 = lean_box(0); -x_486 = x_522; -goto block_519; +lean_object* x_547; +x_547 = lean_box(0); +x_511 = x_547; +goto block_544; } else { -lean_object* x_523; lean_object* x_524; uint8_t x_525; -x_523 = lean_array_get_size(x_3); -x_524 = lean_unsigned_to_nat(2u); -x_525 = lean_nat_dec_eq(x_523, x_524); -if (x_525 == 0) +lean_object* x_548; lean_object* x_549; uint8_t x_550; +x_548 = lean_array_get_size(x_3); +x_549 = lean_unsigned_to_nat(2u); +x_550 = lean_nat_dec_eq(x_548, x_549); +if (x_550 == 0) { -lean_object* x_526; -lean_dec(x_523); -x_526 = lean_box(0); -x_486 = x_526; -goto block_519; -} -else -{ -lean_object* x_527; uint8_t x_528; -x_527 = lean_unsigned_to_nat(0u); -x_528 = lean_nat_dec_lt(x_527, x_523); -lean_dec(x_523); -if (x_528 == 0) -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = l_Lean_instInhabitedExpr; -x_530 = l_outOfBounds___rarg(x_529); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_530); -x_531 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_530, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_531) == 0) -{ -lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; size_t x_536; size_t x_537; uint8_t x_538; -x_532 = lean_ctor_get(x_531, 0); -lean_inc(x_532); -x_533 = lean_ctor_get(x_531, 1); -lean_inc(x_533); -lean_dec(x_531); -x_534 = lean_ctor_get(x_532, 0); -lean_inc(x_534); -x_535 = lean_ctor_get(x_532, 1); -lean_inc(x_535); -lean_dec(x_532); -x_536 = lean_ptr_addr(x_530); -lean_dec(x_530); -x_537 = lean_ptr_addr(x_534); -x_538 = lean_usize_dec_eq(x_536, x_537); -if (x_538 == 0) -{ -lean_object* x_539; -lean_dec(x_534); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_539 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_535, x_7, x_8, x_9, x_10, x_533); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_539; -} -else -{ -lean_object* x_540; lean_object* x_541; lean_object* x_542; -x_540 = lean_array_set(x_3, x_527, x_534); -x_541 = l_Lean_mkAppN(x_2, x_540); -lean_dec(x_540); -x_542 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_541, x_5, x_535, x_7, x_8, x_9, x_10, x_533); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_542; -} -} -else -{ -uint8_t x_543; -lean_dec(x_530); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_543 = !lean_is_exclusive(x_531); -if (x_543 == 0) -{ -return x_531; -} -else -{ -lean_object* x_544; lean_object* x_545; lean_object* x_546; -x_544 = lean_ctor_get(x_531, 0); -x_545 = lean_ctor_get(x_531, 1); -lean_inc(x_545); -lean_inc(x_544); -lean_dec(x_531); -x_546 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_546, 0, x_544); -lean_ctor_set(x_546, 1, x_545); -return x_546; -} -} -} -else -{ -lean_object* x_547; lean_object* x_548; -x_547 = lean_array_fget(x_3, x_527); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_547); -x_548 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_547, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_548) == 0) -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; size_t x_553; size_t x_554; uint8_t x_555; -x_549 = lean_ctor_get(x_548, 0); -lean_inc(x_549); -x_550 = lean_ctor_get(x_548, 1); -lean_inc(x_550); +lean_object* x_551; lean_dec(x_548); -x_551 = lean_ctor_get(x_549, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_549, 1); -lean_inc(x_552); -lean_dec(x_549); -x_553 = lean_ptr_addr(x_547); -lean_dec(x_547); -x_554 = lean_ptr_addr(x_551); -x_555 = lean_usize_dec_eq(x_553, x_554); -if (x_555 == 0) +x_551 = lean_box(0); +x_511 = x_551; +goto block_544; +} +else +{ +lean_object* x_552; uint8_t x_553; +x_552 = lean_unsigned_to_nat(0u); +x_553 = lean_nat_dec_lt(x_552, x_548); +lean_dec(x_548); +if (x_553 == 0) +{ +lean_object* x_554; lean_object* x_555; +x_554 = l_Lean_instInhabitedExpr; +x_555 = l_outOfBounds___rarg(x_554); +x_480 = x_555; +goto block_510; +} +else { lean_object* x_556; -lean_dec(x_551); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_556 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_552, x_7, x_8, x_9, x_10, x_550); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_556; +x_556 = lean_array_fget(x_3, x_552); +x_480 = x_556; +goto block_510; } -else +} +} +block_510: { -lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_557 = lean_array_set(x_3, x_527, x_551); -x_558 = l_Lean_mkAppN(x_2, x_557); -lean_dec(x_557); -x_559 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_558, x_5, x_552, x_7, x_8, x_9, x_10, x_550); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_559; -} -} -else -{ -uint8_t x_560; -lean_dec(x_547); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_560 = !lean_is_exclusive(x_548); -if (x_560 == 0) -{ -return x_548; -} -else -{ -lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_561 = lean_ctor_get(x_548, 0); -x_562 = lean_ctor_get(x_548, 1); -lean_inc(x_562); -lean_inc(x_561); -lean_dec(x_548); -x_563 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_563, 0, x_561); -lean_ctor_set(x_563, 1, x_562); -return x_563; -} -} -} -} -} -block_519: -{ -lean_object* x_487; -lean_dec(x_486); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_487 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_487) == 0) -{ -lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; uint8_t x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_488 = lean_ctor_get(x_487, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_487, 1); -lean_inc(x_489); -lean_dec(x_487); -x_490 = lean_ctor_get(x_488, 0); -lean_inc(x_490); -lean_dec(x_488); -x_491 = lean_array_get_size(x_3); -x_492 = lean_unsigned_to_nat(0u); -x_493 = lean_unsigned_to_nat(1u); -x_494 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_494, 0, x_492); -lean_ctor_set(x_494, 1, x_491); -lean_ctor_set(x_494, 2, x_493); -x_495 = 0; -x_496 = lean_box(x_495); -x_497 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_497, 0, x_3); -lean_ctor_set(x_497, 1, x_496); +lean_object* x_481; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_2); -x_498 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_490, x_494, x_494, x_497, x_492, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_489); -lean_dec(x_494); -lean_dec(x_490); -if (lean_obj_tag(x_498) == 0) +lean_inc(x_480); +x_481 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_480, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_481) == 0) { -lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; -x_499 = lean_ctor_get(x_498, 0); -lean_inc(x_499); -x_500 = lean_ctor_get(x_499, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_500, 1); -lean_inc(x_501); -x_502 = lean_unbox(x_501); -lean_dec(x_501); -if (x_502 == 0) +lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; +x_482 = lean_ctor_get(x_481, 0); +lean_inc(x_482); +x_483 = lean_ctor_get(x_481, 1); +lean_inc(x_483); +lean_dec(x_481); +x_484 = lean_ctor_get(x_482, 0); +lean_inc(x_484); +x_485 = lean_ctor_get(x_482, 1); +lean_inc(x_485); +lean_dec(x_482); +x_486 = lean_ctor_get(x_485, 2); +lean_inc(x_486); +lean_inc(x_486); +x_487 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_486, x_484); +if (lean_obj_tag(x_487) == 0) { -lean_object* x_503; lean_object* x_504; lean_object* x_505; -lean_dec(x_500); +size_t x_488; size_t x_489; uint8_t x_490; +x_488 = lean_ptr_addr(x_480); +lean_dec(x_480); +x_489 = lean_ptr_addr(x_484); +x_490 = lean_usize_dec_eq(x_488, x_489); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_491 = lean_unsigned_to_nat(0u); +lean_inc(x_484); +x_492 = lean_array_set(x_3, x_491, x_484); +x_493 = l_Lean_mkAppN(x_2, x_492); +lean_dec(x_492); +x_494 = lean_ctor_get(x_485, 0); +lean_inc(x_494); +x_495 = lean_ctor_get(x_485, 1); +lean_inc(x_495); +lean_dec(x_485); +lean_inc(x_493); +x_496 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_486, x_484, x_493); +x_497 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_497, 0, x_494); +lean_ctor_set(x_497, 1, x_495); +lean_ctor_set(x_497, 2, x_496); +x_498 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_493, x_5, x_497, x_7, x_8, x_9, x_10, x_483); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_498; +} +else +{ +lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; +lean_dec(x_3); lean_dec(x_2); -x_503 = lean_ctor_get(x_498, 1); -lean_inc(x_503); -lean_dec(x_498); -x_504 = lean_ctor_get(x_499, 1); -lean_inc(x_504); -lean_dec(x_499); +x_499 = lean_ctor_get(x_485, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_485, 1); +lean_inc(x_500); +lean_dec(x_485); lean_inc(x_1); -x_505 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_504, x_7, x_8, x_9, x_10, x_503); +x_501 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_486, x_484, x_1); +x_502 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_502, 0, x_499); +lean_ctor_set(x_502, 1, x_500); +lean_ctor_set(x_502, 2, x_501); +lean_inc(x_1); +x_503 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_502, x_7, x_8, x_9, x_10, x_483); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_503; +} +} +else +{ +lean_object* x_504; lean_object* x_505; +lean_dec(x_486); +lean_dec(x_484); +lean_dec(x_480); +lean_dec(x_3); +lean_dec(x_2); +x_504 = lean_ctor_get(x_487, 0); +lean_inc(x_504); +lean_dec(x_487); +x_505 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_504, x_5, x_485, x_7, x_8, x_9, x_10, x_483); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9764,32 +9100,138 @@ lean_dec(x_7); lean_dec(x_5); return x_505; } +} else { -lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; -x_506 = lean_ctor_get(x_498, 1); -lean_inc(x_506); -lean_dec(x_498); -x_507 = lean_ctor_get(x_499, 1); -lean_inc(x_507); -lean_dec(x_499); -x_508 = lean_ctor_get(x_500, 0); -lean_inc(x_508); -lean_dec(x_500); -x_509 = l_Lean_mkAppN(x_2, x_508); -lean_dec(x_508); -x_510 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_509, x_5, x_507, x_7, x_8, x_9, x_10, x_506); +uint8_t x_506; +lean_dec(x_480); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_510; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_506 = !lean_is_exclusive(x_481); +if (x_506 == 0) +{ +return x_481; +} +else +{ +lean_object* x_507; lean_object* x_508; lean_object* x_509; +x_507 = lean_ctor_get(x_481, 0); +x_508 = lean_ctor_get(x_481, 1); +lean_inc(x_508); +lean_inc(x_507); +lean_dec(x_481); +x_509 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_509, 0, x_507); +lean_ctor_set(x_509, 1, x_508); +return x_509; +} +} +} +block_544: +{ +lean_object* x_512; +lean_dec(x_511); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_512 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_512) == 0) +{ +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; uint8_t x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_513 = lean_ctor_get(x_512, 0); +lean_inc(x_513); +x_514 = lean_ctor_get(x_512, 1); +lean_inc(x_514); +lean_dec(x_512); +x_515 = lean_ctor_get(x_513, 0); +lean_inc(x_515); +lean_dec(x_513); +x_516 = lean_array_get_size(x_3); +x_517 = lean_unsigned_to_nat(0u); +x_518 = lean_unsigned_to_nat(1u); +x_519 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_519, 0, x_517); +lean_ctor_set(x_519, 1, x_516); +lean_ctor_set(x_519, 2, x_518); +x_520 = 0; +x_521 = lean_box(x_520); +x_522 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_522, 0, x_3); +lean_ctor_set(x_522, 1, x_521); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_523 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_515, x_519, x_519, x_522, x_517, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_514); +lean_dec(x_519); +lean_dec(x_515); +if (lean_obj_tag(x_523) == 0) +{ +lean_object* x_524; lean_object* x_525; lean_object* x_526; uint8_t x_527; +x_524 = lean_ctor_get(x_523, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_524, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_525, 1); +lean_inc(x_526); +x_527 = lean_unbox(x_526); +lean_dec(x_526); +if (x_527 == 0) +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_dec(x_525); +lean_dec(x_2); +x_528 = lean_ctor_get(x_523, 1); +lean_inc(x_528); +lean_dec(x_523); +x_529 = lean_ctor_get(x_524, 1); +lean_inc(x_529); +lean_dec(x_524); +lean_inc(x_1); +x_530 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_529, x_7, x_8, x_9, x_10, x_528); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_530; +} +else +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; +x_531 = lean_ctor_get(x_523, 1); +lean_inc(x_531); +lean_dec(x_523); +x_532 = lean_ctor_get(x_524, 1); +lean_inc(x_532); +lean_dec(x_524); +x_533 = lean_ctor_get(x_525, 0); +lean_inc(x_533); +lean_dec(x_525); +x_534 = l_Lean_mkAppN(x_2, x_533); +lean_dec(x_533); +x_535 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_534, x_5, x_532, x_7, x_8, x_9, x_10, x_531); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_535; } } else { -uint8_t x_511; +uint8_t x_536; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9797,29 +9239,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_511 = !lean_is_exclusive(x_498); -if (x_511 == 0) +x_536 = !lean_is_exclusive(x_523); +if (x_536 == 0) { -return x_498; +return x_523; } else { -lean_object* x_512; lean_object* x_513; lean_object* x_514; -x_512 = lean_ctor_get(x_498, 0); -x_513 = lean_ctor_get(x_498, 1); -lean_inc(x_513); -lean_inc(x_512); -lean_dec(x_498); -x_514 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_514, 0, x_512); -lean_ctor_set(x_514, 1, x_513); -return x_514; +lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_537 = lean_ctor_get(x_523, 0); +x_538 = lean_ctor_get(x_523, 1); +lean_inc(x_538); +lean_inc(x_537); +lean_dec(x_523); +x_539 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_539, 0, x_537); +lean_ctor_set(x_539, 1, x_538); +return x_539; } } } else { -uint8_t x_515; +uint8_t x_540; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9829,342 +9271,315 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_515 = !lean_is_exclusive(x_487); -if (x_515 == 0) +x_540 = !lean_is_exclusive(x_512); +if (x_540 == 0) { -return x_487; +return x_512; } else { -lean_object* x_516; lean_object* x_517; lean_object* x_518; -x_516 = lean_ctor_get(x_487, 0); -x_517 = lean_ctor_get(x_487, 1); -lean_inc(x_517); -lean_inc(x_516); -lean_dec(x_487); -x_518 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_518, 0, x_516); -lean_ctor_set(x_518, 1, x_517); -return x_518; +lean_object* x_541; lean_object* x_542; lean_object* x_543; +x_541 = lean_ctor_get(x_512, 0); +x_542 = lean_ctor_get(x_512, 1); +lean_inc(x_542); +lean_inc(x_541); +lean_dec(x_512); +x_543 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_543, 0, x_541); +lean_ctor_set(x_543, 1, x_542); +return x_543; } } } } case 8: { -lean_object* x_564; lean_object* x_598; uint8_t x_599; +lean_object* x_557; lean_object* x_588; lean_object* x_622; uint8_t x_623; lean_dec(x_4); -x_598 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_599 = l_Lean_Expr_isConstOf(x_2, x_598); -if (x_599 == 0) +x_622 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_623 = l_Lean_Expr_isConstOf(x_2, x_622); +if (x_623 == 0) { -lean_object* x_600; -x_600 = lean_box(0); -x_564 = x_600; -goto block_597; +lean_object* x_624; +x_624 = lean_box(0); +x_588 = x_624; +goto block_621; } else { -lean_object* x_601; lean_object* x_602; uint8_t x_603; -x_601 = lean_array_get_size(x_3); -x_602 = lean_unsigned_to_nat(2u); -x_603 = lean_nat_dec_eq(x_601, x_602); -if (x_603 == 0) +lean_object* x_625; lean_object* x_626; uint8_t x_627; +x_625 = lean_array_get_size(x_3); +x_626 = lean_unsigned_to_nat(2u); +x_627 = lean_nat_dec_eq(x_625, x_626); +if (x_627 == 0) { -lean_object* x_604; -lean_dec(x_601); -x_604 = lean_box(0); -x_564 = x_604; -goto block_597; -} -else -{ -lean_object* x_605; uint8_t x_606; -x_605 = lean_unsigned_to_nat(0u); -x_606 = lean_nat_dec_lt(x_605, x_601); -lean_dec(x_601); -if (x_606 == 0) -{ -lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_607 = l_Lean_instInhabitedExpr; -x_608 = l_outOfBounds___rarg(x_607); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_608); -x_609 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_608, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_609) == 0) -{ -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; size_t x_614; size_t x_615; uint8_t x_616; -x_610 = lean_ctor_get(x_609, 0); -lean_inc(x_610); -x_611 = lean_ctor_get(x_609, 1); -lean_inc(x_611); -lean_dec(x_609); -x_612 = lean_ctor_get(x_610, 0); -lean_inc(x_612); -x_613 = lean_ctor_get(x_610, 1); -lean_inc(x_613); -lean_dec(x_610); -x_614 = lean_ptr_addr(x_608); -lean_dec(x_608); -x_615 = lean_ptr_addr(x_612); -x_616 = lean_usize_dec_eq(x_614, x_615); -if (x_616 == 0) -{ -lean_object* x_617; -lean_dec(x_612); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_617 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_613, x_7, x_8, x_9, x_10, x_611); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_617; -} -else -{ -lean_object* x_618; lean_object* x_619; lean_object* x_620; -x_618 = lean_array_set(x_3, x_605, x_612); -x_619 = l_Lean_mkAppN(x_2, x_618); -lean_dec(x_618); -x_620 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_619, x_5, x_613, x_7, x_8, x_9, x_10, x_611); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_620; -} -} -else -{ -uint8_t x_621; -lean_dec(x_608); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_621 = !lean_is_exclusive(x_609); -if (x_621 == 0) -{ -return x_609; -} -else -{ -lean_object* x_622; lean_object* x_623; lean_object* x_624; -x_622 = lean_ctor_get(x_609, 0); -x_623 = lean_ctor_get(x_609, 1); -lean_inc(x_623); -lean_inc(x_622); -lean_dec(x_609); -x_624 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_624, 0, x_622); -lean_ctor_set(x_624, 1, x_623); -return x_624; -} -} -} -else -{ -lean_object* x_625; lean_object* x_626; -x_625 = lean_array_fget(x_3, x_605); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_625); -x_626 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_625, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_626) == 0) -{ -lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; size_t x_631; size_t x_632; uint8_t x_633; -x_627 = lean_ctor_get(x_626, 0); -lean_inc(x_627); -x_628 = lean_ctor_get(x_626, 1); -lean_inc(x_628); -lean_dec(x_626); -x_629 = lean_ctor_get(x_627, 0); -lean_inc(x_629); -x_630 = lean_ctor_get(x_627, 1); -lean_inc(x_630); -lean_dec(x_627); -x_631 = lean_ptr_addr(x_625); +lean_object* x_628; lean_dec(x_625); -x_632 = lean_ptr_addr(x_629); -x_633 = lean_usize_dec_eq(x_631, x_632); -if (x_633 == 0) -{ -lean_object* x_634; -lean_dec(x_629); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_634 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_630, x_7, x_8, x_9, x_10, x_628); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_634; +x_628 = lean_box(0); +x_588 = x_628; +goto block_621; } else { -lean_object* x_635; lean_object* x_636; lean_object* x_637; -x_635 = lean_array_set(x_3, x_605, x_629); -x_636 = l_Lean_mkAppN(x_2, x_635); -lean_dec(x_635); -x_637 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_636, x_5, x_630, x_7, x_8, x_9, x_10, x_628); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_637; -} -} -else -{ -uint8_t x_638; +lean_object* x_629; uint8_t x_630; +x_629 = lean_unsigned_to_nat(0u); +x_630 = lean_nat_dec_lt(x_629, x_625); lean_dec(x_625); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_638 = !lean_is_exclusive(x_626); -if (x_638 == 0) +if (x_630 == 0) { -return x_626; +lean_object* x_631; lean_object* x_632; +x_631 = l_Lean_instInhabitedExpr; +x_632 = l_outOfBounds___rarg(x_631); +x_557 = x_632; +goto block_587; } else { -lean_object* x_639; lean_object* x_640; lean_object* x_641; -x_639 = lean_ctor_get(x_626, 0); -x_640 = lean_ctor_get(x_626, 1); -lean_inc(x_640); -lean_inc(x_639); -lean_dec(x_626); -x_641 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_641, 0, x_639); -lean_ctor_set(x_641, 1, x_640); -return x_641; +lean_object* x_633; +x_633 = lean_array_fget(x_3, x_629); +x_557 = x_633; +goto block_587; } } } -} -} -block_597: +block_587: { -lean_object* x_565; -lean_dec(x_564); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_565 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_565) == 0) -{ -lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; uint8_t x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_566 = lean_ctor_get(x_565, 0); -lean_inc(x_566); -x_567 = lean_ctor_get(x_565, 1); -lean_inc(x_567); -lean_dec(x_565); -x_568 = lean_ctor_get(x_566, 0); -lean_inc(x_568); -lean_dec(x_566); -x_569 = lean_array_get_size(x_3); -x_570 = lean_unsigned_to_nat(0u); -x_571 = lean_unsigned_to_nat(1u); -x_572 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_572, 0, x_570); -lean_ctor_set(x_572, 1, x_569); -lean_ctor_set(x_572, 2, x_571); -x_573 = 0; -x_574 = lean_box(x_573); -x_575 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_575, 0, x_3); -lean_ctor_set(x_575, 1, x_574); +lean_object* x_558; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_2); -x_576 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_568, x_572, x_572, x_575, x_570, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_567); -lean_dec(x_572); -lean_dec(x_568); -if (lean_obj_tag(x_576) == 0) +lean_inc(x_557); +x_558 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_557, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_558) == 0) { -lean_object* x_577; lean_object* x_578; lean_object* x_579; uint8_t x_580; -x_577 = lean_ctor_get(x_576, 0); +lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_559 = lean_ctor_get(x_558, 0); +lean_inc(x_559); +x_560 = lean_ctor_get(x_558, 1); +lean_inc(x_560); +lean_dec(x_558); +x_561 = lean_ctor_get(x_559, 0); +lean_inc(x_561); +x_562 = lean_ctor_get(x_559, 1); +lean_inc(x_562); +lean_dec(x_559); +x_563 = lean_ctor_get(x_562, 2); +lean_inc(x_563); +lean_inc(x_563); +x_564 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_563, x_561); +if (lean_obj_tag(x_564) == 0) +{ +size_t x_565; size_t x_566; uint8_t x_567; +x_565 = lean_ptr_addr(x_557); +lean_dec(x_557); +x_566 = lean_ptr_addr(x_561); +x_567 = lean_usize_dec_eq(x_565, x_566); +if (x_567 == 0) +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_568 = lean_unsigned_to_nat(0u); +lean_inc(x_561); +x_569 = lean_array_set(x_3, x_568, x_561); +x_570 = l_Lean_mkAppN(x_2, x_569); +lean_dec(x_569); +x_571 = lean_ctor_get(x_562, 0); +lean_inc(x_571); +x_572 = lean_ctor_get(x_562, 1); +lean_inc(x_572); +lean_dec(x_562); +lean_inc(x_570); +x_573 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_563, x_561, x_570); +x_574 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_574, 0, x_571); +lean_ctor_set(x_574, 1, x_572); +lean_ctor_set(x_574, 2, x_573); +x_575 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_570, x_5, x_574, x_7, x_8, x_9, x_10, x_560); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_575; +} +else +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +lean_dec(x_3); +lean_dec(x_2); +x_576 = lean_ctor_get(x_562, 0); +lean_inc(x_576); +x_577 = lean_ctor_get(x_562, 1); lean_inc(x_577); -x_578 = lean_ctor_get(x_577, 0); -lean_inc(x_578); -x_579 = lean_ctor_get(x_578, 1); -lean_inc(x_579); -x_580 = lean_unbox(x_579); -lean_dec(x_579); -if (x_580 == 0) -{ -lean_object* x_581; lean_object* x_582; lean_object* x_583; -lean_dec(x_578); -lean_dec(x_2); -x_581 = lean_ctor_get(x_576, 1); -lean_inc(x_581); -lean_dec(x_576); -x_582 = lean_ctor_get(x_577, 1); -lean_inc(x_582); -lean_dec(x_577); +lean_dec(x_562); lean_inc(x_1); -x_583 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_582, x_7, x_8, x_9, x_10, x_581); +x_578 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_563, x_561, x_1); +x_579 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_579, 0, x_576); +lean_ctor_set(x_579, 1, x_577); +lean_ctor_set(x_579, 2, x_578); +lean_inc(x_1); +x_580 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_579, x_7, x_8, x_9, x_10, x_560); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_583; +return x_580; +} } else { -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; -x_584 = lean_ctor_get(x_576, 1); -lean_inc(x_584); -lean_dec(x_576); -x_585 = lean_ctor_get(x_577, 1); +lean_object* x_581; lean_object* x_582; +lean_dec(x_563); +lean_dec(x_561); +lean_dec(x_557); +lean_dec(x_3); +lean_dec(x_2); +x_581 = lean_ctor_get(x_564, 0); +lean_inc(x_581); +lean_dec(x_564); +x_582 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_581, x_5, x_562, x_7, x_8, x_9, x_10, x_560); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_582; +} +} +else +{ +uint8_t x_583; +lean_dec(x_557); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_583 = !lean_is_exclusive(x_558); +if (x_583 == 0) +{ +return x_558; +} +else +{ +lean_object* x_584; lean_object* x_585; lean_object* x_586; +x_584 = lean_ctor_get(x_558, 0); +x_585 = lean_ctor_get(x_558, 1); lean_inc(x_585); -lean_dec(x_577); -x_586 = lean_ctor_get(x_578, 0); -lean_inc(x_586); -lean_dec(x_578); -x_587 = l_Lean_mkAppN(x_2, x_586); -lean_dec(x_586); -x_588 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_587, x_5, x_585, x_7, x_8, x_9, x_10, x_584); +lean_inc(x_584); +lean_dec(x_558); +x_586 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_586, 0, x_584); +lean_ctor_set(x_586, 1, x_585); +return x_586; +} +} +} +block_621: +{ +lean_object* x_589; +lean_dec(x_588); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_589 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_589) == 0) +{ +lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; uint8_t x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +x_590 = lean_ctor_get(x_589, 0); +lean_inc(x_590); +x_591 = lean_ctor_get(x_589, 1); +lean_inc(x_591); +lean_dec(x_589); +x_592 = lean_ctor_get(x_590, 0); +lean_inc(x_592); +lean_dec(x_590); +x_593 = lean_array_get_size(x_3); +x_594 = lean_unsigned_to_nat(0u); +x_595 = lean_unsigned_to_nat(1u); +x_596 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_596, 0, x_594); +lean_ctor_set(x_596, 1, x_593); +lean_ctor_set(x_596, 2, x_595); +x_597 = 0; +x_598 = lean_box(x_597); +x_599 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_599, 0, x_3); +lean_ctor_set(x_599, 1, x_598); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_600 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_592, x_596, x_596, x_599, x_594, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_591); +lean_dec(x_596); +lean_dec(x_592); +if (lean_obj_tag(x_600) == 0) +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; uint8_t x_604; +x_601 = lean_ctor_get(x_600, 0); +lean_inc(x_601); +x_602 = lean_ctor_get(x_601, 0); +lean_inc(x_602); +x_603 = lean_ctor_get(x_602, 1); +lean_inc(x_603); +x_604 = lean_unbox(x_603); +lean_dec(x_603); +if (x_604 == 0) +{ +lean_object* x_605; lean_object* x_606; lean_object* x_607; +lean_dec(x_602); +lean_dec(x_2); +x_605 = lean_ctor_get(x_600, 1); +lean_inc(x_605); +lean_dec(x_600); +x_606 = lean_ctor_get(x_601, 1); +lean_inc(x_606); +lean_dec(x_601); +lean_inc(x_1); +x_607 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_606, x_7, x_8, x_9, x_10, x_605); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_588; +return x_607; +} +else +{ +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_608 = lean_ctor_get(x_600, 1); +lean_inc(x_608); +lean_dec(x_600); +x_609 = lean_ctor_get(x_601, 1); +lean_inc(x_609); +lean_dec(x_601); +x_610 = lean_ctor_get(x_602, 0); +lean_inc(x_610); +lean_dec(x_602); +x_611 = l_Lean_mkAppN(x_2, x_610); +lean_dec(x_610); +x_612 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_611, x_5, x_609, x_7, x_8, x_9, x_10, x_608); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_612; } } else { -uint8_t x_589; +uint8_t x_613; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10172,29 +9587,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_589 = !lean_is_exclusive(x_576); -if (x_589 == 0) +x_613 = !lean_is_exclusive(x_600); +if (x_613 == 0) { -return x_576; +return x_600; } else { -lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_590 = lean_ctor_get(x_576, 0); -x_591 = lean_ctor_get(x_576, 1); -lean_inc(x_591); -lean_inc(x_590); -lean_dec(x_576); -x_592 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_592, 0, x_590); -lean_ctor_set(x_592, 1, x_591); -return x_592; +lean_object* x_614; lean_object* x_615; lean_object* x_616; +x_614 = lean_ctor_get(x_600, 0); +x_615 = lean_ctor_get(x_600, 1); +lean_inc(x_615); +lean_inc(x_614); +lean_dec(x_600); +x_616 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_616, 0, x_614); +lean_ctor_set(x_616, 1, x_615); +return x_616; } } } else { -uint8_t x_593; +uint8_t x_617; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10204,372 +9619,345 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_593 = !lean_is_exclusive(x_565); -if (x_593 == 0) +x_617 = !lean_is_exclusive(x_589); +if (x_617 == 0) { -return x_565; +return x_589; } else { -lean_object* x_594; lean_object* x_595; lean_object* x_596; -x_594 = lean_ctor_get(x_565, 0); -x_595 = lean_ctor_get(x_565, 1); -lean_inc(x_595); -lean_inc(x_594); -lean_dec(x_565); -x_596 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_596, 0, x_594); -lean_ctor_set(x_596, 1, x_595); -return x_596; +lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_618 = lean_ctor_get(x_589, 0); +x_619 = lean_ctor_get(x_589, 1); +lean_inc(x_619); +lean_inc(x_618); +lean_dec(x_589); +x_620 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_620, 0, x_618); +lean_ctor_set(x_620, 1, x_619); +return x_620; } } } } case 9: { -lean_object* x_642; lean_object* x_676; uint8_t x_677; +lean_object* x_634; lean_object* x_665; lean_object* x_699; uint8_t x_700; lean_dec(x_4); -x_676 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_677 = l_Lean_Expr_isConstOf(x_2, x_676); -if (x_677 == 0) +x_699 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_700 = l_Lean_Expr_isConstOf(x_2, x_699); +if (x_700 == 0) { -lean_object* x_678; -x_678 = lean_box(0); -x_642 = x_678; -goto block_675; +lean_object* x_701; +x_701 = lean_box(0); +x_665 = x_701; +goto block_698; } else { -lean_object* x_679; lean_object* x_680; uint8_t x_681; -x_679 = lean_array_get_size(x_3); -x_680 = lean_unsigned_to_nat(2u); -x_681 = lean_nat_dec_eq(x_679, x_680); +lean_object* x_702; lean_object* x_703; uint8_t x_704; +x_702 = lean_array_get_size(x_3); +x_703 = lean_unsigned_to_nat(2u); +x_704 = lean_nat_dec_eq(x_702, x_703); +if (x_704 == 0) +{ +lean_object* x_705; +lean_dec(x_702); +x_705 = lean_box(0); +x_665 = x_705; +goto block_698; +} +else +{ +lean_object* x_706; uint8_t x_707; +x_706 = lean_unsigned_to_nat(0u); +x_707 = lean_nat_dec_lt(x_706, x_702); +lean_dec(x_702); +if (x_707 == 0) +{ +lean_object* x_708; lean_object* x_709; +x_708 = l_Lean_instInhabitedExpr; +x_709 = l_outOfBounds___rarg(x_708); +x_634 = x_709; +goto block_664; +} +else +{ +lean_object* x_710; +x_710 = lean_array_fget(x_3, x_706); +x_634 = x_710; +goto block_664; +} +} +} +block_664: +{ +lean_object* x_635; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_634); +x_635 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_634, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_635) == 0) +{ +lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; +x_636 = lean_ctor_get(x_635, 0); +lean_inc(x_636); +x_637 = lean_ctor_get(x_635, 1); +lean_inc(x_637); +lean_dec(x_635); +x_638 = lean_ctor_get(x_636, 0); +lean_inc(x_638); +x_639 = lean_ctor_get(x_636, 1); +lean_inc(x_639); +lean_dec(x_636); +x_640 = lean_ctor_get(x_639, 2); +lean_inc(x_640); +lean_inc(x_640); +x_641 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_640, x_638); +if (lean_obj_tag(x_641) == 0) +{ +size_t x_642; size_t x_643; uint8_t x_644; +x_642 = lean_ptr_addr(x_634); +lean_dec(x_634); +x_643 = lean_ptr_addr(x_638); +x_644 = lean_usize_dec_eq(x_642, x_643); +if (x_644 == 0) +{ +lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; +x_645 = lean_unsigned_to_nat(0u); +lean_inc(x_638); +x_646 = lean_array_set(x_3, x_645, x_638); +x_647 = l_Lean_mkAppN(x_2, x_646); +lean_dec(x_646); +x_648 = lean_ctor_get(x_639, 0); +lean_inc(x_648); +x_649 = lean_ctor_get(x_639, 1); +lean_inc(x_649); +lean_dec(x_639); +lean_inc(x_647); +x_650 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_640, x_638, x_647); +x_651 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_651, 0, x_648); +lean_ctor_set(x_651, 1, x_649); +lean_ctor_set(x_651, 2, x_650); +x_652 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_647, x_5, x_651, x_7, x_8, x_9, x_10, x_637); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +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_dec(x_3); +lean_dec(x_2); +x_653 = lean_ctor_get(x_639, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_639, 1); +lean_inc(x_654); +lean_dec(x_639); +lean_inc(x_1); +x_655 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_640, x_638, x_1); +x_656 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_656, 0, x_653); +lean_ctor_set(x_656, 1, x_654); +lean_ctor_set(x_656, 2, x_655); +lean_inc(x_1); +x_657 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_656, x_7, x_8, x_9, x_10, x_637); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_657; +} +} +else +{ +lean_object* x_658; lean_object* x_659; +lean_dec(x_640); +lean_dec(x_638); +lean_dec(x_634); +lean_dec(x_3); +lean_dec(x_2); +x_658 = lean_ctor_get(x_641, 0); +lean_inc(x_658); +lean_dec(x_641); +x_659 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_658, x_5, x_639, x_7, x_8, x_9, x_10, x_637); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_659; +} +} +else +{ +uint8_t x_660; +lean_dec(x_634); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_660 = !lean_is_exclusive(x_635); +if (x_660 == 0) +{ +return x_635; +} +else +{ +lean_object* x_661; lean_object* x_662; lean_object* x_663; +x_661 = lean_ctor_get(x_635, 0); +x_662 = lean_ctor_get(x_635, 1); +lean_inc(x_662); +lean_inc(x_661); +lean_dec(x_635); +x_663 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_663, 0, x_661); +lean_ctor_set(x_663, 1, x_662); +return x_663; +} +} +} +block_698: +{ +lean_object* x_666; +lean_dec(x_665); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_666 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_666) == 0) +{ +lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; uint8_t x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; +x_667 = lean_ctor_get(x_666, 0); +lean_inc(x_667); +x_668 = lean_ctor_get(x_666, 1); +lean_inc(x_668); +lean_dec(x_666); +x_669 = lean_ctor_get(x_667, 0); +lean_inc(x_669); +lean_dec(x_667); +x_670 = lean_array_get_size(x_3); +x_671 = lean_unsigned_to_nat(0u); +x_672 = lean_unsigned_to_nat(1u); +x_673 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_673, 0, x_671); +lean_ctor_set(x_673, 1, x_670); +lean_ctor_set(x_673, 2, x_672); +x_674 = 0; +x_675 = lean_box(x_674); +x_676 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_676, 0, x_3); +lean_ctor_set(x_676, 1, x_675); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_677 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_669, x_673, x_673, x_676, x_671, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_668); +lean_dec(x_673); +lean_dec(x_669); +if (lean_obj_tag(x_677) == 0) +{ +lean_object* x_678; lean_object* x_679; lean_object* x_680; uint8_t x_681; +x_678 = lean_ctor_get(x_677, 0); +lean_inc(x_678); +x_679 = lean_ctor_get(x_678, 0); +lean_inc(x_679); +x_680 = lean_ctor_get(x_679, 1); +lean_inc(x_680); +x_681 = lean_unbox(x_680); +lean_dec(x_680); if (x_681 == 0) { -lean_object* x_682; +lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_dec(x_679); -x_682 = lean_box(0); -x_642 = x_682; -goto block_675; +lean_dec(x_2); +x_682 = lean_ctor_get(x_677, 1); +lean_inc(x_682); +lean_dec(x_677); +x_683 = lean_ctor_get(x_678, 1); +lean_inc(x_683); +lean_dec(x_678); +lean_inc(x_1); +x_684 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_683, x_7, x_8, x_9, x_10, x_682); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_684; } else { -lean_object* x_683; uint8_t x_684; -x_683 = lean_unsigned_to_nat(0u); -x_684 = lean_nat_dec_lt(x_683, x_679); -lean_dec(x_679); -if (x_684 == 0) -{ -lean_object* x_685; lean_object* x_686; lean_object* x_687; -x_685 = l_Lean_instInhabitedExpr; -x_686 = l_outOfBounds___rarg(x_685); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); +lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; +x_685 = lean_ctor_get(x_677, 1); +lean_inc(x_685); +lean_dec(x_677); +x_686 = lean_ctor_get(x_678, 1); lean_inc(x_686); -x_687 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_686, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_687) == 0) -{ -lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; size_t x_692; size_t x_693; uint8_t x_694; -x_688 = lean_ctor_get(x_687, 0); -lean_inc(x_688); -x_689 = lean_ctor_get(x_687, 1); -lean_inc(x_689); +lean_dec(x_678); +x_687 = lean_ctor_get(x_679, 0); +lean_inc(x_687); +lean_dec(x_679); +x_688 = l_Lean_mkAppN(x_2, x_687); lean_dec(x_687); -x_690 = lean_ctor_get(x_688, 0); -lean_inc(x_690); -x_691 = lean_ctor_get(x_688, 1); +x_689 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_688, x_5, x_686, x_7, x_8, x_9, x_10, x_685); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_689; +} +} +else +{ +uint8_t x_690; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_690 = !lean_is_exclusive(x_677); +if (x_690 == 0) +{ +return x_677; +} +else +{ +lean_object* x_691; lean_object* x_692; lean_object* x_693; +x_691 = lean_ctor_get(x_677, 0); +x_692 = lean_ctor_get(x_677, 1); +lean_inc(x_692); lean_inc(x_691); -lean_dec(x_688); -x_692 = lean_ptr_addr(x_686); -lean_dec(x_686); -x_693 = lean_ptr_addr(x_690); -x_694 = lean_usize_dec_eq(x_692, x_693); -if (x_694 == 0) -{ -lean_object* x_695; -lean_dec(x_690); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_695 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_691, x_7, x_8, x_9, x_10, x_689); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_695; -} -else -{ -lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_696 = lean_array_set(x_3, x_683, x_690); -x_697 = l_Lean_mkAppN(x_2, x_696); -lean_dec(x_696); -x_698 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_697, x_5, x_691, x_7, x_8, x_9, x_10, x_689); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_698; -} -} -else -{ -uint8_t x_699; -lean_dec(x_686); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_699 = !lean_is_exclusive(x_687); -if (x_699 == 0) -{ -return x_687; -} -else -{ -lean_object* x_700; lean_object* x_701; lean_object* x_702; -x_700 = lean_ctor_get(x_687, 0); -x_701 = lean_ctor_get(x_687, 1); -lean_inc(x_701); -lean_inc(x_700); -lean_dec(x_687); -x_702 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_702, 0, x_700); -lean_ctor_set(x_702, 1, x_701); -return x_702; +lean_dec(x_677); +x_693 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_693, 0, x_691); +lean_ctor_set(x_693, 1, x_692); +return x_693; } } } else { -lean_object* x_703; lean_object* x_704; -x_703 = lean_array_fget(x_3, x_683); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_703); -x_704 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_703, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_704) == 0) -{ -lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; size_t x_709; size_t x_710; uint8_t x_711; -x_705 = lean_ctor_get(x_704, 0); -lean_inc(x_705); -x_706 = lean_ctor_get(x_704, 1); -lean_inc(x_706); -lean_dec(x_704); -x_707 = lean_ctor_get(x_705, 0); -lean_inc(x_707); -x_708 = lean_ctor_get(x_705, 1); -lean_inc(x_708); -lean_dec(x_705); -x_709 = lean_ptr_addr(x_703); -lean_dec(x_703); -x_710 = lean_ptr_addr(x_707); -x_711 = lean_usize_dec_eq(x_709, x_710); -if (x_711 == 0) -{ -lean_object* x_712; -lean_dec(x_707); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_712 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_708, x_7, x_8, x_9, x_10, x_706); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_712; -} -else -{ -lean_object* x_713; lean_object* x_714; lean_object* x_715; -x_713 = lean_array_set(x_3, x_683, x_707); -x_714 = l_Lean_mkAppN(x_2, x_713); -lean_dec(x_713); -x_715 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_714, x_5, x_708, x_7, x_8, x_9, x_10, x_706); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_715; -} -} -else -{ -uint8_t x_716; -lean_dec(x_703); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_716 = !lean_is_exclusive(x_704); -if (x_716 == 0) -{ -return x_704; -} -else -{ -lean_object* x_717; lean_object* x_718; lean_object* x_719; -x_717 = lean_ctor_get(x_704, 0); -x_718 = lean_ctor_get(x_704, 1); -lean_inc(x_718); -lean_inc(x_717); -lean_dec(x_704); -x_719 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_719, 0, x_717); -lean_ctor_set(x_719, 1, x_718); -return x_719; -} -} -} -} -} -block_675: -{ -lean_object* x_643; -lean_dec(x_642); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_643 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_643) == 0) -{ -lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; uint8_t x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_644 = lean_ctor_get(x_643, 0); -lean_inc(x_644); -x_645 = lean_ctor_get(x_643, 1); -lean_inc(x_645); -lean_dec(x_643); -x_646 = lean_ctor_get(x_644, 0); -lean_inc(x_646); -lean_dec(x_644); -x_647 = lean_array_get_size(x_3); -x_648 = lean_unsigned_to_nat(0u); -x_649 = lean_unsigned_to_nat(1u); -x_650 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_650, 0, x_648); -lean_ctor_set(x_650, 1, x_647); -lean_ctor_set(x_650, 2, x_649); -x_651 = 0; -x_652 = lean_box(x_651); -x_653 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_653, 0, x_3); -lean_ctor_set(x_653, 1, x_652); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_2); -x_654 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_646, x_650, x_650, x_653, x_648, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_645); -lean_dec(x_650); -lean_dec(x_646); -if (lean_obj_tag(x_654) == 0) -{ -lean_object* x_655; lean_object* x_656; lean_object* x_657; uint8_t x_658; -x_655 = lean_ctor_get(x_654, 0); -lean_inc(x_655); -x_656 = lean_ctor_get(x_655, 0); -lean_inc(x_656); -x_657 = lean_ctor_get(x_656, 1); -lean_inc(x_657); -x_658 = lean_unbox(x_657); -lean_dec(x_657); -if (x_658 == 0) -{ -lean_object* x_659; lean_object* x_660; lean_object* x_661; -lean_dec(x_656); -lean_dec(x_2); -x_659 = lean_ctor_get(x_654, 1); -lean_inc(x_659); -lean_dec(x_654); -x_660 = lean_ctor_get(x_655, 1); -lean_inc(x_660); -lean_dec(x_655); -lean_inc(x_1); -x_661 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_660, x_7, x_8, x_9, x_10, x_659); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_661; -} -else -{ -lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_662 = lean_ctor_get(x_654, 1); -lean_inc(x_662); -lean_dec(x_654); -x_663 = lean_ctor_get(x_655, 1); -lean_inc(x_663); -lean_dec(x_655); -x_664 = lean_ctor_get(x_656, 0); -lean_inc(x_664); -lean_dec(x_656); -x_665 = l_Lean_mkAppN(x_2, x_664); -lean_dec(x_664); -x_666 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_665, x_5, x_663, x_7, x_8, x_9, x_10, x_662); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_666; -} -} -else -{ -uint8_t x_667; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_667 = !lean_is_exclusive(x_654); -if (x_667 == 0) -{ -return x_654; -} -else -{ -lean_object* x_668; lean_object* x_669; lean_object* x_670; -x_668 = lean_ctor_get(x_654, 0); -x_669 = lean_ctor_get(x_654, 1); -lean_inc(x_669); -lean_inc(x_668); -lean_dec(x_654); -x_670 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_670, 0, x_668); -lean_ctor_set(x_670, 1, x_669); -return x_670; -} -} -} -else -{ -uint8_t x_671; +uint8_t x_694; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10579,342 +9967,315 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_671 = !lean_is_exclusive(x_643); -if (x_671 == 0) +x_694 = !lean_is_exclusive(x_666); +if (x_694 == 0) { -return x_643; +return x_666; } else { -lean_object* x_672; lean_object* x_673; lean_object* x_674; -x_672 = lean_ctor_get(x_643, 0); -x_673 = lean_ctor_get(x_643, 1); -lean_inc(x_673); -lean_inc(x_672); -lean_dec(x_643); -x_674 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_674, 0, x_672); -lean_ctor_set(x_674, 1, x_673); -return x_674; +lean_object* x_695; lean_object* x_696; lean_object* x_697; +x_695 = lean_ctor_get(x_666, 0); +x_696 = lean_ctor_get(x_666, 1); +lean_inc(x_696); +lean_inc(x_695); +lean_dec(x_666); +x_697 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_697, 0, x_695); +lean_ctor_set(x_697, 1, x_696); +return x_697; } } } } case 10: { -lean_object* x_720; lean_object* x_754; uint8_t x_755; +lean_object* x_711; lean_object* x_742; lean_object* x_776; uint8_t x_777; lean_dec(x_4); -x_754 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_755 = l_Lean_Expr_isConstOf(x_2, x_754); -if (x_755 == 0) -{ -lean_object* x_756; -x_756 = lean_box(0); -x_720 = x_756; -goto block_753; -} -else -{ -lean_object* x_757; lean_object* x_758; uint8_t x_759; -x_757 = lean_array_get_size(x_3); -x_758 = lean_unsigned_to_nat(2u); -x_759 = lean_nat_dec_eq(x_757, x_758); -if (x_759 == 0) -{ -lean_object* x_760; -lean_dec(x_757); -x_760 = lean_box(0); -x_720 = x_760; -goto block_753; -} -else -{ -lean_object* x_761; uint8_t x_762; -x_761 = lean_unsigned_to_nat(0u); -x_762 = lean_nat_dec_lt(x_761, x_757); -lean_dec(x_757); -if (x_762 == 0) -{ -lean_object* x_763; lean_object* x_764; lean_object* x_765; -x_763 = l_Lean_instInhabitedExpr; -x_764 = l_outOfBounds___rarg(x_763); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_764); -x_765 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_764, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_765) == 0) -{ -lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; size_t x_770; size_t x_771; uint8_t x_772; -x_766 = lean_ctor_get(x_765, 0); -lean_inc(x_766); -x_767 = lean_ctor_get(x_765, 1); -lean_inc(x_767); -lean_dec(x_765); -x_768 = lean_ctor_get(x_766, 0); -lean_inc(x_768); -x_769 = lean_ctor_get(x_766, 1); -lean_inc(x_769); -lean_dec(x_766); -x_770 = lean_ptr_addr(x_764); -lean_dec(x_764); -x_771 = lean_ptr_addr(x_768); -x_772 = lean_usize_dec_eq(x_770, x_771); -if (x_772 == 0) -{ -lean_object* x_773; -lean_dec(x_768); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_773 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_769, x_7, x_8, x_9, x_10, x_767); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_773; -} -else -{ -lean_object* x_774; lean_object* x_775; lean_object* x_776; -x_774 = lean_array_set(x_3, x_761, x_768); -x_775 = l_Lean_mkAppN(x_2, x_774); -lean_dec(x_774); -x_776 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_775, x_5, x_769, x_7, x_8, x_9, x_10, x_767); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_776; -} -} -else -{ -uint8_t x_777; -lean_dec(x_764); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_777 = !lean_is_exclusive(x_765); +x_776 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_777 = l_Lean_Expr_isConstOf(x_2, x_776); if (x_777 == 0) { -return x_765; +lean_object* x_778; +x_778 = lean_box(0); +x_742 = x_778; +goto block_775; } else { -lean_object* x_778; lean_object* x_779; lean_object* x_780; -x_778 = lean_ctor_get(x_765, 0); -x_779 = lean_ctor_get(x_765, 1); -lean_inc(x_779); -lean_inc(x_778); -lean_dec(x_765); -x_780 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_780, 0, x_778); -lean_ctor_set(x_780, 1, x_779); -return x_780; -} -} +lean_object* x_779; lean_object* x_780; uint8_t x_781; +x_779 = lean_array_get_size(x_3); +x_780 = lean_unsigned_to_nat(2u); +x_781 = lean_nat_dec_eq(x_779, x_780); +if (x_781 == 0) +{ +lean_object* x_782; +lean_dec(x_779); +x_782 = lean_box(0); +x_742 = x_782; +goto block_775; } else { -lean_object* x_781; lean_object* x_782; -x_781 = lean_array_fget(x_3, x_761); +lean_object* x_783; uint8_t x_784; +x_783 = lean_unsigned_to_nat(0u); +x_784 = lean_nat_dec_lt(x_783, x_779); +lean_dec(x_779); +if (x_784 == 0) +{ +lean_object* x_785; lean_object* x_786; +x_785 = l_Lean_instInhabitedExpr; +x_786 = l_outOfBounds___rarg(x_785); +x_711 = x_786; +goto block_741; +} +else +{ +lean_object* x_787; +x_787 = lean_array_fget(x_3, x_783); +x_711 = x_787; +goto block_741; +} +} +} +block_741: +{ +lean_object* x_712; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_781); -x_782 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_781, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_782) == 0) +lean_inc(x_711); +x_712 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_711, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_712) == 0) { -lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; size_t x_787; size_t x_788; uint8_t x_789; -x_783 = lean_ctor_get(x_782, 0); -lean_inc(x_783); -x_784 = lean_ctor_get(x_782, 1); -lean_inc(x_784); -lean_dec(x_782); -x_785 = lean_ctor_get(x_783, 0); -lean_inc(x_785); -x_786 = lean_ctor_get(x_783, 1); -lean_inc(x_786); -lean_dec(x_783); -x_787 = lean_ptr_addr(x_781); -lean_dec(x_781); -x_788 = lean_ptr_addr(x_785); -x_789 = lean_usize_dec_eq(x_787, x_788); -if (x_789 == 0) +lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +x_713 = lean_ctor_get(x_712, 0); +lean_inc(x_713); +x_714 = lean_ctor_get(x_712, 1); +lean_inc(x_714); +lean_dec(x_712); +x_715 = lean_ctor_get(x_713, 0); +lean_inc(x_715); +x_716 = lean_ctor_get(x_713, 1); +lean_inc(x_716); +lean_dec(x_713); +x_717 = lean_ctor_get(x_716, 2); +lean_inc(x_717); +lean_inc(x_717); +x_718 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_717, x_715); +if (lean_obj_tag(x_718) == 0) { -lean_object* x_790; -lean_dec(x_785); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_790 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_786, x_7, x_8, x_9, x_10, x_784); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_790; -} -else +size_t x_719; size_t x_720; uint8_t x_721; +x_719 = lean_ptr_addr(x_711); +lean_dec(x_711); +x_720 = lean_ptr_addr(x_715); +x_721 = lean_usize_dec_eq(x_719, x_720); +if (x_721 == 0) { -lean_object* x_791; lean_object* x_792; lean_object* x_793; -x_791 = lean_array_set(x_3, x_761, x_785); -x_792 = l_Lean_mkAppN(x_2, x_791); -lean_dec(x_791); -x_793 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_792, x_5, x_786, x_7, x_8, x_9, x_10, x_784); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_793; -} -} -else -{ -uint8_t x_794; -lean_dec(x_781); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_794 = !lean_is_exclusive(x_782); -if (x_794 == 0) -{ -return x_782; -} -else -{ -lean_object* x_795; lean_object* x_796; lean_object* x_797; -x_795 = lean_ctor_get(x_782, 0); -x_796 = lean_ctor_get(x_782, 1); -lean_inc(x_796); -lean_inc(x_795); -lean_dec(x_782); -x_797 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_797, 0, x_795); -lean_ctor_set(x_797, 1, x_796); -return x_797; -} -} -} -} -} -block_753: -{ -lean_object* x_721; -lean_dec(x_720); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_721 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_721) == 0) -{ -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; uint8_t x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; -x_722 = lean_ctor_get(x_721, 0); -lean_inc(x_722); -x_723 = lean_ctor_get(x_721, 1); -lean_inc(x_723); -lean_dec(x_721); -x_724 = lean_ctor_get(x_722, 0); +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; +x_722 = lean_unsigned_to_nat(0u); +lean_inc(x_715); +x_723 = lean_array_set(x_3, x_722, x_715); +x_724 = l_Lean_mkAppN(x_2, x_723); +lean_dec(x_723); +x_725 = lean_ctor_get(x_716, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_716, 1); +lean_inc(x_726); +lean_dec(x_716); lean_inc(x_724); -lean_dec(x_722); -x_725 = lean_array_get_size(x_3); -x_726 = lean_unsigned_to_nat(0u); -x_727 = lean_unsigned_to_nat(1u); +x_727 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_717, x_715, x_724); x_728 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_728, 0, x_726); -lean_ctor_set(x_728, 1, x_725); +lean_ctor_set(x_728, 0, x_725); +lean_ctor_set(x_728, 1, x_726); lean_ctor_set(x_728, 2, x_727); -x_729 = 0; -x_730 = lean_box(x_729); -x_731 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_731, 0, x_3); -lean_ctor_set(x_731, 1, x_730); +x_729 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_724, x_5, x_728, x_7, x_8, x_9, x_10, x_714); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_729; +} +else +{ +lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; +lean_dec(x_3); +lean_dec(x_2); +x_730 = lean_ctor_get(x_716, 0); +lean_inc(x_730); +x_731 = lean_ctor_get(x_716, 1); +lean_inc(x_731); +lean_dec(x_716); +lean_inc(x_1); +x_732 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_717, x_715, x_1); +x_733 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_733, 0, x_730); +lean_ctor_set(x_733, 1, x_731); +lean_ctor_set(x_733, 2, x_732); +lean_inc(x_1); +x_734 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_733, x_7, x_8, x_9, x_10, x_714); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_734; +} +} +else +{ +lean_object* x_735; lean_object* x_736; +lean_dec(x_717); +lean_dec(x_715); +lean_dec(x_711); +lean_dec(x_3); +lean_dec(x_2); +x_735 = lean_ctor_get(x_718, 0); +lean_inc(x_735); +lean_dec(x_718); +x_736 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_735, x_5, x_716, x_7, x_8, x_9, x_10, x_714); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_736; +} +} +else +{ +uint8_t x_737; +lean_dec(x_711); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_737 = !lean_is_exclusive(x_712); +if (x_737 == 0) +{ +return x_712; +} +else +{ +lean_object* x_738; lean_object* x_739; lean_object* x_740; +x_738 = lean_ctor_get(x_712, 0); +x_739 = lean_ctor_get(x_712, 1); +lean_inc(x_739); +lean_inc(x_738); +lean_dec(x_712); +x_740 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_740, 0, x_738); +lean_ctor_set(x_740, 1, x_739); +return x_740; +} +} +} +block_775: +{ +lean_object* x_743; +lean_dec(x_742); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_743 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_743) == 0) +{ +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; uint8_t x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; +x_744 = lean_ctor_get(x_743, 0); +lean_inc(x_744); +x_745 = lean_ctor_get(x_743, 1); +lean_inc(x_745); +lean_dec(x_743); +x_746 = lean_ctor_get(x_744, 0); +lean_inc(x_746); +lean_dec(x_744); +x_747 = lean_array_get_size(x_3); +x_748 = lean_unsigned_to_nat(0u); +x_749 = lean_unsigned_to_nat(1u); +x_750 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_750, 0, x_748); +lean_ctor_set(x_750, 1, x_747); +lean_ctor_set(x_750, 2, x_749); +x_751 = 0; +x_752 = lean_box(x_751); +x_753 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_753, 0, x_3); +lean_ctor_set(x_753, 1, x_752); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); lean_inc(x_2); -x_732 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_724, x_728, x_728, x_731, x_726, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_723); -lean_dec(x_728); -lean_dec(x_724); -if (lean_obj_tag(x_732) == 0) +x_754 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_746, x_750, x_750, x_753, x_748, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_745); +lean_dec(x_750); +lean_dec(x_746); +if (lean_obj_tag(x_754) == 0) { -lean_object* x_733; lean_object* x_734; lean_object* x_735; uint8_t x_736; -x_733 = lean_ctor_get(x_732, 0); -lean_inc(x_733); -x_734 = lean_ctor_get(x_733, 0); -lean_inc(x_734); -x_735 = lean_ctor_get(x_734, 1); -lean_inc(x_735); -x_736 = lean_unbox(x_735); -lean_dec(x_735); -if (x_736 == 0) +lean_object* x_755; lean_object* x_756; lean_object* x_757; uint8_t x_758; +x_755 = lean_ctor_get(x_754, 0); +lean_inc(x_755); +x_756 = lean_ctor_get(x_755, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_756, 1); +lean_inc(x_757); +x_758 = lean_unbox(x_757); +lean_dec(x_757); +if (x_758 == 0) { -lean_object* x_737; lean_object* x_738; lean_object* x_739; -lean_dec(x_734); +lean_object* x_759; lean_object* x_760; lean_object* x_761; +lean_dec(x_756); lean_dec(x_2); -x_737 = lean_ctor_get(x_732, 1); -lean_inc(x_737); -lean_dec(x_732); -x_738 = lean_ctor_get(x_733, 1); -lean_inc(x_738); -lean_dec(x_733); +x_759 = lean_ctor_get(x_754, 1); +lean_inc(x_759); +lean_dec(x_754); +x_760 = lean_ctor_get(x_755, 1); +lean_inc(x_760); +lean_dec(x_755); lean_inc(x_1); -x_739 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_738, x_7, x_8, x_9, x_10, x_737); +x_761 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_760, x_7, x_8, x_9, x_10, x_759); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_739; +return x_761; } else { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; -x_740 = lean_ctor_get(x_732, 1); -lean_inc(x_740); -lean_dec(x_732); -x_741 = lean_ctor_get(x_733, 1); -lean_inc(x_741); -lean_dec(x_733); -x_742 = lean_ctor_get(x_734, 0); -lean_inc(x_742); -lean_dec(x_734); -x_743 = l_Lean_mkAppN(x_2, x_742); -lean_dec(x_742); -x_744 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_743, x_5, x_741, x_7, x_8, x_9, x_10, x_740); +lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; +x_762 = lean_ctor_get(x_754, 1); +lean_inc(x_762); +lean_dec(x_754); +x_763 = lean_ctor_get(x_755, 1); +lean_inc(x_763); +lean_dec(x_755); +x_764 = lean_ctor_get(x_756, 0); +lean_inc(x_764); +lean_dec(x_756); +x_765 = l_Lean_mkAppN(x_2, x_764); +lean_dec(x_764); +x_766 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_765, x_5, x_763, x_7, x_8, x_9, x_10, x_762); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_744; +return x_766; } } else { -uint8_t x_745; +uint8_t x_767; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10922,29 +10283,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_745 = !lean_is_exclusive(x_732); -if (x_745 == 0) +x_767 = !lean_is_exclusive(x_754); +if (x_767 == 0) { -return x_732; +return x_754; } else { -lean_object* x_746; lean_object* x_747; lean_object* x_748; -x_746 = lean_ctor_get(x_732, 0); -x_747 = lean_ctor_get(x_732, 1); -lean_inc(x_747); -lean_inc(x_746); -lean_dec(x_732); -x_748 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_748, 0, x_746); -lean_ctor_set(x_748, 1, x_747); -return x_748; +lean_object* x_768; lean_object* x_769; lean_object* x_770; +x_768 = lean_ctor_get(x_754, 0); +x_769 = lean_ctor_get(x_754, 1); +lean_inc(x_769); +lean_inc(x_768); +lean_dec(x_754); +x_770 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_770, 0, x_768); +lean_ctor_set(x_770, 1, x_769); +return x_770; } } } else { -uint8_t x_749; +uint8_t x_771; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10954,342 +10315,315 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_749 = !lean_is_exclusive(x_721); -if (x_749 == 0) +x_771 = !lean_is_exclusive(x_743); +if (x_771 == 0) { -return x_721; +return x_743; } else { -lean_object* x_750; lean_object* x_751; lean_object* x_752; -x_750 = lean_ctor_get(x_721, 0); -x_751 = lean_ctor_get(x_721, 1); -lean_inc(x_751); -lean_inc(x_750); -lean_dec(x_721); -x_752 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_752, 0, x_750); -lean_ctor_set(x_752, 1, x_751); -return x_752; +lean_object* x_772; lean_object* x_773; lean_object* x_774; +x_772 = lean_ctor_get(x_743, 0); +x_773 = lean_ctor_get(x_743, 1); +lean_inc(x_773); +lean_inc(x_772); +lean_dec(x_743); +x_774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_774, 0, x_772); +lean_ctor_set(x_774, 1, x_773); +return x_774; } } } } default: { -lean_object* x_798; lean_object* x_832; uint8_t x_833; +lean_object* x_788; lean_object* x_819; lean_object* x_853; uint8_t x_854; lean_dec(x_4); -x_832 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; -x_833 = l_Lean_Expr_isConstOf(x_2, x_832); -if (x_833 == 0) +x_853 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___closed__4; +x_854 = l_Lean_Expr_isConstOf(x_2, x_853); +if (x_854 == 0) { -lean_object* x_834; -x_834 = lean_box(0); -x_798 = x_834; -goto block_831; +lean_object* x_855; +x_855 = lean_box(0); +x_819 = x_855; +goto block_852; } else { -lean_object* x_835; lean_object* x_836; uint8_t x_837; -x_835 = lean_array_get_size(x_3); -x_836 = lean_unsigned_to_nat(2u); -x_837 = lean_nat_dec_eq(x_835, x_836); -if (x_837 == 0) +lean_object* x_856; lean_object* x_857; uint8_t x_858; +x_856 = lean_array_get_size(x_3); +x_857 = lean_unsigned_to_nat(2u); +x_858 = lean_nat_dec_eq(x_856, x_857); +if (x_858 == 0) { -lean_object* x_838; -lean_dec(x_835); -x_838 = lean_box(0); -x_798 = x_838; -goto block_831; +lean_object* x_859; +lean_dec(x_856); +x_859 = lean_box(0); +x_819 = x_859; +goto block_852; } else { -lean_object* x_839; uint8_t x_840; -x_839 = lean_unsigned_to_nat(0u); -x_840 = lean_nat_dec_lt(x_839, x_835); -lean_dec(x_835); -if (x_840 == 0) +lean_object* x_860; uint8_t x_861; +x_860 = lean_unsigned_to_nat(0u); +x_861 = lean_nat_dec_lt(x_860, x_856); +lean_dec(x_856); +if (x_861 == 0) { -lean_object* x_841; lean_object* x_842; lean_object* x_843; -x_841 = l_Lean_instInhabitedExpr; -x_842 = l_outOfBounds___rarg(x_841); +lean_object* x_862; lean_object* x_863; +x_862 = l_Lean_instInhabitedExpr; +x_863 = l_outOfBounds___rarg(x_862); +x_788 = x_863; +goto block_818; +} +else +{ +lean_object* x_864; +x_864 = lean_array_fget(x_3, x_860); +x_788 = x_864; +goto block_818; +} +} +} +block_818: +{ +lean_object* x_789; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -lean_inc(x_842); -x_843 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_842, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_843) == 0) +lean_inc(x_788); +x_789 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_788, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_789) == 0) { -lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; size_t x_848; size_t x_849; uint8_t x_850; -x_844 = lean_ctor_get(x_843, 0); -lean_inc(x_844); -x_845 = lean_ctor_get(x_843, 1); -lean_inc(x_845); -lean_dec(x_843); -x_846 = lean_ctor_get(x_844, 0); -lean_inc(x_846); -x_847 = lean_ctor_get(x_844, 1); -lean_inc(x_847); -lean_dec(x_844); -x_848 = lean_ptr_addr(x_842); -lean_dec(x_842); -x_849 = lean_ptr_addr(x_846); -x_850 = lean_usize_dec_eq(x_848, x_849); -if (x_850 == 0) +lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; +x_790 = lean_ctor_get(x_789, 0); +lean_inc(x_790); +x_791 = lean_ctor_get(x_789, 1); +lean_inc(x_791); +lean_dec(x_789); +x_792 = lean_ctor_get(x_790, 0); +lean_inc(x_792); +x_793 = lean_ctor_get(x_790, 1); +lean_inc(x_793); +lean_dec(x_790); +x_794 = lean_ctor_get(x_793, 2); +lean_inc(x_794); +lean_inc(x_794); +x_795 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Canon_canonElemCore___spec__15(x_794, x_792); +if (lean_obj_tag(x_795) == 0) { -lean_object* x_851; -lean_dec(x_846); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_851 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_847, x_7, x_8, x_9, x_10, x_845); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_851; -} -else +size_t x_796; size_t x_797; uint8_t x_798; +x_796 = lean_ptr_addr(x_788); +lean_dec(x_788); +x_797 = lean_ptr_addr(x_792); +x_798 = lean_usize_dec_eq(x_796, x_797); +if (x_798 == 0) { -lean_object* x_852; lean_object* x_853; lean_object* x_854; -x_852 = lean_array_set(x_3, x_839, x_846); -x_853 = l_Lean_mkAppN(x_2, x_852); -lean_dec(x_852); -x_854 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_853, x_5, x_847, x_7, x_8, x_9, x_10, x_845); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_854; -} -} -else -{ -uint8_t x_855; -lean_dec(x_842); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_855 = !lean_is_exclusive(x_843); -if (x_855 == 0) -{ -return x_843; -} -else -{ -lean_object* x_856; lean_object* x_857; lean_object* x_858; -x_856 = lean_ctor_get(x_843, 0); -x_857 = lean_ctor_get(x_843, 1); -lean_inc(x_857); -lean_inc(x_856); -lean_dec(x_843); -x_858 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_858, 0, x_856); -lean_ctor_set(x_858, 1, x_857); -return x_858; -} -} -} -else -{ -lean_object* x_859; lean_object* x_860; -x_859 = lean_array_fget(x_3, x_839); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_859); -x_860 = l_Lean_Meta_Grind_Canon_canonImpl_visit(x_859, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_860) == 0) -{ -lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; size_t x_865; size_t x_866; uint8_t x_867; -x_861 = lean_ctor_get(x_860, 0); -lean_inc(x_861); -x_862 = lean_ctor_get(x_860, 1); -lean_inc(x_862); -lean_dec(x_860); -x_863 = lean_ctor_get(x_861, 0); -lean_inc(x_863); -x_864 = lean_ctor_get(x_861, 1); -lean_inc(x_864); -lean_dec(x_861); -x_865 = lean_ptr_addr(x_859); -lean_dec(x_859); -x_866 = lean_ptr_addr(x_863); -x_867 = lean_usize_dec_eq(x_865, x_866); -if (x_867 == 0) -{ -lean_object* x_868; -lean_dec(x_863); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_1); -x_868 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_864, x_7, x_8, x_9, x_10, x_862); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_868; -} -else -{ -lean_object* x_869; lean_object* x_870; lean_object* x_871; -x_869 = lean_array_set(x_3, x_839, x_863); -x_870 = l_Lean_mkAppN(x_2, x_869); -lean_dec(x_869); -x_871 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_870, x_5, x_864, x_7, x_8, x_9, x_10, x_862); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -return x_871; -} -} -else -{ -uint8_t x_872; -lean_dec(x_859); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_872 = !lean_is_exclusive(x_860); -if (x_872 == 0) -{ -return x_860; -} -else -{ -lean_object* x_873; lean_object* x_874; lean_object* x_875; -x_873 = lean_ctor_get(x_860, 0); -x_874 = lean_ctor_get(x_860, 1); -lean_inc(x_874); -lean_inc(x_873); -lean_dec(x_860); -x_875 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_875, 0, x_873); -lean_ctor_set(x_875, 1, x_874); -return x_875; -} -} -} -} -} -block_831: -{ -lean_object* x_799; -lean_dec(x_798); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_799 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_799) == 0) -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; uint8_t x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; -x_800 = lean_ctor_get(x_799, 0); -lean_inc(x_800); -x_801 = lean_ctor_get(x_799, 1); -lean_inc(x_801); -lean_dec(x_799); -x_802 = lean_ctor_get(x_800, 0); -lean_inc(x_802); +lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; +x_799 = lean_unsigned_to_nat(0u); +lean_inc(x_792); +x_800 = lean_array_set(x_3, x_799, x_792); +x_801 = l_Lean_mkAppN(x_2, x_800); lean_dec(x_800); -x_803 = lean_array_get_size(x_3); -x_804 = lean_unsigned_to_nat(0u); -x_805 = lean_unsigned_to_nat(1u); -x_806 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_806, 0, x_804); -lean_ctor_set(x_806, 1, x_803); -lean_ctor_set(x_806, 2, x_805); -x_807 = 0; -x_808 = lean_box(x_807); -x_809 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_809, 0, x_3); -lean_ctor_set(x_809, 1, x_808); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_5); -lean_inc(x_2); -x_810 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_802, x_806, x_806, x_809, x_804, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_801); -lean_dec(x_806); -lean_dec(x_802); -if (lean_obj_tag(x_810) == 0) +x_802 = lean_ctor_get(x_793, 0); +lean_inc(x_802); +x_803 = lean_ctor_get(x_793, 1); +lean_inc(x_803); +lean_dec(x_793); +lean_inc(x_801); +x_804 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_794, x_792, x_801); +x_805 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_805, 0, x_802); +lean_ctor_set(x_805, 1, x_803); +lean_ctor_set(x_805, 2, x_804); +x_806 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_801, x_5, x_805, x_7, x_8, x_9, x_10, x_791); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_806; +} +else { -lean_object* x_811; lean_object* x_812; lean_object* x_813; uint8_t x_814; -x_811 = lean_ctor_get(x_810, 0); -lean_inc(x_811); -x_812 = lean_ctor_get(x_811, 0); +lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; +lean_dec(x_3); +lean_dec(x_2); +x_807 = lean_ctor_get(x_793, 0); +lean_inc(x_807); +x_808 = lean_ctor_get(x_793, 1); +lean_inc(x_808); +lean_dec(x_793); +lean_inc(x_1); +x_809 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Canon_canonElemCore___spec__6(x_794, x_792, x_1); +x_810 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_810, 0, x_807); +lean_ctor_set(x_810, 1, x_808); +lean_ctor_set(x_810, 2, x_809); +lean_inc(x_1); +x_811 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_810, x_7, x_8, x_9, x_10, x_791); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_811; +} +} +else +{ +lean_object* x_812; lean_object* x_813; +lean_dec(x_794); +lean_dec(x_792); +lean_dec(x_788); +lean_dec(x_3); +lean_dec(x_2); +x_812 = lean_ctor_get(x_795, 0); lean_inc(x_812); -x_813 = lean_ctor_get(x_812, 1); -lean_inc(x_813); -x_814 = lean_unbox(x_813); -lean_dec(x_813); +lean_dec(x_795); +x_813 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_812, x_5, x_793, x_7, x_8, x_9, x_10, x_791); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_813; +} +} +else +{ +uint8_t x_814; +lean_dec(x_788); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_814 = !lean_is_exclusive(x_789); if (x_814 == 0) { +return x_789; +} +else +{ lean_object* x_815; lean_object* x_816; lean_object* x_817; -lean_dec(x_812); -lean_dec(x_2); -x_815 = lean_ctor_get(x_810, 1); -lean_inc(x_815); -lean_dec(x_810); -x_816 = lean_ctor_get(x_811, 1); +x_815 = lean_ctor_get(x_789, 0); +x_816 = lean_ctor_get(x_789, 1); lean_inc(x_816); -lean_dec(x_811); -lean_inc(x_1); -x_817 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_816, x_7, x_8, x_9, x_10, x_815); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); +lean_inc(x_815); +lean_dec(x_789); +x_817 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_817, 0, x_815); +lean_ctor_set(x_817, 1, x_816); return x_817; } -else +} +} +block_852: { -lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; -x_818 = lean_ctor_get(x_810, 1); -lean_inc(x_818); -lean_dec(x_810); -x_819 = lean_ctor_get(x_811, 1); -lean_inc(x_819); -lean_dec(x_811); -x_820 = lean_ctor_get(x_812, 0); -lean_inc(x_820); -lean_dec(x_812); -x_821 = l_Lean_mkAppN(x_2, x_820); +lean_object* x_820; +lean_dec(x_819); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_820 = l_Lean_Meta_getFunInfo(x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_820) == 0) +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; uint8_t x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; +x_821 = lean_ctor_get(x_820, 0); +lean_inc(x_821); +x_822 = lean_ctor_get(x_820, 1); +lean_inc(x_822); lean_dec(x_820); -x_822 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_821, x_5, x_819, x_7, x_8, x_9, x_10, x_818); +x_823 = lean_ctor_get(x_821, 0); +lean_inc(x_823); +lean_dec(x_821); +x_824 = lean_array_get_size(x_3); +x_825 = lean_unsigned_to_nat(0u); +x_826 = lean_unsigned_to_nat(1u); +x_827 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_827, 0, x_825); +lean_ctor_set(x_827, 1, x_824); +lean_ctor_set(x_827, 2, x_826); +x_828 = 0; +x_829 = lean_box(x_828); +x_830 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_830, 0, x_3); +lean_ctor_set(x_830, 1, x_829); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_2); +x_831 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__8(x_2, x_823, x_827, x_827, x_830, x_825, lean_box(0), lean_box(0), x_5, x_6, x_7, x_8, x_9, x_10, x_822); +lean_dec(x_827); +lean_dec(x_823); +if (lean_obj_tag(x_831) == 0) +{ +lean_object* x_832; lean_object* x_833; lean_object* x_834; uint8_t x_835; +x_832 = lean_ctor_get(x_831, 0); +lean_inc(x_832); +x_833 = lean_ctor_get(x_832, 0); +lean_inc(x_833); +x_834 = lean_ctor_get(x_833, 1); +lean_inc(x_834); +x_835 = lean_unbox(x_834); +lean_dec(x_834); +if (x_835 == 0) +{ +lean_object* x_836; lean_object* x_837; lean_object* x_838; +lean_dec(x_833); +lean_dec(x_2); +x_836 = lean_ctor_get(x_831, 1); +lean_inc(x_836); +lean_dec(x_831); +x_837 = lean_ctor_get(x_832, 1); +lean_inc(x_837); +lean_dec(x_832); +lean_inc(x_1); +x_838 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_1, x_5, x_837, x_7, x_8, x_9, x_10, x_836); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -return x_822; +return x_838; +} +else +{ +lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; +x_839 = lean_ctor_get(x_831, 1); +lean_inc(x_839); +lean_dec(x_831); +x_840 = lean_ctor_get(x_832, 1); +lean_inc(x_840); +lean_dec(x_832); +x_841 = lean_ctor_get(x_833, 0); +lean_inc(x_841); +lean_dec(x_833); +x_842 = l_Lean_mkAppN(x_2, x_841); +lean_dec(x_841); +x_843 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_Canon_canonImpl_visit___spec__9___lambda__1(x_1, x_842, x_5, x_840, x_7, x_8, x_9, x_10, x_839); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_843; } } else { -uint8_t x_823; +uint8_t x_844; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -11297,29 +10631,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_823 = !lean_is_exclusive(x_810); -if (x_823 == 0) +x_844 = !lean_is_exclusive(x_831); +if (x_844 == 0) { -return x_810; +return x_831; } else { -lean_object* x_824; lean_object* x_825; lean_object* x_826; -x_824 = lean_ctor_get(x_810, 0); -x_825 = lean_ctor_get(x_810, 1); -lean_inc(x_825); -lean_inc(x_824); -lean_dec(x_810); -x_826 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_826, 0, x_824); -lean_ctor_set(x_826, 1, x_825); -return x_826; +lean_object* x_845; lean_object* x_846; lean_object* x_847; +x_845 = lean_ctor_get(x_831, 0); +x_846 = lean_ctor_get(x_831, 1); +lean_inc(x_846); +lean_inc(x_845); +lean_dec(x_831); +x_847 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_847, 0, x_845); +lean_ctor_set(x_847, 1, x_846); +return x_847; } } } else { -uint8_t x_827; +uint8_t x_848; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -11329,23 +10663,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_827 = !lean_is_exclusive(x_799); -if (x_827 == 0) +x_848 = !lean_is_exclusive(x_820); +if (x_848 == 0) { -return x_799; +return x_820; } else { -lean_object* x_828; lean_object* x_829; lean_object* x_830; -x_828 = lean_ctor_get(x_799, 0); -x_829 = lean_ctor_get(x_799, 1); -lean_inc(x_829); -lean_inc(x_828); -lean_dec(x_799); -x_830 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_830, 0, x_828); -lean_ctor_set(x_830, 1, x_829); -return x_830; +lean_object* x_849; lean_object* x_850; lean_object* x_851; +x_849 = lean_ctor_get(x_820, 0); +x_850 = lean_ctor_get(x_820, 1); +lean_inc(x_850); +lean_inc(x_849); +lean_dec(x_820); +x_851 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_851, 0, x_849); +lean_ctor_set(x_851, 1, x_850); +return x_851; } } } @@ -11443,7 +10777,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_Canon_canonImpl_visit___closed__1; x_2 = l_Lean_Meta_Grind_Canon_canonImpl_visit___closed__2; -x_3 = lean_unsigned_to_nat(113u); +x_3 = lean_unsigned_to_nat(115u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Meta_Grind_Canon_canonImpl_visit___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c index bf0206f87b..80d6a7357d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c @@ -15,42 +15,39 @@ extern "C" { #endif lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_add_go___closed__3; +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5; +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3; static lean_object* l_Lean_Meta_Grind_add___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addHEq(lean_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_Core_0__Lean_Meta_Grind_addEqStep___lambda__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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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_object*); size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___closed__12; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__5; lean_object* l_Lean_Meta_mkEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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_Lean_Meta_Grind_add_go___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__1; -static lean_object* l_Lean_Meta_Grind_add_go___closed__11; -static lean_object* l_Lean_Meta_Grind_add_go___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans___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_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6; size_t lean_uint64_to_usize(uint64_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___closed__9; lean_object* l_Lean_Meta_Grind_propagateCtor(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_popNextEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_isCongruent(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_add___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__3; static size_t l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__2; -static lean_object* l_Lean_Meta_Grind_add_go___lambda__4___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Meta_Grind_congrHash(lean_object*, lean_object*); @@ -59,24 +56,21 @@ lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_propagateDown(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_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq(lean_object*, lean_object*, 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_add_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__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_Lean_Meta_Grind_add_go___closed__8; lean_object* l_Lean_Meta_Grind_setENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEq(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_Core_0__Lean_Meta_Grind_addEqStep___closed__7; -static lean_object* l_Lean_Meta_Grind_add_go___closed__10; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_goEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7; lean_object* l_Lean_Level_ofNat(lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,17 +80,16 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_a LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT(lean_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_Core_0__Lean_Meta_Grind_updateMT___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_Meta_Grind_getRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(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_Core_0__Lean_Meta_Grind_addEqStep___closed__5; -static lean_object* l_Lean_Meta_Grind_add_go___lambda__4___closed__3; +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_isAssigned___at_Lean_Meta_Grind_closeGoal___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqMP(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getFalseExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___lambda__4___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(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_isUnaryNode___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___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_Core_0__Lean_Meta_Grind_invertTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,11 +100,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Gr static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__12; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2(lean_object*, lean_object*, size_t, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_closeGoal(lean_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_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_popNextEq_x3f___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_Core_0__Lean_Meta_Grind_popNextEq_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -122,6 +116,7 @@ lean_object* l_Lean_Meta_Grind_getTrueExpr___rarg(lean_object*, lean_object*, le lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); static lean_object* l_Lean_Meta_Grind_add___lambda__3___closed__1; +lean_object* l_Lean_Meta_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); @@ -134,8 +129,7 @@ lean_object* l_Lean_Meta_Grind_checkInvariants(uint8_t, lean_object*, lean_objec LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_ppState(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_add_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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__1; @@ -154,12 +148,14 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Gr static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__10; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2; lean_object* l_Lean_MessageData_ofExpr(lean_object*); lean_object* l_Lean_Meta_Grind_copyParentsTo(lean_object*, lean_object*, 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_add_go___lambda__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_EXPORT lean_object* l_Lean_Meta_Grind_addHypothesis(lean_object*, lean_object*, 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_add___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore___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_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__4; @@ -167,15 +163,16 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add___lambda__2___boxed(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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__5(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___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_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_mkEqFalseProof(lean_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_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,6 +194,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Gr static lean_object* l_Lean_Meta_Grind_add_go___closed__2; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(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_getENode(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_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4; lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_goEq___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_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___boxed(lean_object**); @@ -208,15 +206,11 @@ size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); lean_object* l_Lean_Meta_Grind_getParentsAndReset(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_isTrue(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_popNextEq_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___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_fvar___override(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -226,26 +220,25 @@ static lean_object* l_Lean_Meta_Grind_add_go___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addHyp(lean_object*, lean_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_Core_0__Lean_Meta_Grind_addEqStep___lambda__4(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2; lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__9; lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__6___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___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_Lean_Meta_Grind_add_go___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__13; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_add_go___closed__4; static lean_object* l_Lean_Meta_Grind_add___lambda__3___closed__2; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__3___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isInconsistent(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_Core_0__Lean_Meta_Grind_addEqStep_go___boxed(lean_object**); -static lean_object* l_Lean_Meta_Grind_add_go___closed__5; +static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2; lean_object* l_Lean_Meta_Grind_internalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -335,7 +328,6 @@ lean_inc(x_17); lean_dec(x_14); x_18 = lean_box(0); x_19 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_15, x_3, x_4, x_2, x_1, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_17); -lean_dec(x_1); return x_19; } else @@ -369,7 +361,6 @@ lean_inc(x_28); lean_dec(x_26); x_29 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_15, x_3, x_4, x_2, x_1, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); lean_dec(x_27); -lean_dec(x_1); return x_29; } else @@ -414,7 +405,6 @@ lean_inc(x_37); lean_dec(x_35); x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_15, x_3, x_4, x_2, x_1, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); lean_dec(x_36); -lean_dec(x_1); return x_38; } else @@ -470,7 +460,6 @@ lean_inc(x_49); lean_dec(x_47); x_50 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_15, x_3, x_4, x_2, x_1, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_49); lean_dec(x_48); -lean_dec(x_1); return x_50; } else @@ -517,7 +506,6 @@ lean_inc(x_58); lean_dec(x_56); x_59 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_15, x_3, x_4, x_2, x_1, x_57, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_58); lean_dec(x_57); -lean_dec(x_1); return x_59; } else @@ -595,7 +583,6 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); return x_17; } } @@ -1030,6 +1017,226 @@ x_7 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Co return x_7; } } +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_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; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_12 = lean_st_ref_take(x_3, x_11); +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(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_13, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_13, 4); +lean_inc(x_19); +x_20 = lean_ctor_get(x_13, 5); +lean_inc(x_20); +x_21 = lean_ctor_get_uint8(x_13, sizeof(void*)*14); +x_22 = lean_ctor_get(x_13, 6); +lean_inc(x_22); +x_23 = lean_ctor_get(x_13, 7); +lean_inc(x_23); +x_24 = lean_ctor_get(x_13, 8); +lean_inc(x_24); +x_25 = lean_ctor_get(x_13, 9); +lean_inc(x_25); +x_26 = lean_ctor_get(x_13, 10); +lean_inc(x_26); +x_27 = lean_ctor_get(x_13, 11); +lean_inc(x_27); +x_28 = lean_ctor_get(x_13, 12); +lean_inc(x_28); +x_29 = lean_ctor_get(x_13, 13); +lean_inc(x_29); +lean_inc(x_13); +x_30 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__1(x_13, x_18, x_1); +x_31 = !lean_is_exclusive(x_13); +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; 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; uint8_t x_47; +x_32 = lean_ctor_get(x_13, 13); +lean_dec(x_32); +x_33 = lean_ctor_get(x_13, 12); +lean_dec(x_33); +x_34 = lean_ctor_get(x_13, 11); +lean_dec(x_34); +x_35 = lean_ctor_get(x_13, 10); +lean_dec(x_35); +x_36 = lean_ctor_get(x_13, 9); +lean_dec(x_36); +x_37 = lean_ctor_get(x_13, 8); +lean_dec(x_37); +x_38 = lean_ctor_get(x_13, 7); +lean_dec(x_38); +x_39 = lean_ctor_get(x_13, 6); +lean_dec(x_39); +x_40 = lean_ctor_get(x_13, 5); +lean_dec(x_40); +x_41 = lean_ctor_get(x_13, 4); +lean_dec(x_41); +x_42 = lean_ctor_get(x_13, 3); +lean_dec(x_42); +x_43 = lean_ctor_get(x_13, 2); +lean_dec(x_43); +x_44 = lean_ctor_get(x_13, 1); +lean_dec(x_44); +x_45 = lean_ctor_get(x_13, 0); +lean_dec(x_45); +lean_ctor_set(x_13, 3, x_30); +x_46 = lean_st_ref_set(x_3, x_13, x_14); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +x_49 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +lean_ctor_set(x_46, 0, x_49); +return x_46; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_dec(x_46); +x_51 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +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; +} +} +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_dec(x_13); +x_53 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_53, 0, x_15); +lean_ctor_set(x_53, 1, x_16); +lean_ctor_set(x_53, 2, x_17); +lean_ctor_set(x_53, 3, x_30); +lean_ctor_set(x_53, 4, x_19); +lean_ctor_set(x_53, 5, x_20); +lean_ctor_set(x_53, 6, x_22); +lean_ctor_set(x_53, 7, x_23); +lean_ctor_set(x_53, 8, x_24); +lean_ctor_set(x_53, 9, x_25); +lean_ctor_set(x_53, 10, x_26); +lean_ctor_set(x_53, 11, x_27); +lean_ctor_set(x_53, 12, x_28); +lean_ctor_set(x_53, 13, x_29); +lean_ctor_set_uint8(x_53, sizeof(void*)*14, x_21); +x_54 = lean_st_ref_set(x_3, x_53, x_14); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_56; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); +return x_58; +} +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("debug", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("parent", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; +x_2 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2; +x_3 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("remove: ", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___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: { @@ -1045,7 +1252,7 @@ return x_13; } else { -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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_14 = lean_ctor_get(x_1, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_1, 1); @@ -1054,89 +1261,204 @@ x_16 = lean_ctor_get(x_1, 3); lean_inc(x_16); lean_dec(x_1); x_17 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_st_ref_take(x_3, x_18); -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(x_19); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -x_24 = lean_ctor_get(x_20, 2); -lean_inc(x_24); -x_25 = lean_ctor_get(x_20, 3); -lean_inc(x_25); -x_26 = lean_ctor_get(x_20, 4); -lean_inc(x_26); -x_27 = lean_ctor_get(x_20, 5); -lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_20, sizeof(void*)*8); -x_29 = lean_ctor_get(x_20, 6); -lean_inc(x_29); -x_30 = lean_ctor_get(x_20, 7); -lean_inc(x_30); -lean_inc(x_20); -x_31 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__1(x_20, x_25, x_15); -x_32 = !lean_is_exclusive(x_20); -if (x_32 == 0) +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_33 = lean_ctor_get(x_20, 7); -lean_dec(x_33); -x_34 = lean_ctor_get(x_20, 6); -lean_dec(x_34); -x_35 = lean_ctor_get(x_20, 5); -lean_dec(x_35); -x_36 = lean_ctor_get(x_20, 4); -lean_dec(x_36); -x_37 = lean_ctor_get(x_20, 3); -lean_dec(x_37); -x_38 = lean_ctor_get(x_20, 2); -lean_dec(x_38); -x_39 = lean_ctor_get(x_20, 1); -lean_dec(x_39); -x_40 = lean_ctor_get(x_20, 0); -lean_dec(x_40); -lean_ctor_set(x_20, 3, x_31); -x_41 = lean_st_ref_set(x_3, x_20, x_21); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_box(0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_ctor_get(x_17, 1); +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +x_21 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4; +x_22 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_unbox(x_23); +lean_dec(x_23); +if (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; +lean_free_object(x_17); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(x_15, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +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_27); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); x_1 = x_16; -x_2 = x_43; -x_11 = x_42; +x_2 = x_30; +x_11 = x_29; goto _start; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_20); -x_45 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_45, 0, x_22); -lean_ctor_set(x_45, 1, x_23); -lean_ctor_set(x_45, 2, x_24); -lean_ctor_set(x_45, 3, x_31); -lean_ctor_set(x_45, 4, x_26); -lean_ctor_set(x_45, 5, x_27); -lean_ctor_set(x_45, 6, x_29); -lean_ctor_set(x_45, 7, x_30); -lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_28); -x_46 = lean_st_ref_set(x_3, x_45, x_21); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = lean_box(0); +uint8_t x_32; +x_32 = !lean_is_exclusive(x_22); +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; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_33 = lean_ctor_get(x_22, 1); +x_34 = lean_ctor_get(x_22, 0); +lean_dec(x_34); +lean_inc(x_15); +x_35 = l_Lean_MessageData_ofExpr(x_15); +x_36 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6; +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_35); +lean_ctor_set(x_22, 0, x_36); +x_37 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_37); +lean_ctor_set(x_17, 0, x_22); +x_38 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_21, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(x_15, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +lean_dec(x_39); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); x_1 = x_16; -x_2 = x_48; -x_11 = x_47; +x_2 = x_44; +x_11 = x_43; goto _start; } +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_46 = lean_ctor_get(x_22, 1); +lean_inc(x_46); +lean_dec(x_22); +lean_inc(x_15); +x_47 = l_Lean_MessageData_ofExpr(x_15); +x_48 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6; +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_50); +lean_ctor_set(x_17, 0, x_49); +x_51 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_21, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_46); +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(x_51); +x_54 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(x_15, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +lean_dec(x_52); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +lean_dec(x_55); +x_1 = x_16; +x_2 = x_57; +x_11 = x_56; +goto _start; +} +} +} +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_17, 1); +lean_inc(x_59); +lean_dec(x_17); +x_60 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4; +x_61 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_60, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_unbox(x_62); +lean_dec(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_box(0); +x_66 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(x_15, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_64); +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(x_66); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +lean_dec(x_67); +x_1 = x_16; +x_2 = x_69; +x_11 = x_68; +goto _start; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 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_71 = lean_ctor_get(x_61, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_72 = x_61; +} else { + lean_dec_ref(x_61); + x_72 = lean_box(0); +} +lean_inc(x_15); +x_73 = l_Lean_MessageData_ofExpr(x_15); +x_74 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6; +if (lean_is_scalar(x_72)) { + x_75 = lean_alloc_ctor(7, 2, 0); +} else { + x_75 = x_72; + lean_ctor_set_tag(x_75, 7); +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +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 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_60, x_77, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_71); +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(x_78); +x_81 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1(x_15, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_80); +lean_dec(x_79); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +lean_dec(x_82); +x_1 = x_16; +x_2 = x_84; +x_11 = x_83; +goto _start; +} +} } } } @@ -1194,6 +1516,23 @@ x_6 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Co return x_6; } } +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__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_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); +lean_dec(x_2); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___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: { @@ -1227,6 +1566,78 @@ lean_dec(x_1); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_addCongrTable(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) +{ +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); +lean_dec(x_14); +x_15 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_17 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("reinsert: ", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___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: { @@ -1307,11 +1718,24 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_dec(x_18); x_23 = lean_ctor_get(x_17, 1); lean_inc(x_23); lean_dec(x_17); +x_24 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4; +x_25 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -1320,22 +1744,15 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_24 = l_Lean_Meta_Grind_addCongrTable(x_15, 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) +x_30 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1(x_15, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_28); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_box(0); -x_1 = x_16; -x_2 = x_26; -x_11 = x_25; -goto _start; -} -else +lean_object* x_31; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) { -uint8_t x_28; +uint8_t x_32; lean_dec(x_16); lean_dec(x_10); lean_dec(x_9); @@ -1345,30 +1762,316 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_28 = !lean_is_exclusive(x_24); -if (x_28 == 0) +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) { -return x_24; +lean_object* x_33; +x_33 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +return x_30; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_24, 0); -x_30 = lean_ctor_get(x_24, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_24); -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; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_31); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_30, 1); +lean_inc(x_36); +lean_dec(x_30); +x_37 = lean_ctor_get(x_31, 0); +lean_inc(x_37); +lean_dec(x_31); +x_1 = x_16; +x_2 = x_37; +x_11 = x_36; +goto _start; +} +} +else +{ +uint8_t x_39; +lean_dec(x_16); +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_39 = !lean_is_exclusive(x_30); +if (x_39 == 0) +{ +return x_30; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_30, 0); +x_41 = lean_ctor_get(x_30, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_30); +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 +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_25); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_44 = lean_ctor_get(x_25, 1); +x_45 = lean_ctor_get(x_25, 0); +lean_dec(x_45); +lean_inc(x_15); +x_46 = l_Lean_MessageData_ofExpr(x_15); +x_47 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2; +lean_ctor_set_tag(x_25, 7); +lean_ctor_set(x_25, 1, x_46); +lean_ctor_set(x_25, 0, x_47); +x_48 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_25); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_24, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); +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(x_50); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_53 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1(x_15, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_52); +lean_dec(x_51); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +if (lean_obj_tag(x_54) == 0) +{ +uint8_t x_55; +lean_dec(x_16); +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_55 = !lean_is_exclusive(x_53); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_53, 0); +lean_dec(x_56); +return x_53; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_54); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_dec(x_53); +x_60 = lean_ctor_get(x_54, 0); +lean_inc(x_60); +lean_dec(x_54); +x_1 = x_16; +x_2 = x_60; +x_11 = x_59; +goto _start; +} +} +else +{ +uint8_t x_62; +lean_dec(x_16); +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_62 = !lean_is_exclusive(x_53); +if (x_62 == 0) +{ +return x_53; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_53, 0); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_53); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +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_66 = lean_ctor_get(x_25, 1); +lean_inc(x_66); +lean_dec(x_25); +lean_inc(x_15); +x_67 = l_Lean_MessageData_ofExpr(x_15); +x_68 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2; +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_24, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_66); +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(x_72); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_75 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1(x_15, x_73, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_74); +lean_dec(x_73); +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; lean_object* x_79; +lean_dec(x_16); +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_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; +} else { + lean_dec_ref(x_75); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_75, 1); +lean_inc(x_80); +lean_dec(x_75); +x_81 = lean_ctor_get(x_76, 0); +lean_inc(x_81); +lean_dec(x_76); +x_1 = x_16; +x_2 = x_81; +x_11 = x_80; +goto _start; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_16); +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_83 = lean_ctor_get(x_75, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_75, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_85 = x_75; +} else { + lean_dec_ref(x_75); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} } } } } else { -uint8_t x_32; +uint8_t x_87; lean_dec(x_16); lean_dec(x_15); lean_dec(x_10); @@ -1379,23 +2082,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_32 = !lean_is_exclusive(x_17); -if (x_32 == 0) +x_87 = !lean_is_exclusive(x_17); +if (x_87 == 0) { return x_17; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_17, 0); -x_34 = lean_ctor_get(x_17, 1); -lean_inc(x_34); -lean_inc(x_33); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_17, 0); +x_89 = lean_ctor_get(x_17, 1); +lean_inc(x_89); +lean_inc(x_88); lean_dec(x_17); -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_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; } } } @@ -1455,6 +2158,15 @@ return x_20; } } } +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___lambda__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_2); +return x_12; +} +} static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__1() { _start: { @@ -2130,6 +2842,7 @@ else lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_inc(x_1); lean_ctor_set(x_26, 9, x_1); +lean_inc(x_16); x_42 = l_Lean_Meta_Grind_setENode(x_16, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); @@ -2244,6 +2957,7 @@ lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 1, x_60); lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 2, x_61); lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 3, x_62); lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 4, x_63); +lean_inc(x_16); x_71 = l_Lean_Meta_Grind_setENode(x_16, x_70, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); @@ -2512,6 +3226,7 @@ lean_dec(x_18); lean_inc(x_2); lean_inc(x_17); lean_ctor_set(x_14, 2, x_2); +lean_inc(x_3); x_19 = l_Lean_Meta_Grind_setENode(x_3, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); @@ -2638,6 +3353,7 @@ lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 1, x_43); lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 2, x_44); lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 3, x_45); lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 4, x_46); +lean_inc(x_3); x_51 = l_Lean_Meta_Grind_setENode(x_3, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); x_52 = lean_ctor_get(x_51, 1); lean_inc(x_52); @@ -3182,6 +3898,7 @@ lean_ctor_set_uint8(x_61, sizeof(void*)*10 + 1, x_49); lean_ctor_set_uint8(x_61, sizeof(void*)*10 + 2, x_50); lean_ctor_set_uint8(x_61, sizeof(void*)*10 + 3, x_59); lean_ctor_set_uint8(x_61, sizeof(void*)*10 + 4, x_60); +lean_inc(x_7); x_62 = l_Lean_Meta_Grind_setENode(x_7, x_61, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_57); x_63 = lean_ctor_get(x_62, 1); lean_inc(x_63); @@ -3397,6 +4114,7 @@ lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 1, x_94); lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 2, x_95); lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 3, x_105); lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 4, x_106); +lean_inc(x_7); x_108 = l_Lean_Meta_Grind_setENode(x_7, x_107, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_103); x_109 = lean_ctor_get(x_108, 1); lean_inc(x_109); @@ -3514,7 +4232,9 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); x_132 = !lean_is_exclusive(x_23); @@ -3548,7 +4268,9 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -3577,7 +4299,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_G _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); +x_1 = lean_mk_string_unchecked(" new root ", 10, 10); return x_1; } } @@ -3594,7 +4316,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_G _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(" new root ", 10, 10); +x_1 = lean_mk_string_unchecked(", ", 2, 2); return x_1; } } @@ -3607,23 +4329,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(", ", 2, 2); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, uint8_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { _start: { @@ -3653,6 +4358,7 @@ lean_inc(x_24); lean_ctor_set(x_2, 5, x_28); lean_ctor_set(x_2, 4, x_27); lean_ctor_set_uint8(x_2, sizeof(void*)*10, x_5); +lean_inc(x_1); x_29 = l_Lean_Meta_Grind_setENode(x_1, x_2, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_22); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) @@ -3715,9 +4421,7 @@ lean_inc(x_48); lean_dec(x_45); x_49 = lean_box(0); x_50 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_49, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_48); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_50; } else @@ -3762,11 +4466,11 @@ lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean x_67 = lean_ctor_get(x_65, 0); x_68 = lean_ctor_get(x_65, 1); x_69 = l_Lean_MessageData_ofFormat(x_56); -x_70 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_70 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; lean_ctor_set_tag(x_65, 7); lean_ctor_set(x_65, 1, x_69); lean_ctor_set(x_65, 0, x_70); -x_71 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_71 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; lean_ctor_set_tag(x_58, 7); lean_ctor_set(x_58, 1, x_71); lean_ctor_set(x_58, 0, x_65); @@ -3774,7 +4478,7 @@ x_72 = l_Lean_MessageData_ofFormat(x_60); lean_ctor_set_tag(x_54, 7); lean_ctor_set(x_54, 1, x_72); lean_ctor_set(x_54, 0, x_58); -x_73 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_73 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; lean_ctor_set_tag(x_45, 7); lean_ctor_set(x_45, 1, x_73); lean_ctor_set(x_45, 0, x_54); @@ -3793,9 +4497,7 @@ lean_inc(x_77); lean_dec(x_75); x_78 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_76, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_77); lean_dec(x_76); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_78; } else @@ -3807,11 +4509,11 @@ lean_inc(x_80); lean_inc(x_79); lean_dec(x_65); x_81 = l_Lean_MessageData_ofFormat(x_56); -x_82 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_82 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_83 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_83, 0, x_82); lean_ctor_set(x_83, 1, x_81); -x_84 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_84 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; lean_ctor_set_tag(x_58, 7); lean_ctor_set(x_58, 1, x_84); lean_ctor_set(x_58, 0, x_83); @@ -3819,7 +4521,7 @@ x_85 = l_Lean_MessageData_ofFormat(x_60); lean_ctor_set_tag(x_54, 7); lean_ctor_set(x_54, 1, x_85); lean_ctor_set(x_54, 0, x_58); -x_86 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_86 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; lean_ctor_set_tag(x_45, 7); lean_ctor_set(x_45, 1, x_86); lean_ctor_set(x_45, 0, x_54); @@ -3838,9 +4540,7 @@ lean_inc(x_90); lean_dec(x_88); x_91 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_89, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_90); lean_dec(x_89); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_91; } } @@ -3922,7 +4622,7 @@ if (lean_is_exclusive(x_101)) { x_104 = lean_box(0); } x_105 = l_Lean_MessageData_ofFormat(x_56); -x_106 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_106 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_104)) { x_107 = lean_alloc_ctor(7, 2, 0); } else { @@ -3931,7 +4631,7 @@ if (lean_is_scalar(x_104)) { } lean_ctor_set(x_107, 0, x_106); lean_ctor_set(x_107, 1, x_105); -x_108 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_108 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; x_109 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_109, 0, x_107); lean_ctor_set(x_109, 1, x_108); @@ -3939,7 +4639,7 @@ x_110 = l_Lean_MessageData_ofFormat(x_96); lean_ctor_set_tag(x_54, 7); lean_ctor_set(x_54, 1, x_110); lean_ctor_set(x_54, 0, x_109); -x_111 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_111 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; lean_ctor_set_tag(x_45, 7); lean_ctor_set(x_45, 1, x_111); lean_ctor_set(x_45, 0, x_54); @@ -3958,9 +4658,7 @@ lean_inc(x_115); lean_dec(x_113); x_116 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_114, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_115); lean_dec(x_114); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_116; } else @@ -4056,7 +4754,7 @@ if (lean_is_exclusive(x_130)) { x_133 = lean_box(0); } x_134 = l_Lean_MessageData_ofFormat(x_121); -x_135 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_135 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_133)) { x_136 = lean_alloc_ctor(7, 2, 0); } else { @@ -4065,7 +4763,7 @@ if (lean_is_scalar(x_133)) { } lean_ctor_set(x_136, 0, x_135); lean_ctor_set(x_136, 1, x_134); -x_137 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_137 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; if (lean_is_scalar(x_126)) { x_138 = lean_alloc_ctor(7, 2, 0); } else { @@ -4078,7 +4776,7 @@ x_139 = l_Lean_MessageData_ofFormat(x_124); x_140 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_140, 0, x_138); lean_ctor_set(x_140, 1, x_139); -x_141 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_141 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; lean_ctor_set_tag(x_45, 7); lean_ctor_set(x_45, 1, x_141); lean_ctor_set(x_45, 0, x_140); @@ -4097,9 +4795,7 @@ lean_inc(x_145); lean_dec(x_143); x_146 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_144, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_145); lean_dec(x_144); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_146; } else @@ -4206,7 +4902,7 @@ if (lean_is_exclusive(x_163)) { x_166 = lean_box(0); } x_167 = l_Lean_MessageData_ofFormat(x_153); -x_168 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_168 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_166)) { x_169 = lean_alloc_ctor(7, 2, 0); } else { @@ -4215,7 +4911,7 @@ if (lean_is_scalar(x_166)) { } lean_ctor_set(x_169, 0, x_168); lean_ctor_set(x_169, 1, x_167); -x_170 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_170 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; if (lean_is_scalar(x_159)) { x_171 = lean_alloc_ctor(7, 2, 0); } else { @@ -4233,7 +4929,7 @@ if (lean_is_scalar(x_155)) { } lean_ctor_set(x_173, 0, x_171); lean_ctor_set(x_173, 1, x_172); -x_174 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_174 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; x_175 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_175, 0, x_173); lean_ctor_set(x_175, 1, x_174); @@ -4252,9 +4948,7 @@ lean_inc(x_179); lean_dec(x_177); x_180 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_40, x_33, x_9, x_24, x_35, x_34, x_42, x_10, x_37, x_36, x_178, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_179); lean_dec(x_178); -lean_dec(x_42); lean_dec(x_35); -lean_dec(x_24); return x_180; } else @@ -4393,9 +5087,7 @@ lean_inc(x_197); lean_dec(x_194); x_198 = lean_box(0); x_199 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_189, x_33, x_9, x_24, x_35, x_34, x_191, x_10, x_37, x_36, x_198, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_197); -lean_dec(x_191); lean_dec(x_35); -lean_dec(x_24); return x_199; } else @@ -4461,7 +5153,7 @@ if (lean_is_exclusive(x_213)) { x_216 = lean_box(0); } x_217 = l_Lean_MessageData_ofFormat(x_203); -x_218 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_218 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_216)) { x_219 = lean_alloc_ctor(7, 2, 0); } else { @@ -4470,7 +5162,7 @@ if (lean_is_scalar(x_216)) { } lean_ctor_set(x_219, 0, x_218); lean_ctor_set(x_219, 1, x_217); -x_220 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_220 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; if (lean_is_scalar(x_209)) { x_221 = lean_alloc_ctor(7, 2, 0); } else { @@ -4488,7 +5180,7 @@ if (lean_is_scalar(x_205)) { } lean_ctor_set(x_223, 0, x_221); lean_ctor_set(x_223, 1, x_222); -x_224 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_224 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; if (lean_is_scalar(x_201)) { x_225 = lean_alloc_ctor(7, 2, 0); } else { @@ -4512,9 +5204,7 @@ lean_inc(x_230); lean_dec(x_228); x_231 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_189, x_33, x_9, x_24, x_35, x_34, x_191, x_10, x_37, x_36, x_229, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_230); lean_dec(x_229); -lean_dec(x_191); lean_dec(x_35); -lean_dec(x_24); return x_231; } else @@ -4674,9 +5364,7 @@ lean_inc(x_256); lean_dec(x_253); x_257 = lean_box(0); x_258 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_247, x_241, x_9, x_24, x_243, x_242, x_250, x_10, x_245, x_244, x_257, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_256); -lean_dec(x_250); lean_dec(x_243); -lean_dec(x_24); return x_258; } else @@ -4742,7 +5430,7 @@ if (lean_is_exclusive(x_272)) { x_275 = lean_box(0); } x_276 = l_Lean_MessageData_ofFormat(x_262); -x_277 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_277 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_275)) { x_278 = lean_alloc_ctor(7, 2, 0); } else { @@ -4751,7 +5439,7 @@ if (lean_is_scalar(x_275)) { } lean_ctor_set(x_278, 0, x_277); lean_ctor_set(x_278, 1, x_276); -x_279 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_279 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; if (lean_is_scalar(x_268)) { x_280 = lean_alloc_ctor(7, 2, 0); } else { @@ -4769,7 +5457,7 @@ if (lean_is_scalar(x_264)) { } lean_ctor_set(x_282, 0, x_280); lean_ctor_set(x_282, 1, x_281); -x_283 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_283 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; if (lean_is_scalar(x_260)) { x_284 = lean_alloc_ctor(7, 2, 0); } else { @@ -4798,9 +5486,7 @@ lean_inc(x_290); lean_dec(x_288); x_291 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_247, x_241, x_9, x_24, x_243, x_242, x_250, x_10, x_245, x_244, x_289, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_290); lean_dec(x_289); -lean_dec(x_250); lean_dec(x_243); -lean_dec(x_24); return x_291; } else @@ -4940,6 +5626,7 @@ lean_ctor_set_uint8(x_314, sizeof(void*)*10 + 1, x_305); lean_ctor_set_uint8(x_314, sizeof(void*)*10 + 2, x_306); lean_ctor_set_uint8(x_314, sizeof(void*)*10 + 3, x_307); lean_ctor_set_uint8(x_314, sizeof(void*)*10 + 4, x_308); +lean_inc(x_1); x_315 = l_Lean_Meta_Grind_setENode(x_1, x_314, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_22); x_316 = lean_ctor_get(x_315, 1); lean_inc(x_316); @@ -5011,9 +5698,7 @@ lean_inc(x_333); lean_dec(x_330); x_334 = lean_box(0); x_335 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_324, x_318, x_9, x_302, x_320, x_319, x_327, x_10, x_322, x_321, x_334, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_333); -lean_dec(x_327); lean_dec(x_320); -lean_dec(x_302); return x_335; } else @@ -5079,7 +5764,7 @@ if (lean_is_exclusive(x_349)) { x_352 = lean_box(0); } x_353 = l_Lean_MessageData_ofFormat(x_339); -x_354 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_354 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; if (lean_is_scalar(x_352)) { x_355 = lean_alloc_ctor(7, 2, 0); } else { @@ -5088,7 +5773,7 @@ if (lean_is_scalar(x_352)) { } lean_ctor_set(x_355, 0, x_354); lean_ctor_set(x_355, 1, x_353); -x_356 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_356 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; if (lean_is_scalar(x_345)) { x_357 = lean_alloc_ctor(7, 2, 0); } else { @@ -5106,7 +5791,7 @@ if (lean_is_scalar(x_341)) { } lean_ctor_set(x_359, 0, x_357); lean_ctor_set(x_359, 1, x_358); -x_360 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; +x_360 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; if (lean_is_scalar(x_337)) { x_361 = lean_alloc_ctor(7, 2, 0); } else { @@ -5140,9 +5825,7 @@ lean_inc(x_367); lean_dec(x_365); x_368 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_324, x_318, x_9, x_302, x_320, x_319, x_327, x_10, x_322, x_321, x_366, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_367); lean_dec(x_366); -lean_dec(x_327); lean_dec(x_320); -lean_dec(x_302); return x_368; } else @@ -5282,34 +5965,35 @@ return x_380; static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grind", 5, 5); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; +x_2 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("debug", 5, 5); +x_1 = lean_mk_string_unchecked("adding ", 7, 7); return x_1; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("adding ", 7, 7); +x_1 = lean_mk_string_unchecked(" ↦ ", 5, 3); return x_1; } } @@ -5322,28 +6006,11 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" ↦ ", 5, 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(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, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; +x_19 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; x_20 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); @@ -5384,11 +6051,11 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean x_35 = lean_ctor_get(x_33, 0); x_36 = lean_ctor_get(x_33, 1); x_37 = l_Lean_MessageData_ofFormat(x_31); -x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; +x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; lean_ctor_set_tag(x_33, 7); lean_ctor_set(x_33, 1, x_37); lean_ctor_set(x_33, 0, x_38); -x_39 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7; +x_39 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; lean_ctor_set_tag(x_29, 7); lean_ctor_set(x_29, 1, x_39); lean_ctor_set(x_29, 0, x_33); @@ -5396,7 +6063,7 @@ x_40 = l_Lean_MessageData_ofFormat(x_35); lean_ctor_set_tag(x_20, 7); lean_ctor_set(x_20, 1, x_40); lean_ctor_set(x_20, 0, x_29); -x_41 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_41 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_42 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_42, 0, x_20); lean_ctor_set(x_42, 1, x_41); @@ -5419,11 +6086,11 @@ lean_inc(x_48); lean_inc(x_47); lean_dec(x_33); x_49 = l_Lean_MessageData_ofFormat(x_31); -x_50 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; +x_50 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; x_51 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); -x_52 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7; +x_52 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; lean_ctor_set_tag(x_29, 7); lean_ctor_set(x_29, 1, x_52); lean_ctor_set(x_29, 0, x_51); @@ -5431,7 +6098,7 @@ x_53 = l_Lean_MessageData_ofFormat(x_47); lean_ctor_set_tag(x_20, 7); lean_ctor_set(x_20, 1, x_53); lean_ctor_set(x_20, 0, x_29); -x_54 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_54 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_55 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_55, 0, x_20); lean_ctor_set(x_55, 1, x_54); @@ -5468,7 +6135,7 @@ if (lean_is_exclusive(x_62)) { x_65 = lean_box(0); } x_66 = l_Lean_MessageData_ofFormat(x_60); -x_67 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; +x_67 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; if (lean_is_scalar(x_65)) { x_68 = lean_alloc_ctor(7, 2, 0); } else { @@ -5477,7 +6144,7 @@ if (lean_is_scalar(x_65)) { } lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7; +x_69 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; x_70 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_70, 0, x_68); lean_ctor_set(x_70, 1, x_69); @@ -5485,7 +6152,7 @@ x_71 = l_Lean_MessageData_ofFormat(x_63); lean_ctor_set_tag(x_20, 7); lean_ctor_set(x_20, 1, x_71); lean_ctor_set(x_20, 0, x_70); -x_72 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_72 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_73 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_73, 0, x_20); lean_ctor_set(x_73, 1, x_72); @@ -5533,7 +6200,7 @@ if (lean_is_exclusive(x_83)) { x_86 = lean_box(0); } x_87 = l_Lean_MessageData_ofFormat(x_80); -x_88 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; +x_88 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; if (lean_is_scalar(x_86)) { x_89 = lean_alloc_ctor(7, 2, 0); } else { @@ -5542,7 +6209,7 @@ if (lean_is_scalar(x_86)) { } lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); -x_90 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7; +x_90 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5; if (lean_is_scalar(x_82)) { x_91 = lean_alloc_ctor(7, 2, 0); } else { @@ -5555,7 +6222,7 @@ x_92 = l_Lean_MessageData_ofFormat(x_84); x_93 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); -x_94 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_94 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_95 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_95, 0, x_93); lean_ctor_set(x_95, 1, x_94); @@ -5622,9 +6289,7 @@ x_23 = lean_unbox(x_10); lean_dec(x_10); x_24 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_21, x_22, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_11); -lean_dec(x_7); lean_dec(x_5); -lean_dec(x_4); return x_24; } } @@ -5729,7 +6394,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Gr _start: { lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; +x_11 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; x_12 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) @@ -5773,7 +6438,7 @@ x_24 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___la lean_ctor_set_tag(x_12, 7); lean_ctor_set(x_12, 1, x_23); lean_ctor_set(x_12, 0, x_24); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_25 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_26 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_26, 0, x_12); lean_ctor_set(x_26, 1, x_25); @@ -5862,7 +6527,7 @@ x_45 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___la x_46 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); -x_47 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +x_47 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_48 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); @@ -6887,7 +7552,366 @@ return x_61; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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) { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("eqc", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8(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, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2; +x_18 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +x_23 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_21); +return x_23; +} +else +{ +if (x_4 == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_18, 1); +x_26 = lean_ctor_get(x_18, 0); +lean_dec(x_26); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +lean_inc(x_5); +x_27 = l_Lean_Meta_mkEq(x_5, x_6, x_12, x_13, x_14, x_15, x_25); +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; +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_27); +x_30 = l_Lean_MessageData_ofExpr(x_28); +x_31 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_18, 7); +lean_ctor_set(x_18, 1, x_30); +lean_ctor_set(x_18, 0, x_31); +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_18); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_17, x_32, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +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(x_33); +x_36 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_34, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_35); +lean_dec(x_34); +return x_36; +} +else +{ +uint8_t x_37; +lean_free_object(x_18); +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_27); +if (x_37 == 0) +{ +return x_27; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_27, 0); +x_39 = lean_ctor_get(x_27, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_27); +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_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_18, 1); +lean_inc(x_41); +lean_dec(x_18); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +lean_inc(x_5); +x_42 = l_Lean_Meta_mkEq(x_5, x_6, x_12, x_13, x_14, x_15, x_41); +if (lean_obj_tag(x_42) == 0) +{ +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_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_MessageData_ofExpr(x_43); +x_46 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_47 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_17, x_48, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_44); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_50, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_51); +lean_dec(x_50); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_ctor_get(x_42, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_42, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_55 = x_42; +} else { + lean_dec_ref(x_42); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_18); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_18, 1); +x_59 = lean_ctor_get(x_18, 0); +lean_dec(x_59); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +lean_inc(x_5); +x_60 = l_Lean_Meta_mkHEq(x_5, x_6, x_12, x_13, x_14, x_15, x_58); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +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(x_60); +x_63 = l_Lean_MessageData_ofExpr(x_61); +x_64 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_18, 7); +lean_ctor_set(x_18, 1, x_63); +lean_ctor_set(x_18, 0, x_64); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_18); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_17, x_65, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +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(x_66); +x_69 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_68); +lean_dec(x_67); +return x_69; +} +else +{ +uint8_t x_70; +lean_free_object(x_18); +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +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 +{ +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_18, 1); +lean_inc(x_74); +lean_dec(x_18); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +lean_inc(x_5); +x_75 = l_Lean_Meta_mkHEq(x_5, x_6, x_12, x_13, x_14, x_15, x_74); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = l_Lean_MessageData_ofExpr(x_76); +x_79 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +x_82 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_17, x_81, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +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(x_82); +x_85 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_83, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_84); +lean_dec(x_83); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_86 = lean_ctor_get(x_75, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_75, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_88 = x_75; +} else { + lean_dec_ref(x_75); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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) { _start: { lean_object* x_11; lean_object* x_12; @@ -6898,15 +7922,15 @@ lean_ctor_set(x_12, 1, x_10); return x_12; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___boxed), 10, 0); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2() { _start: { lean_object* x_1; @@ -6914,16 +7938,16 @@ x_1 = lean_mk_string_unchecked(" and ", 5, 5); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2; +x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4() { _start: { lean_object* x_1; @@ -6931,440 +7955,11 @@ x_1 = lean_mk_string_unchecked(" are already in the same equivalence class", 42, return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(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) { -_start: -{ -lean_object* x_15; -lean_inc(x_1); -x_15 = l_Lean_Meta_Grind_getENode(x_1, 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(x_15); -lean_inc(x_2); -x_18 = l_Lean_Meta_Grind_getENode(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; uint8_t 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(x_18); -x_21 = lean_ctor_get(x_16, 2); -lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 2); -lean_inc(x_22); -x_23 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_21, x_22); -lean_dec(x_22); -lean_dec(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__7(x_16, x_19, x_3, x_4, x_1, x_2, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -lean_dec(x_19); -lean_dec(x_16); -lean_dec(x_3); -x_26 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__3; -x_27 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1; -x_32 = lean_unbox(x_29); -lean_dec(x_29); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -lean_free_object(x_27); -lean_dec(x_2); -lean_dec(x_1); -x_33 = lean_box(0); -x_34 = lean_apply_10(x_31, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_30); -return x_34; -} -else -{ -lean_object* x_35; uint8_t x_36; -x_35 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_30); -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -x_39 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_38); -lean_dec(x_2); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -x_43 = l_Lean_MessageData_ofFormat(x_37); -x_44 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -lean_ctor_set_tag(x_39, 7); -lean_ctor_set(x_39, 1, x_43); -lean_ctor_set(x_39, 0, x_44); -x_45 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3; -lean_ctor_set_tag(x_35, 7); -lean_ctor_set(x_35, 1, x_45); -lean_ctor_set(x_35, 0, x_39); -x_46 = l_Lean_MessageData_ofFormat(x_41); -lean_ctor_set_tag(x_27, 7); -lean_ctor_set(x_27, 1, x_46); -lean_ctor_set(x_27, 0, x_35); -x_47 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5; -x_48 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_48, 0, x_27); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_26, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_42); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_apply_10(x_31, x_50, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_51); -return x_52; -} -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; -x_53 = lean_ctor_get(x_39, 0); -x_54 = lean_ctor_get(x_39, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_39); -x_55 = l_Lean_MessageData_ofFormat(x_37); -x_56 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_57 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3; -lean_ctor_set_tag(x_35, 7); -lean_ctor_set(x_35, 1, x_58); -lean_ctor_set(x_35, 0, x_57); -x_59 = l_Lean_MessageData_ofFormat(x_53); -lean_ctor_set_tag(x_27, 7); -lean_ctor_set(x_27, 1, x_59); -lean_ctor_set(x_27, 0, x_35); -x_60 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5; -x_61 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_61, 0, x_27); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_26, x_61, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_54); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_apply_10(x_31, x_63, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_64); -return x_65; -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_66 = lean_ctor_get(x_35, 0); -x_67 = lean_ctor_get(x_35, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_35); -x_68 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_67); -lean_dec(x_2); -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 = l_Lean_MessageData_ofFormat(x_66); -x_73 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -if (lean_is_scalar(x_71)) { - x_74 = lean_alloc_ctor(7, 2, 0); -} else { - x_74 = x_71; - lean_ctor_set_tag(x_74, 7); -} -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -x_75 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3; -x_76 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -x_77 = l_Lean_MessageData_ofFormat(x_69); -lean_ctor_set_tag(x_27, 7); -lean_ctor_set(x_27, 1, x_77); -lean_ctor_set(x_27, 0, x_76); -x_78 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5; -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_27); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_26, x_79, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_apply_10(x_31, x_81, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_82); -return x_83; -} -} -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = lean_ctor_get(x_27, 0); -x_85 = lean_ctor_get(x_27, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_27); -x_86 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1; -x_87 = lean_unbox(x_84); -lean_dec(x_84); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_2); -lean_dec(x_1); -x_88 = lean_box(0); -x_89 = lean_apply_10(x_86, x_88, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_85); -return x_89; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_90 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_85); -lean_dec(x_1); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_93 = x_90; -} else { - lean_dec_ref(x_90); - x_93 = lean_box(0); -} -x_94 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_92); -lean_dec(x_2); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; -} else { - lean_dec_ref(x_94); - x_97 = lean_box(0); -} -x_98 = l_Lean_MessageData_ofFormat(x_91); -x_99 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -if (lean_is_scalar(x_97)) { - x_100 = lean_alloc_ctor(7, 2, 0); -} else { - x_100 = x_97; - lean_ctor_set_tag(x_100, 7); -} -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -x_101 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3; -if (lean_is_scalar(x_93)) { - x_102 = lean_alloc_ctor(7, 2, 0); -} else { - x_102 = x_93; - lean_ctor_set_tag(x_102, 7); -} -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Lean_MessageData_ofFormat(x_95); -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5; -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_26, x_106, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_96); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_apply_10(x_86, x_108, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_109); -return x_110; -} -} -} -} -else -{ -uint8_t x_111; -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_111 = !lean_is_exclusive(x_18); -if (x_111 == 0) -{ -return x_18; -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_18, 0); -x_113 = lean_ctor_get(x_18, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_18); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; -} -} -} -else -{ -uint8_t x_115; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_115 = !lean_is_exclusive(x_15); -if (x_115 == 0) -{ -return x_15; -} -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_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; -} -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("eq", 2, 2); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" ", 1, 1); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("=", 1, 1); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("≡", 3, 1); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__7; +x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -7372,168 +7967,359 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(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) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2; -x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_14; +lean_inc(x_1); +x_14 = l_Lean_Meta_Grind_getENode(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_unbox(x_16); -lean_dec(x_16); -if (x_17 == 0) +lean_dec(x_14); +lean_inc(x_2); +x_17 = l_Lean_Meta_Grind_getENode(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_15, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_15, 2); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 2); +lean_inc(x_21); +x_22 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_20, x_21); +lean_dec(x_21); +lean_dec(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8(x_15, x_18, x_3, x_4, x_1, x_2, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_18); lean_dec(x_15); -x_19 = lean_box(0); -x_20 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_4, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_18); -return x_20; +lean_dec(x_3); +x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; +x_26 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +x_27 = !lean_is_exclusive(x_26); +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_26, 0); +x_29 = lean_ctor_get(x_26, 1); +x_30 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1; +x_31 = lean_unbox(x_28); +lean_dec(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +lean_free_object(x_26); +lean_dec(x_2); +lean_dec(x_1); +x_32 = lean_box(0); +x_33 = lean_apply_10(x_30, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +return x_33; } else { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 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_15, 1); -x_23 = lean_ctor_get(x_15, 0); -lean_dec(x_23); -lean_inc(x_1); -x_24 = l_Lean_MessageData_ofExpr(x_1); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -lean_ctor_set_tag(x_15, 7); -lean_ctor_set(x_15, 1, x_24); -lean_ctor_set(x_15, 0, x_25); -x_26 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4; -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_26); -lean_inc(x_2); -x_28 = l_Lean_MessageData_ofExpr(x_2); -if (x_4 == 0) +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +x_38 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 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; -x_29 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6; -x_30 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_30, 0, x_27); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_26); -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_28); -x_33 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_25); -x_34 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -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(x_34); -x_37 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_4, x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_36); -lean_dec(x_35); -return x_37; +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; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = l_Lean_MessageData_ofFormat(x_36); +x_43 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_38, 7); +lean_ctor_set(x_38, 1, x_42); +lean_ctor_set(x_38, 0, x_43); +x_44 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; +lean_ctor_set_tag(x_34, 7); +lean_ctor_set(x_34, 1, x_44); +lean_ctor_set(x_34, 0, x_38); +x_45 = l_Lean_MessageData_ofFormat(x_40); +lean_ctor_set_tag(x_26, 7); +lean_ctor_set(x_26, 1, x_45); +lean_ctor_set(x_26, 0, x_34); +x_46 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5; +x_47 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_25, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_41); +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(x_48); +x_51 = lean_apply_10(x_30, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_50); +return x_51; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8; -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_27); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_26); -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_28); -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_25); -x_43 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_4, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); -lean_dec(x_44); -return x_46; -} -} -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; -x_47 = lean_ctor_get(x_15, 1); -lean_inc(x_47); -lean_dec(x_15); -lean_inc(x_1); -x_48 = l_Lean_MessageData_ofExpr(x_1); -x_49 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_50 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4; -x_52 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_inc(x_2); -x_53 = l_Lean_MessageData_ofExpr(x_2); -if (x_4 == 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; -x_54 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6; -x_55 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_54); +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; +x_52 = lean_ctor_get(x_38, 0); +x_53 = lean_ctor_get(x_38, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_38); +x_54 = l_Lean_MessageData_ofFormat(x_36); +x_55 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; x_56 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_51); -x_57 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_53); -x_58 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_49); -x_59 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_4, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_61); -lean_dec(x_60); -return x_62; +lean_ctor_set(x_56, 1, x_54); +x_57 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; +lean_ctor_set_tag(x_34, 7); +lean_ctor_set(x_34, 1, x_57); +lean_ctor_set(x_34, 0, x_56); +x_58 = l_Lean_MessageData_ofFormat(x_52); +lean_ctor_set_tag(x_26, 7); +lean_ctor_set(x_26, 1, x_58); +lean_ctor_set(x_26, 0, x_34); +x_59 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5; +x_60 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_60, 0, x_26); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_25, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_53); +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(x_61); +x_64 = lean_apply_10(x_30, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_63); +return x_64; +} } else { -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_63 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8; -x_64 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_64, 0, x_52); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_51); -x_66 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_53); -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_49); -x_68 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); -x_69 = lean_ctor_get(x_68, 0); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_65 = lean_ctor_get(x_34, 0); +x_66 = lean_ctor_get(x_34, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_34); +x_67 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_66); +lean_dec(x_2); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_4, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_70); -lean_dec(x_69); -return x_71; +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_70 = x_67; +} else { + lean_dec_ref(x_67); + x_70 = lean_box(0); } +x_71 = l_Lean_MessageData_ofFormat(x_65); +x_72 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(7, 2, 0); +} else { + x_73 = x_70; + lean_ctor_set_tag(x_73, 7); +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +x_74 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; +x_75 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_MessageData_ofFormat(x_68); +lean_ctor_set_tag(x_26, 7); +lean_ctor_set(x_26, 1, x_76); +lean_ctor_set(x_26, 0, x_75); +x_77 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5; +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_26); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_25, x_78, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_69); +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(x_79); +x_82 = lean_apply_10(x_30, x_80, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_ctor_get(x_26, 0); +x_84 = lean_ctor_get(x_26, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_26); +x_85 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1; +x_86 = lean_unbox(x_83); +lean_dec(x_83); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +lean_dec(x_2); +lean_dec(x_1); +x_87 = lean_box(0); +x_88 = lean_apply_10(x_85, x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +return x_88; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_89 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +lean_dec(x_1); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_92 = x_89; +} else { + lean_dec_ref(x_89); + x_92 = lean_box(0); +} +x_93 = l_Lean_Meta_Grind_ppENodeRef(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_91); +lean_dec(x_2); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; +} else { + lean_dec_ref(x_93); + x_96 = lean_box(0); +} +x_97 = l_Lean_MessageData_ofFormat(x_90); +x_98 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +if (lean_is_scalar(x_96)) { + x_99 = lean_alloc_ctor(7, 2, 0); +} else { + x_99 = x_96; + lean_ctor_set_tag(x_99, 7); +} +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__3; +if (lean_is_scalar(x_92)) { + x_101 = lean_alloc_ctor(7, 2, 0); +} else { + x_101 = x_92; + lean_ctor_set_tag(x_101, 7); +} +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_MessageData_ofFormat(x_94); +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5; +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_25, x_105, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_95); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_apply_10(x_85, x_107, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_108); +return x_109; +} +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_110 = !lean_is_exclusive(x_17); +if (x_110 == 0) +{ +return x_17; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_17, 0); +x_112 = lean_ctor_get(x_17, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_17); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_114 = !lean_is_exclusive(x_14); +if (x_114 == 0) +{ +return x_14; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_14, 0); +x_116 = lean_ctor_get(x_14, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_14); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } } @@ -7637,11 +8423,22 @@ lean_dec(x_7); return x_18; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; lean_object* x_18; +x_17 = lean_unbox(x_4); +lean_dec(x_4); +x_18 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_7); +return x_18; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(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(x_8); lean_dec(x_7); @@ -7654,17 +8451,6 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; lean_object* x_16; -x_15 = lean_unbox(x_4); -lean_dec(x_4); -x_16 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_5); -return x_16; -} -} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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: { @@ -7728,15 +8514,27 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t 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_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t 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; x_23 = lean_ctor_get(x_11, 0); x_24 = lean_ctor_get(x_11, 1); x_25 = lean_ctor_get(x_11, 2); x_26 = lean_ctor_get(x_11, 3); x_27 = lean_ctor_get(x_11, 4); -x_28 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +x_28 = lean_ctor_get_uint8(x_11, sizeof(void*)*14); x_29 = lean_ctor_get(x_11, 6); x_30 = lean_ctor_get(x_11, 7); +x_31 = lean_ctor_get(x_11, 8); +x_32 = lean_ctor_get(x_11, 9); +x_33 = lean_ctor_get(x_11, 10); +x_34 = lean_ctor_get(x_11, 11); +x_35 = lean_ctor_get(x_11, 12); +x_36 = lean_ctor_get(x_11, 13); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_27); @@ -7745,37 +8543,43 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_11); -x_31 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1; -x_32 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_32, 0, x_23); -lean_ctor_set(x_32, 1, x_24); -lean_ctor_set(x_32, 2, x_25); -lean_ctor_set(x_32, 3, x_26); -lean_ctor_set(x_32, 4, x_27); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_29); -lean_ctor_set(x_32, 7, x_30); -lean_ctor_set_uint8(x_32, sizeof(void*)*8, x_28); -x_33 = lean_st_ref_set(x_1, x_32, x_12); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_35 = x_33; +x_37 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1; +x_38 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_34); +lean_ctor_set(x_38, 12, x_35); +lean_ctor_set(x_38, 13, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*14, x_28); +x_39 = lean_st_ref_set(x_1, x_38, x_12); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; } else { - lean_dec_ref(x_33); - x_35 = lean_box(0); + lean_dec_ref(x_39); + x_41 = lean_box(0); } -x_36 = lean_box(0); -if (lean_is_scalar(x_35)) { - x_37 = lean_alloc_ctor(0, 2, 0); +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); } else { - x_37 = x_35; + x_43 = x_41; } -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -return x_37; +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; } } } @@ -7867,16 +8671,28 @@ return x_26; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 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_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 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; x_27 = lean_ctor_get(x_17, 0); x_28 = lean_ctor_get(x_17, 1); x_29 = lean_ctor_get(x_17, 2); x_30 = lean_ctor_get(x_17, 3); x_31 = lean_ctor_get(x_17, 4); x_32 = lean_ctor_get(x_17, 5); -x_33 = lean_ctor_get_uint8(x_17, sizeof(void*)*8); +x_33 = lean_ctor_get_uint8(x_17, sizeof(void*)*14); x_34 = lean_ctor_get(x_17, 6); x_35 = lean_ctor_get(x_17, 7); +x_36 = lean_ctor_get(x_17, 8); +x_37 = lean_ctor_get(x_17, 9); +x_38 = lean_ctor_get(x_17, 10); +x_39 = lean_ctor_get(x_17, 11); +x_40 = lean_ctor_get(x_17, 12); +x_41 = lean_ctor_get(x_17, 13); +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_inc(x_32); @@ -7886,134 +8702,164 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_17); -x_36 = lean_array_pop(x_32); -x_37 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_37, 0, x_27); -lean_ctor_set(x_37, 1, x_28); -lean_ctor_set(x_37, 2, x_29); -lean_ctor_set(x_37, 3, x_30); -lean_ctor_set(x_37, 4, x_31); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_34); -lean_ctor_set(x_37, 7, x_35); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_33); -x_38 = lean_st_ref_set(x_1, x_37, x_18); -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; +x_42 = lean_array_pop(x_32); +x_43 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_43, 0, x_27); +lean_ctor_set(x_43, 1, x_28); +lean_ctor_set(x_43, 2, x_29); +lean_ctor_set(x_43, 3, x_30); +lean_ctor_set(x_43, 4, x_31); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_34); +lean_ctor_set(x_43, 7, x_35); +lean_ctor_set(x_43, 8, x_36); +lean_ctor_set(x_43, 9, x_37); +lean_ctor_set(x_43, 10, x_38); +lean_ctor_set(x_43, 11, x_39); +lean_ctor_set(x_43, 12, x_40); +lean_ctor_set(x_43, 13, x_41); +lean_ctor_set_uint8(x_43, sizeof(void*)*14, x_33); +x_44 = lean_st_ref_set(x_1, x_43, x_18); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_44); + x_46 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_40; + x_47 = x_46; } -lean_ctor_set(x_41, 0, x_15); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_ctor_set(x_47, 0, x_15); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_10); -x_44 = lean_ctor_get(x_42, 5); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Array_back_x3f___rarg(x_44); -lean_dec(x_44); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; -} -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; lean_object* x_55; uint8_t 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; -x_47 = lean_st_ref_take(x_1, x_43); -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; +x_48 = lean_ctor_get(x_10, 0); +x_49 = lean_ctor_get(x_10, 1); lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_48); +lean_dec(x_10); +x_50 = lean_ctor_get(x_48, 5); lean_inc(x_50); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_48, 2); -lean_inc(x_52); -x_53 = lean_ctor_get(x_48, 3); -lean_inc(x_53); -x_54 = lean_ctor_get(x_48, 4); +lean_dec(x_48); +x_51 = l_Array_back_x3f___rarg(x_50); +lean_dec(x_50); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; +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_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; uint8_t 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; +x_53 = lean_st_ref_take(x_1, x_49); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_48, 5); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -x_56 = lean_ctor_get_uint8(x_48, sizeof(void*)*8); -x_57 = lean_ctor_get(x_48, 6); +lean_dec(x_53); +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_54, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_48, 7); +x_58 = lean_ctor_get(x_54, 2); lean_inc(x_58); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - lean_ctor_release(x_48, 2); - lean_ctor_release(x_48, 3); - lean_ctor_release(x_48, 4); - lean_ctor_release(x_48, 5); - lean_ctor_release(x_48, 6); - lean_ctor_release(x_48, 7); - x_59 = x_48; -} else { - lean_dec_ref(x_48); - x_59 = lean_box(0); -} -x_60 = lean_array_pop(x_55); -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(0, 8, 1); -} else { - x_61 = x_59; -} -lean_ctor_set(x_61, 0, x_50); -lean_ctor_set(x_61, 1, x_51); -lean_ctor_set(x_61, 2, x_52); -lean_ctor_set(x_61, 3, x_53); -lean_ctor_set(x_61, 4, x_54); -lean_ctor_set(x_61, 5, x_60); -lean_ctor_set(x_61, 6, x_57); -lean_ctor_set(x_61, 7, x_58); -lean_ctor_set_uint8(x_61, sizeof(void*)*8, x_56); -x_62 = lean_st_ref_set(x_1, x_61, x_49); -x_63 = lean_ctor_get(x_62, 1); +x_59 = lean_ctor_get(x_54, 3); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 4); +lean_inc(x_60); +x_61 = lean_ctor_get(x_54, 5); +lean_inc(x_61); +x_62 = lean_ctor_get_uint8(x_54, sizeof(void*)*14); +x_63 = lean_ctor_get(x_54, 6); lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; +x_64 = lean_ctor_get(x_54, 7); +lean_inc(x_64); +x_65 = lean_ctor_get(x_54, 8); +lean_inc(x_65); +x_66 = lean_ctor_get(x_54, 9); +lean_inc(x_66); +x_67 = lean_ctor_get(x_54, 10); +lean_inc(x_67); +x_68 = lean_ctor_get(x_54, 11); +lean_inc(x_68); +x_69 = lean_ctor_get(x_54, 12); +lean_inc(x_69); +x_70 = lean_ctor_get(x_54, 13); +lean_inc(x_70); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + lean_ctor_release(x_54, 2); + lean_ctor_release(x_54, 3); + lean_ctor_release(x_54, 4); + lean_ctor_release(x_54, 5); + lean_ctor_release(x_54, 6); + lean_ctor_release(x_54, 7); + lean_ctor_release(x_54, 8); + lean_ctor_release(x_54, 9); + lean_ctor_release(x_54, 10); + lean_ctor_release(x_54, 11); + lean_ctor_release(x_54, 12); + lean_ctor_release(x_54, 13); + x_71 = x_54; } else { - lean_dec_ref(x_62); - x_64 = lean_box(0); + lean_dec_ref(x_54); + x_71 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(0, 2, 0); +x_72 = lean_array_pop(x_61); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 14, 1); } else { - x_65 = x_64; + x_73 = x_71; } -lean_ctor_set(x_65, 0, x_45); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_ctor_set(x_73, 0, x_56); +lean_ctor_set(x_73, 1, x_57); +lean_ctor_set(x_73, 2, x_58); +lean_ctor_set(x_73, 3, x_59); +lean_ctor_set(x_73, 4, x_60); +lean_ctor_set(x_73, 5, x_72); +lean_ctor_set(x_73, 6, x_63); +lean_ctor_set(x_73, 7, x_64); +lean_ctor_set(x_73, 8, x_65); +lean_ctor_set(x_73, 9, x_66); +lean_ctor_set(x_73, 10, x_67); +lean_ctor_set(x_73, 11, x_68); +lean_ctor_set(x_73, 12, x_69); +lean_ctor_set(x_73, 13, x_70); +lean_ctor_set_uint8(x_73, sizeof(void*)*14, x_62); +x_74 = lean_st_ref_set(x_1, x_73, x_55); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; +} else { + lean_dec_ref(x_74); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_51); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } @@ -8055,12 +8901,20 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Gr _start: { lean_object* x_11; lean_object* x_12; -x_11 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_popNextEq_x3f(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); +x_11 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; +x_12 = l_Lean_Core_checkSystem(x_11, x_8, x_9, x_10); if (lean_obj_tag(x_12) == 0) { -uint8_t x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_popNextEq_x3f(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8069,46 +8923,46 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_11, 0); -lean_dec(x_14); -x_15 = lean_box(0); -lean_ctor_set(x_11, 0, x_15); -return x_11; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_14, 0, x_18); +return x_14; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; -x_19 = lean_ctor_get(x_12, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); -lean_dec(x_12); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_dec(x_11); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 1); +lean_dec(x_14); +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_19); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +x_22 = lean_ctor_get(x_15, 0); lean_inc(x_22); -x_23 = lean_ctor_get(x_19, 2); +lean_dec(x_15); +x_23 = lean_ctor_get(x_14, 1); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_19, sizeof(void*)*3); -lean_dec(x_19); +lean_dec(x_14); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_22, 2); +lean_inc(x_26); +x_27 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +lean_dec(x_22); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -8117,19 +8971,19 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_21, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -if (lean_obj_tag(x_25) == 0) +x_28 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_24, x_25, x_26, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); -return x_27; +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +return x_30; } else { -uint8_t x_28; +uint8_t x_31; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8138,27 +8992,58 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -return x_25; +return x_28; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -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; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_28); +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_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_35 = !lean_is_exclusive(x_12); +if (x_35 == 0) +{ +return x_12; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_12, 0); +x_37 = lean_ctor_get(x_12, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_12); +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; +} +} +} } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1() { _start: @@ -8748,7 +9633,7 @@ return x_45; } } } -static lean_object* _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -8758,7 +9643,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__2() { _start: { lean_object* x_1; @@ -8766,382 +9651,124 @@ x_1 = lean_mk_string_unchecked("HEq", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_add_go___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_add_go___lambda__4___closed__2; +x_2 = l_Lean_Meta_Grind_add_go___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__4(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) { -_start: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -lean_inc(x_1); -x_15 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_1, x_10, x_11, x_12, x_13, x_14); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Expr_cleanupAnnotations(x_16); -x_19 = l_Lean_Expr_isApp(x_18); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_18); -x_20 = lean_box(0); -x_21 = l_Lean_Meta_Grind_add_go___lambda__3(x_1, x_3, x_4, x_2, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = l_Lean_Expr_appArg(x_18, lean_box(0)); -x_23 = l_Lean_Expr_appFnCleanup(x_18, lean_box(0)); -x_24 = l_Lean_Expr_isApp(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -lean_dec(x_23); -lean_dec(x_22); -x_25 = lean_box(0); -x_26 = l_Lean_Meta_Grind_add_go___lambda__3(x_1, x_3, x_4, x_2, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = l_Lean_Expr_appArg(x_23, lean_box(0)); -x_28 = l_Lean_Expr_appFnCleanup(x_23, lean_box(0)); -x_29 = l_Lean_Expr_isApp(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_22); -x_30 = lean_box(0); -x_31 = l_Lean_Meta_Grind_add_go___lambda__3(x_1, x_3, x_4, x_2, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_31; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = l_Lean_Expr_appArg(x_28, lean_box(0)); -x_33 = l_Lean_Expr_appFnCleanup(x_28, lean_box(0)); -x_34 = l_Lean_Meta_Grind_add_go___lambda__4___closed__1; -x_35 = l_Lean_Expr_isConstOf(x_33, x_34); -if (x_35 == 0) -{ -uint8_t x_36; -lean_dec(x_27); -x_36 = l_Lean_Expr_isApp(x_33); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_22); -x_37 = lean_box(0); -x_38 = l_Lean_Meta_Grind_add_go___lambda__3(x_1, x_3, x_4, x_2, x_37, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = l_Lean_Expr_appFnCleanup(x_33, lean_box(0)); -x_40 = l_Lean_Meta_Grind_add_go___lambda__4___closed__3; -x_41 = l_Lean_Expr_isConstOf(x_39, x_40); -lean_dec(x_39); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_32); -lean_dec(x_22); -x_42 = lean_box(0); -x_43 = l_Lean_Meta_Grind_add_go___lambda__3(x_1, x_3, x_4, x_2, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_43; -} -else -{ -uint8_t x_44; lean_object* x_45; -x_44 = 1; -x_45 = l_Lean_Meta_Grind_add_goEq(x_2, x_3, x_1, x_32, x_22, x_4, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_45; -} -} -} -else -{ -uint8_t x_46; lean_object* x_47; -lean_dec(x_33); -lean_dec(x_32); -x_46 = 0; -x_47 = l_Lean_Meta_Grind_add_goEq(x_2, x_3, x_1, x_27, x_22, x_4, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); -return x_47; -} -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("add", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; -x_2 = l_Lean_Meta_Grind_add_go___closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("isNeg: ", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_add_go___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__13; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_add_go___closed__5; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_add_go___closed__4; -x_2 = l_Lean_Meta_Grind_add_go___closed__6; -x_3 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_add_go___closed__7; -x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; -x_3 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("true", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_add_go___closed__9; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_add_go___closed__10; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_add_go___closed__4; -x_2 = l_Lean_Meta_Grind_add_go___closed__11; -x_3 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_add_go___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_add_go___closed__12; -x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6; -x_3 = lean_alloc_ctor(7, 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_add_go(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) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = l_Lean_Meta_Grind_add_go___closed__2; -x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_inc(x_3); +x_14 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_3, x_9, x_10, x_11, x_12, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_unbox(x_16); -lean_dec(x_16); -if (x_17 == 0) +lean_dec(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_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); +lean_object* x_19; lean_object* x_20; +lean_dec(x_17); x_19 = lean_box(0); -x_20 = l_Lean_Meta_Grind_add_go___lambda__4(x_3, x_1, x_2, x_4, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +x_20 = l_Lean_Meta_Grind_add_go___lambda__3(x_3, x_2, x_4, x_1, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); return x_20; } else { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = l_Lean_Expr_appArg(x_17, lean_box(0)); +x_22 = l_Lean_Expr_appFnCleanup(x_17, lean_box(0)); +x_23 = l_Lean_Expr_isApp(x_22); +if (x_23 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 1); -x_23 = lean_ctor_get(x_15, 0); -lean_dec(x_23); -lean_inc(x_3); -x_24 = l_Lean_MessageData_ofExpr(x_3); -if (x_4 == 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; lean_object* x_31; -x_25 = l_Lean_Meta_Grind_add_go___closed__8; -lean_ctor_set_tag(x_15, 7); -lean_ctor_set(x_15, 1, x_24); -lean_ctor_set(x_15, 0, x_25); -x_26 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -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(x_28); -x_31 = l_Lean_Meta_Grind_add_go___lambda__4(x_3, x_1, x_2, x_4, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_30); -lean_dec(x_29); -return x_31; +lean_object* x_24; lean_object* x_25; +lean_dec(x_22); +lean_dec(x_21); +x_24 = lean_box(0); +x_25 = l_Lean_Meta_Grind_add_go___lambda__3(x_3, x_2, x_4, x_1, x_24, 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_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_32 = l_Lean_Meta_Grind_add_go___closed__13; -lean_ctor_set_tag(x_15, 7); -lean_ctor_set(x_15, 1, x_24); -lean_ctor_set(x_15, 0, x_32); -x_33 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_34 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_34, 0, x_15); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -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(x_35); -x_38 = l_Lean_Meta_Grind_add_go___lambda__4(x_3, x_1, x_2, x_4, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -lean_dec(x_36); -return x_38; +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = l_Lean_Expr_appArg(x_22, lean_box(0)); +x_27 = l_Lean_Expr_appFnCleanup(x_22, lean_box(0)); +x_28 = l_Lean_Expr_isApp(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +x_29 = lean_box(0); +x_30 = l_Lean_Meta_Grind_add_go___lambda__3(x_3, x_2, x_4, x_1, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = l_Lean_Expr_appArg(x_27, lean_box(0)); +x_32 = l_Lean_Expr_appFnCleanup(x_27, lean_box(0)); +x_33 = l_Lean_Meta_Grind_add_go___closed__1; +x_34 = l_Lean_Expr_isConstOf(x_32, x_33); +if (x_34 == 0) +{ +uint8_t x_35; +lean_dec(x_26); +x_35 = l_Lean_Expr_isApp(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_21); +x_36 = lean_box(0); +x_37 = l_Lean_Meta_Grind_add_go___lambda__3(x_3, x_2, x_4, x_1, x_36, 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; lean_object* x_39; uint8_t x_40; +x_38 = l_Lean_Expr_appFnCleanup(x_32, lean_box(0)); +x_39 = l_Lean_Meta_Grind_add_go___closed__3; +x_40 = l_Lean_Expr_isConstOf(x_38, x_39); +lean_dec(x_38); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_31); +lean_dec(x_21); +x_41 = lean_box(0); +x_42 = l_Lean_Meta_Grind_add_go___lambda__3(x_3, x_2, x_4, x_1, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_42; +} +else +{ +uint8_t x_43; lean_object* x_44; +x_43 = 1; +x_44 = l_Lean_Meta_Grind_add_goEq(x_1, x_2, x_3, x_31, x_21, x_4, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_44; +} } } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_dec(x_15); -lean_inc(x_3); -x_40 = l_Lean_MessageData_ofExpr(x_3); -if (x_4 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_41 = l_Lean_Meta_Grind_add_go___closed__8; -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_44 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -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(x_45); -x_48 = l_Lean_Meta_Grind_add_go___lambda__4(x_3, x_1, x_2, x_4, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); -lean_dec(x_46); -return x_48; +uint8_t x_45; lean_object* x_46; +lean_dec(x_32); +lean_dec(x_31); +x_45 = 0; +x_46 = l_Lean_Meta_Grind_add_goEq(x_1, x_2, x_3, x_26, x_21, x_4, x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_46; } -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_49 = l_Lean_Meta_Grind_add_go___closed__13; -x_50 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_40); -x_51 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -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_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_14, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = l_Lean_Meta_Grind_add_go___lambda__4(x_3, x_1, x_2, x_4, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_55); -lean_dec(x_54); -return x_56; } } } @@ -9178,17 +9805,6 @@ lean_dec(x_5); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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; lean_object* x_16; -x_15 = lean_unbox(x_4); -lean_dec(x_4); -x_16 = l_Lean_Meta_Grind_add_go___lambda__4(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_5); -return x_16; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_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) { _start: { @@ -9343,24 +9959,25 @@ static lean_object* _init_l_Lean_Meta_Grind_add___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(" : ", 3, 3); +x_1 = lean_mk_string_unchecked("assert", 6, 6); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_add___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_add___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1; +x_2 = l_Lean_Meta_Grind_add___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = l_Lean_Meta_Grind_add_go___closed__2; +x_13 = l_Lean_Meta_Grind_add___closed__2; x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -9382,71 +9999,53 @@ uint8_t x_20; x_20 = !lean_is_exclusive(x_14); 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_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_21 = lean_ctor_get(x_14, 1); x_22 = lean_ctor_get(x_14, 0); lean_dec(x_22); -lean_inc(x_2); -x_23 = l_Lean_MessageData_ofExpr(x_2); -x_24 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +lean_inc(x_1); +x_23 = l_Lean_MessageData_ofExpr(x_1); +x_24 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; lean_ctor_set_tag(x_14, 7); lean_ctor_set(x_14, 1, x_23); lean_ctor_set(x_14, 0, x_24); -x_25 = l_Lean_Meta_Grind_add___closed__2; -x_26 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_26, 0, x_14); -lean_ctor_set(x_26, 1, x_25); -lean_inc(x_1); -x_27 = l_Lean_MessageData_ofExpr(x_1); -x_28 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_24); -x_30 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); -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_30); -x_33 = l_Lean_Meta_Grind_add___lambda__4(x_1, x_2, x_3, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); -lean_dec(x_31); -return x_33; +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +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(x_26); +x_29 = l_Lean_Meta_Grind_add___lambda__4(x_1, x_2, x_3, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +lean_dec(x_27); +return x_29; } 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; -x_34 = lean_ctor_get(x_14, 1); -lean_inc(x_34); +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_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); lean_dec(x_14); -lean_inc(x_2); -x_35 = l_Lean_MessageData_ofExpr(x_2); -x_36 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_37 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Meta_Grind_add___closed__2; -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); lean_inc(x_1); -x_40 = l_Lean_MessageData_ofExpr(x_1); -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_36); -x_43 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_42, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_34); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l_Lean_Meta_Grind_add___lambda__4(x_1, x_2, x_3, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -lean_dec(x_44); -return x_46; +x_31 = l_Lean_MessageData_ofExpr(x_1); +x_32 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +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(x_35); +x_38 = l_Lean_Meta_Grind_add___lambda__4(x_1, x_2, x_3, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +lean_dec(x_36); +return x_38; } } } @@ -9478,7 +10077,7 @@ lean_dec(x_4); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addHyp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_addHypothesis(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; @@ -9566,6 +10165,28 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__1(); l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__2 = _init_l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___closed__2(); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__1); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__2); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__3); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__4); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__5); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__6); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__7); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__1); +l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2 = _init_l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___closed__2); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithTrueEqFalse___closed__2(); @@ -9614,10 +10235,6 @@ l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__3); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__5); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__6); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2(); @@ -9628,10 +10245,6 @@ l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__4); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__5); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__6); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__7); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__2(); @@ -9640,16 +10253,10 @@ l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2 lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__3); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__3___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__3___closed__1); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__1); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__2); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__3); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__4); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__9___closed__5); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__2); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__2(); @@ -9660,48 +10267,16 @@ l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4 lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__5); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__6); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__7); -l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__8); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1); -l_Lean_Meta_Grind_add_go___lambda__4___closed__1 = _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___lambda__4___closed__1); -l_Lean_Meta_Grind_add_go___lambda__4___closed__2 = _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___lambda__4___closed__2); -l_Lean_Meta_Grind_add_go___lambda__4___closed__3 = _init_l_Lean_Meta_Grind_add_go___lambda__4___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___lambda__4___closed__3); l_Lean_Meta_Grind_add_go___closed__1 = _init_l_Lean_Meta_Grind_add_go___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__1); l_Lean_Meta_Grind_add_go___closed__2 = _init_l_Lean_Meta_Grind_add_go___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__2); l_Lean_Meta_Grind_add_go___closed__3 = _init_l_Lean_Meta_Grind_add_go___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__3); -l_Lean_Meta_Grind_add_go___closed__4 = _init_l_Lean_Meta_Grind_add_go___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__4); -l_Lean_Meta_Grind_add_go___closed__5 = _init_l_Lean_Meta_Grind_add_go___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__5); -l_Lean_Meta_Grind_add_go___closed__6 = _init_l_Lean_Meta_Grind_add_go___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__6); -l_Lean_Meta_Grind_add_go___closed__7 = _init_l_Lean_Meta_Grind_add_go___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__7); -l_Lean_Meta_Grind_add_go___closed__8 = _init_l_Lean_Meta_Grind_add_go___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__8); -l_Lean_Meta_Grind_add_go___closed__9 = _init_l_Lean_Meta_Grind_add_go___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__9); -l_Lean_Meta_Grind_add_go___closed__10 = _init_l_Lean_Meta_Grind_add_go___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__10); -l_Lean_Meta_Grind_add_go___closed__11 = _init_l_Lean_Meta_Grind_add_go___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__11); -l_Lean_Meta_Grind_add_go___closed__12 = _init_l_Lean_Meta_Grind_add_go___closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__12); -l_Lean_Meta_Grind_add_go___closed__13 = _init_l_Lean_Meta_Grind_add_go___closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_add_go___closed__13); l_Lean_Meta_Grind_add___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_add___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_add___lambda__3___closed__1); l_Lean_Meta_Grind_add___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_add___lambda__3___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c new file mode 100644 index 0000000000..b573249175 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c @@ -0,0 +1,14724 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.EMatch +// Imports: Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Intro +#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_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem(lean_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_EMatch_ematchTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_object*); +extern lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_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_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedContext; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2; +lean_object* l_Lean_Meta_isExprDefEq(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_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___boxed(lean_object**); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6; +uint64_t lean_uint64_lor(uint64_t, uint64_t); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3; +uint8_t l_Lean_Expr_isApp(lean_object*); +lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l_Lean_Meta_Grind_iterate(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___rarg(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_checkSystem(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ematchStar___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ematch___closed__1; +uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__4; +lean_object* l_instInhabitedReaderT___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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*); +static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1; +lean_object* l_Lean_Expr_bvar___override(lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1; +extern lean_object* l_Lean_Meta_Grind_grind_debug_proofs; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_environment_find(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorems___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___boxed(lean_object**); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3; +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_assertNext_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1; +static lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4(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_isBVar(lean_object*); +lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__2; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_instInhabitedPUnit; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); +lean_object* l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_Name_mkStr3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__5; +lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem(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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2; +lean_object* lean_checked_assign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_reverse___rarg(lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3; +uint8_t lean_expr_eqv(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(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_EMatch_instInhabitedState; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg___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_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1(size_t, size_t, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8; +lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded(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_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +lean_object* l_Lean_Meta_Grind_groundPattern_x3f(lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1; +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +lean_object* l_Lean_MessageData_ofFormat(lean_object*); +lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2; +lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(lean_object*, 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_EMatch_instInhabitedChoice___closed__2; +lean_object* l_outOfBounds___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5(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_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ematch___closed__2; +lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___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*); +uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_to_list(lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1; +lean_object* l_Lean_Expr_toHeadIndex(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData(lean_object*); +static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2; +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21(lean_object*); +extern lean_object* l_Lean_instInhabitedExpr; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4___boxed(lean_object**); +lean_object* l_Lean_MessageData_ofConst(lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_EMatch_instInhabitedCnstr; +uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_EMatch_M_run_x27___rarg(lean_object*, 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_ematchAndAssert_x3f(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_ematchAndAssert_x3f___lambda__4___closed__1; +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1___boxed(lean_object**); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2; +uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); +static uint64_t l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1; +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3; +lean_object* l_Lean_Expr_appFn_x21(lean_object*); +static lean_object* l_Lean_Meta_Grind_ematch___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4; +extern lean_object* l_Lean_Meta_instMonadMetaM; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9___boxed(lean_object**); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +uint8_t l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); +lean_object* l_OptionT_instMonad___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___boxed(lean_object**); +lean_object* l_Lean_MessageData_ofExpr(lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(lean_object*, lean_object*, lean_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_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_tail_x21___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(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_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___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*); +double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorems(lean_object*, 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_forallMetaBoundedTelescope(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___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* l_Lean_Meta_Grind_getNext(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_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3; +lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___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_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_M_run_x27(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11___rarg(lean_object*, lean_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_ematch___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__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_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_addTheoremInstance(lean_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_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6___boxed(lean_object**); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2; +lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8; +static double l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__7___boxed(lean_object**); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1; +lean_object* l_Lean_Meta_Grind_markTheoremInstance(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_isConstOf(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_isEqv(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_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3; +static lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1; +lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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*); +uint64_t lean_uint64_shift_left(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6(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_object*); +lean_object* l_Lean_Meta_Grind_getENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3___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_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_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* l_List_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_mk(lean_object*); +lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3(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_object*); +lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___boxed(lean_object**); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9(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_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_Expr_fvar___override(lean_object*); +size_t lean_array_size(lean_object*); +lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11(lean_object*, 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_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6; +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1; +static size_t l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1; +lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___boxed(lean_object**); +lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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*); +static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3; +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedChoice; +uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Expr_bvarIdx_x21(lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); +lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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*); +uint8_t l_Lean_Expr_isConst(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +uint8_t l_Lean_Expr_isFVar(lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2; +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_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*); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__8(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_object*); +lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___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_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_instMonad___rarg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue(lean_object*, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[grind_unassigned]", 18, 18); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2() { +_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_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3() { +_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_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3; +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1(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; uint8_t x_9; size_t x_10; size_t x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_9 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_5, x_8); +x_10 = 1; +x_11 = lean_usize_add(x_2, x_10); +if (x_9 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Lean_MessageData_ofExpr(x_5); +x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_14 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_array_uset(x_7, x_2, x_15); +x_2 = x_11; +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_5); +x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4; +x_19 = lean_array_uset(x_7, x_2, x_18); +x_2 = x_11; +x_3 = x_19; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData(lean_object* x_1) { +_start: +{ +lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; +x_2 = l_Array_reverse___rarg(x_1); +x_3 = lean_array_size(x_2); +x_4 = 0; +x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1(x_3, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___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_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1() { +_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_EMatch_instInhabitedChoice___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedChoice() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(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_EMatch_instInhabitedContext___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; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1; +x_3 = l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1; +x_6 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_1); +lean_ctor_set(x_6, 5, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2; +x_3 = lean_alloc_ctor(0, 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_Meta_Grind_EMatch_instInhabitedContext() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_instInhabitedState() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_M_run_x27___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; +x_11 = lean_box(0); +x_12 = lean_st_mk_ref(x_11, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1; +lean_inc(x_13); +x_16 = lean_apply_11(x_1, x_15, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +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(x_16); +x_19 = lean_st_ref_get(x_13, x_18); +lean_dec(x_13); +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_17); +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_17); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_dec(x_13); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +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_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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_M_run_x27(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_EMatch_M_run_x27___rarg), 10, 0); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_instMonadMetaM; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4; +x_2 = l_OptionT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5; +x_2 = l_Lean_Meta_Grind_EMatch_instInhabitedChoice; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___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; lean_object* x_12; lean_object* x_13; +x_11 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6; +x_12 = lean_panic_fn(x_11, x_1); +x_13 = lean_apply_9(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.EMatch", 29, 29); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.EMatch.0.Lean.Meta.Grind.EMatch.assign\?", 71, 71); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3() { +_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_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___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; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2; +x_3 = lean_unsigned_to_nat(80u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_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_object* x_12) { +_start: +{ +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_1, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 2); +lean_inc(x_15); +x_16 = lean_array_get_size(x_15); +x_17 = lean_nat_dec_lt(x_2, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_18 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__4; +x_19 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_array_fget(x_15, x_2); +x_21 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_22 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_20, x_21); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_23 = l_Lean_Meta_Grind_isEqv(x_20, 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(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); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +uint8_t x_26; +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_23, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_23, 0, x_28); +return x_23; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_dec(x_23); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_23); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_23, 0); +lean_dec(x_33); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_23, 0, x_34); +return x_23; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_23, 1); +lean_inc(x_35); +lean_dec(x_23); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_1); +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_1); +x_38 = !lean_is_exclusive(x_23); +if (x_38 == 0) +{ +return x_23; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_23, 0); +x_40 = lean_ctor_get(x_23, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_23); +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_20); +lean_dec(x_11); +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); +x_42 = !lean_is_exclusive(x_1); +if (x_42 == 0) +{ +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_43 = lean_ctor_get(x_1, 2); +lean_dec(x_43); +x_44 = lean_ctor_get(x_1, 1); +lean_dec(x_44); +x_45 = lean_ctor_get(x_1, 0); +lean_dec(x_45); +x_46 = lean_array_fset(x_15, x_2, x_3); +lean_ctor_set(x_1, 2, x_46); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_1); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_12); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_1); +x_49 = lean_array_fset(x_15, x_2, x_3); +x_50 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_50, 0, x_13); +lean_ctor_set(x_50, 1, x_14); +lean_ctor_set(x_50, 2, 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_12); +return x_52; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_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: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f(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_2); +return x_13; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Expr_isFVar(x_1); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = l_Lean_Expr_isConst(x_1); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Expr_constName_x21(x_1); +x_7 = l_Lean_Expr_isConstOf(x_2, x_6); +lean_dec(x_6); +return x_7; +} +} +else +{ +uint8_t x_8; +x_8 = lean_expr_eqv(x_1, x_2); +if (x_8 == 0) +{ +uint8_t x_9; +x_9 = l_Lean_Expr_isConst(x_1); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Expr_constName_x21(x_1); +x_12 = l_Lean_Expr_isConstOf(x_2, x_11); +lean_dec(x_11); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 1; +return x_13; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = l_Lean_Expr_appArg_x21(x_1); +x_15 = l_Lean_Expr_appArg_x21(x_2); +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_17 = lean_expr_eqv(x_14, x_16); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = l_Lean_Expr_isBVar(x_14); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = l_Lean_Meta_Grind_groundPattern_x3f(x_14); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_15); +x_21 = !lean_is_exclusive(x_3); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_3, 0); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_3, 0, x_23); +x_24 = l_Lean_Expr_appFn_x21(x_1); +x_25 = l_Lean_Expr_appFn_x21(x_2); +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_3, x_24, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_25); +lean_dec(x_24); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_27 = lean_ctor_get(x_3, 0); +x_28 = lean_ctor_get(x_3, 1); +x_29 = lean_ctor_get(x_3, 2); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_3); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_30, 1, x_27); +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +lean_ctor_set(x_31, 2, x_29); +x_32 = l_Lean_Expr_appFn_x21(x_1); +x_33 = l_Lean_Expr_appFn_x21(x_2); +x_34 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_31, x_32, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_33); +lean_dec(x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_14); +x_35 = lean_ctor_get(x_19, 0); +lean_inc(x_35); +lean_dec(x_19); +x_36 = l_Lean_Meta_Grind_isEqv(x_35, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_unbox(x_37); +lean_dec(x_37); +if (x_38 == 0) +{ +uint8_t x_39; +lean_dec(x_12); +lean_dec(x_11); +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); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_36, 0); +lean_dec(x_40); +x_41 = lean_box(0); +lean_ctor_set(x_36, 0, x_41); +return x_36; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_36, 1); +lean_inc(x_42); +lean_dec(x_36); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); +lean_dec(x_36); +x_46 = l_Lean_Expr_appFn_x21(x_1); +x_47 = l_Lean_Expr_appFn_x21(x_2); +x_48 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_3, x_46, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); +lean_dec(x_47); +lean_dec(x_46); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_dec(x_12); +lean_dec(x_11); +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); +x_49 = !lean_is_exclusive(x_36); +if (x_49 == 0) +{ +return x_36; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_36, 0); +x_51 = lean_ctor_get(x_36, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_36); +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 +{ +lean_object* x_53; lean_object* x_54; +x_53 = l_Lean_Expr_bvarIdx_x21(x_14); +lean_dec(x_14); +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_inc(x_5); +x_54 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f(x_3, x_53, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_53); +if (lean_obj_tag(x_54) == 0) +{ +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_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) +{ +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); +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_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_54, 1); +lean_inc(x_62); +lean_dec(x_54); +x_63 = lean_ctor_get(x_55, 0); +lean_inc(x_63); +lean_dec(x_55); +x_64 = l_Lean_Expr_appFn_x21(x_1); +x_65 = l_Lean_Expr_appFn_x21(x_2); +x_66 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_63, x_64, x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_62); +lean_dec(x_65); +lean_dec(x_64); +return x_66; +} +} +else +{ +uint8_t x_67; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_67 = !lean_is_exclusive(x_54); +if (x_67 == 0) +{ +return x_54; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_54, 0); +x_69 = lean_ctor_get(x_54, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_54); +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; +} +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_15); +lean_dec(x_14); +x_71 = l_Lean_Expr_appFn_x21(x_1); +x_72 = l_Lean_Expr_appFn_x21(x_2); +x_73 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_3, x_71, x_72, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_72); +lean_dec(x_71); +return x_73; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_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_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = l_Lean_Expr_isApp(x_2); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_11); +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); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1(x_2, x_3, x_1, x_16, x_4, 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_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_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: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(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_3); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_Grind_getNext(x_2, 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) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_17, x_1); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_15, 0, x_19); +return x_15; +} +else +{ +lean_object* x_20; +x_20 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_15, 0, x_20); +return x_15; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_21, x_1); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_35; +lean_inc(x_7); +x_35 = l_Lean_Meta_Grind_getENode(x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_109; +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(x_35); +x_38 = lean_ctor_get(x_36, 8); +lean_inc(x_38); +x_109 = lean_nat_dec_le(x_38, x_4); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_38); +lean_dec(x_36); +x_110 = lean_box(0); +x_111 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_110, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_111; +goto block_34; +} +else +{ +uint8_t x_112; +x_112 = lean_ctor_get_uint8(x_36, sizeof(void*)*10 + 4); +if (x_112 == 0) +{ +lean_object* x_113; uint8_t x_114; +x_113 = lean_ctor_get(x_36, 3); +lean_inc(x_113); +lean_dec(x_36); +x_114 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_7, x_113); +lean_dec(x_113); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_38); +x_115 = lean_box(0); +x_116 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_115, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_116; +goto block_34; +} +else +{ +lean_object* x_117; uint8_t x_118; +x_117 = l_Lean_Expr_getAppFn(x_7); +x_118 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions(x_5, x_117); +lean_dec(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; +lean_dec(x_38); +x_119 = lean_box(0); +x_120 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_119, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_120; +goto block_34; +} +else +{ +lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_121 = lean_unsigned_to_nat(0u); +x_122 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_7, x_121); +x_123 = lean_nat_dec_eq(x_122, x_6); +lean_dec(x_122); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_38); +x_124 = lean_box(0); +x_125 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_124, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_125; +goto block_34; +} +else +{ +lean_object* x_126; +x_126 = lean_box(0); +x_39 = x_126; +goto block_108; +} +} +} +} +else +{ +lean_object* x_127; uint8_t x_128; +lean_dec(x_36); +x_127 = l_Lean_Expr_getAppFn(x_7); +x_128 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_eqvFunctions(x_5, x_127); +lean_dec(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +lean_dec(x_38); +x_129 = lean_box(0); +x_130 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_129, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_130; +goto block_34; +} +else +{ +lean_object* x_131; lean_object* x_132; uint8_t x_133; +x_131 = lean_unsigned_to_nat(0u); +x_132 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_7, x_131); +x_133 = lean_nat_dec_eq(x_132, x_6); +lean_dec(x_132); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; +lean_dec(x_38); +x_134 = lean_box(0); +x_135 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_134, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_19 = x_135; +goto block_34; +} +else +{ +lean_object* x_136; +x_136 = lean_box(0); +x_39 = x_136; +goto block_108; +} +} +} +} +block_108: +{ +lean_object* x_40; +lean_dec(x_39); +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_1); +x_40 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_1, x_2, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_38); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_box(0); +x_44 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_43, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_42); +x_19 = x_44; +goto block_34; +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_41, 0); +lean_inc(x_45); +lean_dec(x_41); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_dec(x_40); +x_47 = !lean_is_exclusive(x_45); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_45, 1); +x_49 = lean_nat_dec_le(x_38, x_48); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +lean_dec(x_48); +lean_ctor_set(x_45, 1, x_38); +x_50 = lean_st_ref_take(x_9, x_46); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 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; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_ctor_set_tag(x_50, 1); +lean_ctor_set(x_50, 1, x_52); +lean_ctor_set(x_50, 0, x_45); +x_54 = lean_st_ref_set(x_9, x_50, x_53); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_box(0); +x_57 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_55); +x_19 = x_57; +goto block_34; +} +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; +x_58 = lean_ctor_get(x_50, 0); +x_59 = lean_ctor_get(x_50, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_50); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_58); +x_61 = lean_st_ref_set(x_9, x_60, x_59); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_box(0); +x_64 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_62); +x_19 = x_64; +goto block_34; +} +} +else +{ +lean_object* x_65; uint8_t x_66; +lean_dec(x_38); +x_65 = lean_st_ref_take(x_9, x_46); +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_ctor_get(x_65, 1); +lean_ctor_set_tag(x_65, 1); +lean_ctor_set(x_65, 1, x_67); +lean_ctor_set(x_65, 0, x_45); +x_69 = lean_st_ref_set(x_9, x_65, x_68); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = lean_box(0); +x_72 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_71, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_70); +x_19 = x_72; +goto block_34; +} +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; +x_73 = lean_ctor_get(x_65, 0); +x_74 = lean_ctor_get(x_65, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_65); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_45); +lean_ctor_set(x_75, 1, x_73); +x_76 = lean_st_ref_set(x_9, x_75, x_74); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_box(0); +x_79 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_78, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_77); +x_19 = x_79; +goto block_34; +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_80 = lean_ctor_get(x_45, 0); +x_81 = lean_ctor_get(x_45, 1); +x_82 = lean_ctor_get(x_45, 2); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_45); +x_83 = lean_nat_dec_le(x_38, x_81); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_81); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_80); +lean_ctor_set(x_84, 1, x_38); +lean_ctor_set(x_84, 2, x_82); +x_85 = lean_st_ref_take(x_9, x_46); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; +} else { + lean_dec_ref(x_85); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); +} else { + x_89 = x_88; + lean_ctor_set_tag(x_89, 1); +} +lean_ctor_set(x_89, 0, x_84); +lean_ctor_set(x_89, 1, x_86); +x_90 = lean_st_ref_set(x_9, x_89, x_87); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_box(0); +x_93 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_92, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_91); +x_19 = x_93; +goto block_34; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_38); +x_94 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_94, 0, x_80); +lean_ctor_set(x_94, 1, x_81); +lean_ctor_set(x_94, 2, x_82); +x_95 = lean_st_ref_take(x_9, x_46); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_98 = x_95; +} else { + lean_dec_ref(x_95); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; + lean_ctor_set_tag(x_99, 1); +} +lean_ctor_set(x_99, 0, x_94); +lean_ctor_set(x_99, 1, x_96); +x_100 = lean_st_ref_set(x_9, x_99, x_97); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_box(0); +x_103 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_3, x_7, x_102, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_101); +x_19 = x_103; +goto block_34; +} +} +} +} +else +{ +uint8_t x_104; +lean_dec(x_38); +lean_dec(x_7); +x_104 = !lean_is_exclusive(x_40); +if (x_104 == 0) +{ +x_19 = x_40; +goto block_34; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_40, 0); +x_106 = lean_ctor_get(x_40, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_40); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_19 = x_107; +goto block_34; +} +} +} +} +else +{ +uint8_t x_137; +lean_dec(x_7); +x_137 = !lean_is_exclusive(x_35); +if (x_137 == 0) +{ +x_19 = x_35; +goto block_34; +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_35, 0); +x_139 = lean_ctor_get(x_35, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_35); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +x_19 = x_140; +goto block_34; +} +} +block_34: +{ +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +lean_dec(x_20); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_ctor_get(x_20, 0); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_dec(x_19); +x_28 = lean_ctor_get(x_20, 0); +lean_inc(x_28); +lean_dec(x_20); +x_7 = x_28; +x_18 = x_27; +goto _start; +} +} +else +{ +uint8_t x_30; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_19); +if (x_30 == 0) +{ +return x_19; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_19, 0); +x_32 = lean_ctor_get(x_19, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_19); +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_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_Meta_Grind_getMaxGeneration___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Expr_getAppFn(x_2); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_19); +lean_inc(x_3); +x_21 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1(x_1, x_2, x_3, x_16, x_18, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_3); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_21); +if (x_28 == 0) +{ +return x_21; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_21, 0); +x_30 = lean_ctor_get(x_21, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_21); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___spec__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___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, x_17, x_18); +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); +return x_19; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_15; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_21; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_1); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_30; +lean_dec(x_8); +x_22 = lean_ctor_get(x_7, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_7, 1); +lean_inc(x_23); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_24 = x_7; +} else { + lean_dec_ref(x_7); + x_24 = lean_box(0); +} +lean_inc(x_22); +x_30 = l_Lean_Meta_Grind_getENode(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_83; +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_30); +x_33 = lean_ctor_get(x_31, 8); +lean_inc(x_33); +x_83 = lean_nat_dec_le(x_33, x_4); +if (x_83 == 0) +{ +lean_object* x_84; +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_24); +lean_dec(x_22); +x_84 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_84; +x_26 = x_32; +goto block_29; +} +else +{ +uint8_t x_85; +x_85 = lean_ctor_get_uint8(x_31, sizeof(void*)*10 + 4); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_31, 3); +lean_inc(x_86); +lean_dec(x_31); +x_87 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_86, x_22); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; +lean_dec(x_33); +lean_dec(x_24); +lean_dec(x_22); +x_88 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_88; +x_26 = x_32; +goto block_29; +} +else +{ +lean_object* x_89; +x_89 = lean_box(0); +x_34 = x_89; +goto block_82; +} +} +else +{ +lean_object* x_90; +lean_dec(x_31); +x_90 = lean_box(0); +x_34 = x_90; +goto block_82; +} +} +block_82: +{ +lean_object* x_35; +lean_dec(x_34); +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_1); +x_35 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_1, x_2, x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_32); +lean_dec(x_22); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_33); +lean_dec(x_24); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_38; +x_26 = x_37; +goto block_29; +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_39, 1); +x_43 = lean_nat_dec_le(x_33, x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_42); +lean_ctor_set(x_39, 1, x_33); +x_44 = lean_st_ref_take(x_11, x_40); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +if (lean_is_scalar(x_24)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_24; +} +lean_ctor_set(x_47, 0, x_39); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_st_ref_set(x_11, x_47, x_46); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_50; +x_26 = x_49; +goto block_29; +} +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_dec(x_33); +x_51 = lean_st_ref_take(x_11, x_40); +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(x_51); +if (lean_is_scalar(x_24)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_24; +} +lean_ctor_set(x_54, 0, x_39); +lean_ctor_set(x_54, 1, x_52); +x_55 = lean_st_ref_set(x_11, x_54, x_53); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_57; +x_26 = x_56; +goto block_29; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_58 = lean_ctor_get(x_39, 0); +x_59 = lean_ctor_get(x_39, 1); +x_60 = lean_ctor_get(x_39, 2); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_39); +x_61 = lean_nat_dec_le(x_33, x_59); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_59); +x_62 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_62, 0, x_58); +lean_ctor_set(x_62, 1, x_33); +lean_ctor_set(x_62, 2, x_60); +x_63 = lean_st_ref_take(x_11, x_40); +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(x_63); +if (lean_is_scalar(x_24)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_24; +} +lean_ctor_set(x_66, 0, x_62); +lean_ctor_set(x_66, 1, x_64); +x_67 = lean_st_ref_set(x_11, x_66, x_65); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_69; +x_26 = x_68; +goto block_29; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_33); +x_70 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_59); +lean_ctor_set(x_70, 2, x_60); +x_71 = lean_st_ref_take(x_11, x_40); +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(x_71); +if (lean_is_scalar(x_24)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_24; +} +lean_ctor_set(x_74, 0, x_70); +lean_ctor_set(x_74, 1, x_72); +x_75 = lean_st_ref_set(x_11, x_74, x_73); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1; +x_25 = x_77; +x_26 = x_76; +goto block_29; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_33); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_1); +x_78 = !lean_is_exclusive(x_35); +if (x_78 == 0) +{ +return x_35; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_35, 0); +x_80 = lean_ctor_get(x_35, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_35); +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 +{ +uint8_t x_91; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_30); +if (x_91 == 0) +{ +return x_30; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_30, 0); +x_93 = lean_ctor_get(x_30, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_30); +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; +} +} +block_29: +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_7 = x_23; +x_8 = x_27; +x_9 = lean_box(0); +x_20 = x_26; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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 = lean_st_ref_get(x_5, x_13); +x_15 = !lean_is_exclusive(x_14); +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_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = lean_ctor_get(x_16, 4); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_2); +x_19 = l_Lean_Expr_toHeadIndex(x_2); +x_20 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_18, x_19); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +lean_dec(x_12); +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_21 = lean_box(0); +lean_ctor_set(x_14, 0, x_21); +return x_14; +} +else +{ +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_free_object(x_14); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Meta_Grind_getMaxGeneration___rarg(x_7, x_8, x_9, x_10, x_11, x_12, x_17); +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(x_23); +x_26 = lean_box(0); +x_27 = lean_box(0); +lean_inc(x_22); +x_28 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1(x_1, x_2, x_22, x_24, x_26, x_22, x_22, x_27, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_2); +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_27); +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_27); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +else +{ +uint8_t x_33; +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 +{ +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_14, 0); +x_38 = lean_ctor_get(x_14, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_14); +x_39 = lean_ctor_get(x_37, 4); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_2); +x_40 = l_Lean_Expr_toHeadIndex(x_2); +x_41 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_39, x_40); +lean_dec(x_40); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_12); +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +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; +x_44 = lean_ctor_get(x_41, 0); +lean_inc(x_44); +lean_dec(x_41); +x_45 = l_Lean_Meta_Grind_getMaxGeneration___rarg(x_7, x_8, x_9, x_10, x_11, x_12, x_38); +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(x_45); +x_48 = lean_box(0); +x_49 = lean_box(0); +lean_inc(x_44); +x_50 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1(x_1, x_2, x_44, x_46, x_48, x_44, x_44, x_49, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +lean_dec(x_46); +lean_dec(x_44); +lean_dec(x_2); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_52 = x_50; +} else { + lean_dec_ref(x_50); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_50, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_56 = x_50; +} else { + lean_dec_ref(x_50); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +_start: +{ +lean_object* x_21; +x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___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, x_17, x_18, x_19, x_20); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_21; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___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_EMatch_0__Lean_Meta_Grind_EMatch_processContinue(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); +lean_dec(x_3); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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: +{ +uint8_t x_13; +x_13 = l_Lean_Expr_hasMVar(x_1); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, 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_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_15 = lean_st_ref_get(x_9, x_12); +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(x_15); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_instantiateMVarsCore(x_18, x_1); +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(x_19); +x_22 = lean_st_ref_take(x_9, x_17); +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(x_22); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +lean_ctor_set(x_23, 0, x_21); +x_27 = lean_st_ref_set(x_9, x_23, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_20); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +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; +x_32 = lean_ctor_get(x_23, 1); +x_33 = lean_ctor_get(x_23, 2); +x_34 = lean_ctor_get(x_23, 3); +x_35 = lean_ctor_get(x_23, 4); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_23); +x_36 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_32); +lean_ctor_set(x_36, 2, x_33); +lean_ctor_set(x_36, 3, x_34); +lean_ctor_set(x_36, 4, x_35); +x_37 = lean_st_ref_set(x_9, x_36, x_24); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_20); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 2); +x_14 = l_Lean_isTracingEnabledForCore(x_1, x_13, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +x_18 = lean_alloc_ctor(0, 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_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 5); +x_14 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_8, x_9, x_10, x_11, x_12); +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); +lean_inc(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_16); +lean_ctor_set_tag(x_14, 1); +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); +lean_inc(x_13); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_18); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +} +static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unknown constant '", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("'", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_st_ref_get(x_11, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_1); +x_18 = lean_environment_find(x_17, x_1); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_free_object(x_13); +x_19 = 0; +x_20 = l_Lean_MessageData_ofConstName(x_1, x_19); +x_21 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2; +x_22 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4; +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 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__6(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +return x_25; +} +else +{ +lean_object* x_26; +lean_dec(x_1); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +lean_dec(x_18); +lean_ctor_set(x_13, 0, x_26); +return x_13; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_13, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_13); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_1); +x_30 = lean_environment_find(x_29, x_1); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t 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 = 0; +x_32 = l_Lean_MessageData_ofConstName(x_1, x_31); +x_33 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2; +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4; +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__6(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_1); +x_38 = lean_ctor_get(x_30, 0); +lean_inc(x_38); +lean_dec(x_30); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_28); +return x_39; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc(x_1); +x_13 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (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_13, 0); +x_16 = l_Lean_ConstantInfo_levelParams(x_15); +lean_dec(x_15); +x_17 = lean_box(0); +x_18 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_16, x_17); +x_19 = l_Lean_Expr_const___override(x_1, x_18); +lean_ctor_set(x_13, 0, x_19); +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = l_Lean_ConstantInfo_levelParams(x_20); +lean_dec(x_20); +x_23 = lean_box(0); +x_24 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_22, x_23); +x_25 = l_Lean_Expr_const___override(x_1, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_13); +if (x_27 == 0) +{ +return x_13; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_13, 0); +x_29 = lean_ctor_get(x_13, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_13); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[unknown]", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__4(x_13, x_2, 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_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 = l_Lean_MessageData_ofConst(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 = l_Lean_MessageData_ofConst(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; +} +} +} +case 1: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_1, 0); +lean_inc(x_26); +lean_dec(x_1); +x_27 = l_Lean_Expr_fvar___override(x_26); +x_28 = l_Lean_MessageData_ofExpr(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_12); +return x_29; +} +case 2: +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_1); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_1, 1); +x_32 = lean_ctor_get(x_1, 0); +lean_dec(x_32); +x_33 = l_Lean_MessageData_ofSyntax(x_31); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_12); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_1, 1); +lean_inc(x_34); +lean_dec(x_1); +x_35 = l_Lean_MessageData_ofSyntax(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_12); +return x_36; +} +} +default: +{ +lean_object* x_37; lean_object* x_38; +x_37 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_12); +return x_38; +} +} +} +} +static double _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; double x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = 0; +x_3 = l_Float_ofScientific(x_1, x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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, 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; uint8_t x_21; +x_14 = lean_ctor_get(x_11, 5); +x_15 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_st_ref_take(x_12, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_18, 1); +x_23 = lean_ctor_get(x_18, 0); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_19, 3); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) +{ +lean_object* x_27; double x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_27 = lean_ctor_get(x_20, 0); +x_28 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1; +x_29 = 0; +x_30 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +x_31 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set_float(x_31, sizeof(void*)*2, x_28); +lean_ctor_set_float(x_31, sizeof(void*)*2 + 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*2 + 16, x_29); +x_32 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_33 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_16); +lean_ctor_set(x_33, 2, x_32); +lean_inc(x_14); +lean_ctor_set(x_18, 1, x_33); +lean_ctor_set(x_18, 0, x_14); +x_34 = l_Lean_PersistentArray_push___rarg(x_27, x_18); +lean_ctor_set(x_20, 0, x_34); +x_35 = lean_st_ref_set(x_12, x_19, x_22); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +x_38 = lean_box(0); +lean_ctor_set(x_35, 0, x_38); +return x_35; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_box(0); +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; +} +} +else +{ +uint64_t x_42; lean_object* x_43; double x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_42 = lean_ctor_get_uint64(x_20, sizeof(void*)*1); +x_43 = lean_ctor_get(x_20, 0); +lean_inc(x_43); +lean_dec(x_20); +x_44 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1; +x_45 = 0; +x_46 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +x_47 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set_float(x_47, sizeof(void*)*2, x_44); +lean_ctor_set_float(x_47, sizeof(void*)*2 + 8, x_44); +lean_ctor_set_uint8(x_47, sizeof(void*)*2 + 16, x_45); +x_48 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_49 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_16); +lean_ctor_set(x_49, 2, x_48); +lean_inc(x_14); +lean_ctor_set(x_18, 1, x_49); +lean_ctor_set(x_18, 0, x_14); +x_50 = l_Lean_PersistentArray_push___rarg(x_43, x_18); +x_51 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set_uint64(x_51, sizeof(void*)*1, x_42); +lean_ctor_set(x_19, 3, x_51); +x_52 = lean_st_ref_set(x_12, x_19, x_22); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +x_55 = lean_box(0); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; +} +} +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; uint64_t x_64; lean_object* x_65; lean_object* x_66; double x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_57 = lean_ctor_get(x_19, 0); +x_58 = lean_ctor_get(x_19, 1); +x_59 = lean_ctor_get(x_19, 2); +x_60 = lean_ctor_get(x_19, 4); +x_61 = lean_ctor_get(x_19, 5); +x_62 = lean_ctor_get(x_19, 6); +x_63 = lean_ctor_get(x_19, 7); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_19); +x_64 = lean_ctor_get_uint64(x_20, sizeof(void*)*1); +x_65 = lean_ctor_get(x_20, 0); +lean_inc(x_65); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + x_66 = x_20; +} else { + lean_dec_ref(x_20); + x_66 = lean_box(0); +} +x_67 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1; +x_68 = 0; +x_69 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +x_70 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set_float(x_70, sizeof(void*)*2, x_67); +lean_ctor_set_float(x_70, sizeof(void*)*2 + 8, x_67); +lean_ctor_set_uint8(x_70, sizeof(void*)*2 + 16, x_68); +x_71 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_72 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_16); +lean_ctor_set(x_72, 2, x_71); +lean_inc(x_14); +lean_ctor_set(x_18, 1, x_72); +lean_ctor_set(x_18, 0, x_14); +x_73 = l_Lean_PersistentArray_push___rarg(x_65, x_18); +if (lean_is_scalar(x_66)) { + x_74 = lean_alloc_ctor(0, 1, 8); +} else { + x_74 = x_66; +} +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set_uint64(x_74, sizeof(void*)*1, x_64); +x_75 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_75, 0, x_57); +lean_ctor_set(x_75, 1, x_58); +lean_ctor_set(x_75, 2, x_59); +lean_ctor_set(x_75, 3, x_74); +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); +x_76 = lean_st_ref_set(x_12, x_75, x_22); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; +} else { + lean_dec_ref(x_76); + x_78 = lean_box(0); +} +x_79 = lean_box(0); +if (lean_is_scalar(x_78)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_78; +} +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_77); +return x_80; +} +} +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; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint64_t x_90; lean_object* x_91; lean_object* x_92; double x_93; uint8_t 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; +x_81 = lean_ctor_get(x_18, 1); +lean_inc(x_81); +lean_dec(x_18); +x_82 = lean_ctor_get(x_19, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_19, 1); +lean_inc(x_83); +x_84 = lean_ctor_get(x_19, 2); +lean_inc(x_84); +x_85 = lean_ctor_get(x_19, 4); +lean_inc(x_85); +x_86 = lean_ctor_get(x_19, 5); +lean_inc(x_86); +x_87 = lean_ctor_get(x_19, 6); +lean_inc(x_87); +x_88 = lean_ctor_get(x_19, 7); +lean_inc(x_88); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + lean_ctor_release(x_19, 2); + lean_ctor_release(x_19, 3); + lean_ctor_release(x_19, 4); + lean_ctor_release(x_19, 5); + lean_ctor_release(x_19, 6); + lean_ctor_release(x_19, 7); + x_89 = x_19; +} else { + lean_dec_ref(x_19); + x_89 = lean_box(0); +} +x_90 = lean_ctor_get_uint64(x_20, sizeof(void*)*1); +x_91 = lean_ctor_get(x_20, 0); +lean_inc(x_91); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + x_92 = x_20; +} else { + lean_dec_ref(x_20); + x_92 = lean_box(0); +} +x_93 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1; +x_94 = 0; +x_95 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1; +x_96 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_96, 0, x_1); +lean_ctor_set(x_96, 1, x_95); +lean_ctor_set_float(x_96, sizeof(void*)*2, x_93); +lean_ctor_set_float(x_96, sizeof(void*)*2 + 8, x_93); +lean_ctor_set_uint8(x_96, sizeof(void*)*2 + 16, x_94); +x_97 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_98 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_16); +lean_ctor_set(x_98, 2, x_97); +lean_inc(x_14); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_14); +lean_ctor_set(x_99, 1, x_98); +x_100 = l_Lean_PersistentArray_push___rarg(x_91, x_99); +if (lean_is_scalar(x_92)) { + x_101 = lean_alloc_ctor(0, 1, 8); +} else { + x_101 = x_92; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set_uint64(x_101, sizeof(void*)*1, x_90); +if (lean_is_scalar(x_89)) { + x_102 = lean_alloc_ctor(0, 8, 0); +} else { + x_102 = x_89; +} +lean_ctor_set(x_102, 0, x_82); +lean_ctor_set(x_102, 1, x_83); +lean_ctor_set(x_102, 2, x_84); +lean_ctor_set(x_102, 3, x_101); +lean_ctor_set(x_102, 4, x_85); +lean_ctor_set(x_102, 5, x_86); +lean_ctor_set(x_102, 6, x_87); +lean_ctor_set(x_102, 7, x_88); +x_103 = lean_st_ref_set(x_12, x_102, x_81); +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_103); + x_105 = lean_box(0); +} +x_106 = lean_box(0); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_105; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Meta_Grind_addTheoremInstance(x_1, x_2, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_16; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grind", 5, 5); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ematch", 6, 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instance", 8, 8); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4() { +_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_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(": ", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_1); +x_16 = lean_infer_type(x_1, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +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(x_16); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4; +x_20 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_3); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = l_Lean_Meta_Grind_addTheoremInstance(x_1, x_17, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_23); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_24; +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 1); +x_27 = lean_ctor_get(x_20, 0); +lean_dec(x_27); +x_28 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +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; lean_object* x_39; +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(x_28); +x_31 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_29); +lean_ctor_set(x_20, 0, x_31); +x_32 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6; +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_20); +lean_ctor_set(x_33, 1, x_32); +lean_inc(x_17); +x_34 = l_Lean_MessageData_ofExpr(x_17); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +x_37 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_19, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Meta_Grind_addTheoremInstance(x_1, x_17, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_38); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_39; +} +else +{ +uint8_t x_40; +lean_free_object(x_20); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_28); +if (x_40 == 0) +{ +return x_28; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_28, 0); +x_42 = lean_ctor_get(x_28, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_28); +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 +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_20, 1); +lean_inc(x_44); +lean_dec(x_20); +x_45 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_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_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(x_45); +x_48 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +x_50 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6; +x_51 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_17); +x_52 = l_Lean_MessageData_ofExpr(x_17); +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_48); +x_55 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_19, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_47); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l_Lean_Meta_Grind_addTheoremInstance(x_1, x_17, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_56); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_2); +lean_dec(x_1); +x_58 = lean_ctor_get(x_45, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_45, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_60 = x_45; +} else { + lean_dec_ref(x_45); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(1, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_16); +if (x_62 == 0) +{ +return x_16; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_16, 0); +x_64 = lean_ctor_get(x_16, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_16); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_grind_debug_proofs; +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_20; +x_15 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__1(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_12, 2); +lean_inc(x_18); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1; +x_20 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_18, x_19); +lean_dec(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2(x_16, x_3, x_1, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +return x_22; +} +else +{ +lean_object* x_23; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_16); +x_23 = l_Lean_Meta_check(x_16, x_10, x_11, x_12, x_13, x_17); +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, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2(x_16, x_3, x_1, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); +lean_dec(x_24); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) +{ +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_23); +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_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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(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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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_throwError___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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(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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_mkConstWithLevelParams___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +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); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(lean_object* x_1, 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 = lean_box(0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_9 = l_Lean_Meta_trySynthInstance(x_2, x_8, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 1) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_isExprDefEq(x_1, x_12, x_3, x_4, x_5, x_6, x_11); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 0); +lean_dec(x_15); +x_16 = 0; +x_17 = lean_box(x_16); +lean_ctor_set(x_9, 0, x_17); +return x_9; +} +else +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_dec(x_9); +x_19 = 0; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_9); +if (x_22 == 0) +{ +return x_9; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_9, 0); +x_24 = lean_ctor_get(x_9, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_9); +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_EXPORT lean_object* l_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1; +x_2 = l_instInhabitedPUnit; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2; +x_2 = lean_alloc_closure((void*)(l_instInhabitedReaderT___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3; +x_14 = lean_panic_fn(x_13, x_1); +x_15 = lean_apply_11(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1; +x_2 = lean_box(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; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3; +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; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("issues", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1; +x_2 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___boxed), 12, 0); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("type error constructing proof for ", 34, 34); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\nwhen assigning metavariable ", 29, 29); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" with ", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, 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; uint8_t x_25; +x_24 = lean_ctor_get(x_8, 1); +x_25 = lean_nat_dec_lt(x_10, x_24); +if (x_25 == 0) +{ +lean_object* x_26; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_9); +lean_ctor_set(x_26, 1, x_23); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_36; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec(x_9); +x_165 = lean_nat_sub(x_3, x_10); +x_166 = lean_unsigned_to_nat(1u); +x_167 = lean_nat_sub(x_165, x_166); +lean_dec(x_165); +x_168 = lean_nat_dec_lt(x_167, x_4); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +lean_dec(x_167); +x_169 = l_Lean_instInhabitedExpr; +x_170 = l_outOfBounds___rarg(x_169); +x_36 = x_170; +goto block_164; +} +else +{ +lean_object* x_171; +x_171 = lean_array_fget(x_2, x_167); +lean_dec(x_167); +x_36 = x_171; +goto block_164; +} +block_35: +{ +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +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 +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +lean_dec(x_27); +x_32 = lean_ctor_get(x_8, 2); +x_33 = lean_nat_add(x_10, x_32); +lean_dec(x_10); +x_9 = x_31; +x_10 = x_33; +x_11 = lean_box(0); +x_12 = lean_box(0); +x_23 = x_28; +goto _start; +} +} +block_164: +{ +lean_object* x_37; uint8_t x_38; +x_37 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_38 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_36, x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_130; lean_object* x_131; +x_39 = lean_array_fget(x_5, x_10); +x_130 = l_Lean_Expr_mvarId_x21(x_39); +lean_inc(x_130); +x_131 = l_Lean_MVarId_getType(x_130, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_36); +x_134 = lean_infer_type(x_36, x_19, x_20, x_21, x_22, x_133); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +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(x_134); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +x_137 = l_Lean_Meta_isExprDefEq(x_132, x_135, x_19, x_20, x_21, x_22, x_136); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; uint8_t x_139; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_unbox(x_138); +if (x_139 == 0) +{ +lean_object* x_140; uint8_t x_141; +lean_dec(x_130); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_140); +lean_dec(x_137); +x_141 = lean_unbox(x_138); +lean_dec(x_138); +x_40 = x_141; +x_41 = x_140; +goto block_129; +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_138); +x_142 = lean_ctor_get(x_137, 1); +lean_inc(x_142); +lean_dec(x_137); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_36); +x_143 = lean_checked_assign(x_130, x_36, x_19, x_20, x_21, x_22, x_142); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = lean_unbox(x_144); +lean_dec(x_144); +x_40 = x_146; +x_41 = x_145; +goto block_129; +} +else +{ +uint8_t x_147; +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_147 = !lean_is_exclusive(x_143); +if (x_147 == 0) +{ +return x_143; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_143, 0); +x_149 = lean_ctor_get(x_143, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_143); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +} +else +{ +uint8_t x_151; +lean_dec(x_130); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_151 = !lean_is_exclusive(x_137); +if (x_151 == 0) +{ +return x_137; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_137, 0); +x_153 = lean_ctor_get(x_137, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_137); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +return x_154; +} +} +} +else +{ +uint8_t x_155; +lean_dec(x_132); +lean_dec(x_130); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_155 = !lean_is_exclusive(x_134); +if (x_155 == 0) +{ +return x_134; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_134, 0); +x_157 = lean_ctor_get(x_134, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_134); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +else +{ +uint8_t x_159; +lean_dec(x_130); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_159 = !lean_is_exclusive(x_131); +if (x_159 == 0) +{ +return x_131; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_131, 0); +x_161 = lean_ctor_get(x_131, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_131); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +block_129: +{ +if (x_40 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_43 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_42, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_41); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +x_47 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3; +x_48 = lean_unbox(x_45); +lean_dec(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_free_object(x_43); +lean_dec(x_39); +lean_dec(x_36); +x_49 = lean_box(0); +lean_inc(x_22); +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); +x_50 = lean_apply_12(x_47, x_49, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_46); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; +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(x_50); +x_27 = x_51; +x_28 = x_52; +goto block_35; +} +else +{ +uint8_t x_53; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_50); +if (x_53 == 0) +{ +return x_50; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_50, 0); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_50); +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 +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_1, 5); +lean_inc(x_57); +x_58 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_57, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_46); +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; 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_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(x_58); +x_61 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5; +lean_ctor_set_tag(x_43, 7); +lean_ctor_set(x_43, 1, x_59); +lean_ctor_set(x_43, 0, x_61); +x_62 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7; +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_43); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_MessageData_ofExpr(x_39); +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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_indentExpr(x_36); +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_42, x_71, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_60); +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(x_72); +lean_inc(x_22); +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); +x_75 = lean_apply_12(x_47, x_73, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_74); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_27 = x_76; +x_28 = x_77; +goto block_35; +} +else +{ +uint8_t x_78; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_78 = !lean_is_exclusive(x_75); +if (x_78 == 0) +{ +return x_75; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_75, 0); +x_80 = lean_ctor_get(x_75, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_75); +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 +{ +uint8_t x_82; +lean_free_object(x_43); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_82 = !lean_is_exclusive(x_58); +if (x_82 == 0) +{ +return x_58; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_58, 0); +x_84 = lean_ctor_get(x_58, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_58); +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_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_43, 0); +x_87 = lean_ctor_get(x_43, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_43); +x_88 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3; +x_89 = lean_unbox(x_86); +lean_dec(x_86); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_39); +lean_dec(x_36); +x_90 = lean_box(0); +lean_inc(x_22); +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); +x_91 = lean_apply_12(x_88, x_90, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_87); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_27 = x_92; +x_28 = x_93; +goto block_35; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_94 = lean_ctor_get(x_91, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_91, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_96 = x_91; +} else { + lean_dec_ref(x_91); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_1, 5); +lean_inc(x_98); +x_99 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_98, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_87); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; 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; +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(x_99); +x_102 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); +x_104 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7; +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_MessageData_ofExpr(x_39); +x_107 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +x_109 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_indentExpr(x_36); +x_111 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_113 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_42, x_113, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_101); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_22); +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); +x_117 = lean_apply_12(x_88, x_115, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_116); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_27 = x_118; +x_28 = x_119; +goto block_35; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_120 = lean_ctor_get(x_117, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_117, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_122 = x_117; +} else { + lean_dec_ref(x_117); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; +} +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_1); +x_124 = lean_ctor_get(x_99, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_99, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_126 = x_99; +} else { + lean_dec_ref(x_99); + 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_dec(x_39); +lean_dec(x_36); +lean_inc(x_7); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_7); +x_27 = x_128; +x_28 = x_41; +goto block_35; +} +} +} +else +{ +lean_object* x_163; +lean_dec(x_36); +lean_inc(x_7); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_7); +x_27 = x_163; +x_28 = x_23; +goto block_35; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_st_ref_get(x_9, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 7); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_17, x_1); +x_19 = lean_box(x_18); +lean_ctor_set(x_13, 0, x_19); +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_22, 7); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_23, x_1); +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_1); +x_16 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_16, 0, x_15); +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; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("failed to synthesize instance when instantiating ", 49, 49); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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, lean_object* x_18, lean_object* x_19) { +_start: +{ +uint8_t x_20; +x_20 = lean_usize_dec_lt(x_7, x_6); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_32; +x_22 = lean_array_uget(x_5, x_7); +x_32 = !lean_is_exclusive(x_8); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_33 = lean_ctor_get(x_8, 1); +x_34 = lean_ctor_get(x_8, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +x_37 = lean_ctor_get(x_33, 2); +lean_inc(x_37); +x_38 = lean_nat_dec_lt(x_36, x_37); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_8); +x_23 = x_39; +x_24 = x_19; +goto block_31; +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_33); +if (x_40 == 0) +{ +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; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_41 = lean_ctor_get(x_33, 2); +lean_dec(x_41); +x_42 = lean_ctor_get(x_33, 1); +lean_dec(x_42); +x_43 = lean_ctor_get(x_33, 0); +lean_dec(x_43); +x_44 = lean_array_fget(x_35, x_36); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_36, x_46); +lean_dec(x_36); +lean_ctor_set(x_33, 1, x_47); +x_48 = l_Lean_Expr_mvarId_x21(x_22); +x_49 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_48, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_48); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_49, 1); +x_53 = l_Lean_BinderInfo_isInstImplicit(x_45); +if (x_53 == 0) +{ +lean_object* x_54; +lean_free_object(x_49); +lean_dec(x_51); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_8); +x_23 = x_54; +x_24 = x_52; +goto block_31; +} +else +{ +uint8_t x_55; +x_55 = lean_unbox(x_51); +lean_dec(x_51); +if (x_55 == 0) +{ +lean_object* x_56; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_22); +x_56 = lean_infer_type(x_22, x_15, x_16, x_17, x_18, x_52); +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, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_57); +x_59 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(x_22, x_57, x_15, x_16, x_17, x_18, x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; uint8_t x_61; +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) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +lean_free_object(x_8); +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_64 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_63, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_62); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_unbox(x_65); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_57); +lean_free_object(x_49); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_dec(x_64); +x_68 = lean_box(0); +x_69 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_33, x_68, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_67); +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(x_69); +x_23 = x_70; +x_24 = x_71; +goto block_31; +} +else +{ +uint8_t x_72; +x_72 = !lean_is_exclusive(x_64); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_64, 1); +x_74 = lean_ctor_get(x_64, 0); +lean_dec(x_74); +x_75 = lean_ctor_get(x_1, 5); +lean_inc(x_75); +x_76 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_75, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_73); +if (lean_obj_tag(x_76) == 0) +{ +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; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +lean_ctor_set_tag(x_64, 7); +lean_ctor_set(x_64, 1, x_77); +lean_ctor_set(x_64, 0, x_79); +x_80 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_49, 7); +lean_ctor_set(x_49, 1, x_80); +lean_ctor_set(x_49, 0, x_64); +x_81 = l_Lean_indentExpr(x_57); +x_82 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_82, 0, x_49); +lean_ctor_set(x_82, 1, x_81); +x_83 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_80); +x_84 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_63, x_83, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_78); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_33, x_85, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_86); +lean_dec(x_85); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_23 = x_88; +x_24 = x_89; +goto block_31; +} +else +{ +uint8_t x_90; +lean_free_object(x_64); +lean_dec(x_57); +lean_free_object(x_49); +lean_dec(x_33); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_76); +if (x_90 == 0) +{ +return x_76; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_76, 0); +x_92 = lean_ctor_get(x_76, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_76); +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_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_64, 1); +lean_inc(x_94); +lean_dec(x_64); +x_95 = lean_ctor_get(x_1, 5); +lean_inc(x_95); +x_96 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_95, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_94); +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; 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_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_97); +x_101 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_49, 7); +lean_ctor_set(x_49, 1, x_101); +lean_ctor_set(x_49, 0, x_100); +x_102 = l_Lean_indentExpr(x_57); +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_49); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_101); +x_105 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_63, x_104, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_98); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_33, x_106, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_107); +lean_dec(x_106); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_23 = x_109; +x_24 = x_110; +goto block_31; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_57); +lean_free_object(x_49); +lean_dec(x_33); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_111 = lean_ctor_get(x_96, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_96, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_113 = x_96; +} else { + lean_dec_ref(x_96); + x_113 = lean_box(0); +} +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); +} else { + x_114 = x_113; +} +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +return x_114; +} +} +} +} +else +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_57); +lean_free_object(x_49); +x_115 = lean_ctor_get(x_59, 1); +lean_inc(x_115); +lean_dec(x_59); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_116 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_116, 0, x_8); +x_23 = x_116; +x_24 = x_115; +goto block_31; +} +} +else +{ +uint8_t x_117; +lean_dec(x_57); +lean_free_object(x_49); +lean_dec(x_33); +lean_free_object(x_8); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_117 = !lean_is_exclusive(x_59); +if (x_117 == 0) +{ +return x_59; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_59, 0); +x_119 = lean_ctor_get(x_59, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_59); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +} +else +{ +uint8_t x_121; +lean_free_object(x_49); +lean_dec(x_33); +lean_free_object(x_8); +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_121 = !lean_is_exclusive(x_56); +if (x_121 == 0) +{ +return x_56; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_56, 0); +x_123 = lean_ctor_get(x_56, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_56); +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 +{ +lean_object* x_125; +lean_free_object(x_49); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_125 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_125, 0, x_8); +x_23 = x_125; +x_24 = x_52; +goto block_31; +} +} +} +else +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_49, 0); +x_127 = lean_ctor_get(x_49, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_49); +x_128 = l_Lean_BinderInfo_isInstImplicit(x_45); +if (x_128 == 0) +{ +lean_object* x_129; +lean_dec(x_126); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_129 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_129, 0, x_8); +x_23 = x_129; +x_24 = x_127; +goto block_31; +} +else +{ +uint8_t x_130; +x_130 = lean_unbox(x_126); +lean_dec(x_126); +if (x_130 == 0) +{ +lean_object* x_131; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_22); +x_131 = lean_infer_type(x_22, x_15, x_16, x_17, x_18, x_127); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_132); +x_134 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(x_22, x_132, x_15, x_16, x_17, x_18, x_133); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; uint8_t x_136; +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_object* x_140; uint8_t x_141; +lean_free_object(x_8); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_139 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_138, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_137); +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_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_132); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +lean_dec(x_139); +x_143 = lean_box(0); +x_144 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_33, x_143, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_142); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_23 = x_145; +x_24 = x_146; +goto block_31; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get(x_139, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_148 = x_139; +} else { + lean_dec_ref(x_139); + x_148 = lean_box(0); +} +x_149 = lean_ctor_get(x_1, 5); +lean_inc(x_149); +x_150 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_149, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_147); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +if (lean_is_scalar(x_148)) { + x_154 = lean_alloc_ctor(7, 2, 0); +} else { + x_154 = x_148; + lean_ctor_set_tag(x_154, 7); +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +x_155 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +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_Lean_indentExpr(x_132); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_155); +x_160 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_138, x_159, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_152); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_33, x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_162); +lean_dec(x_161); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_23 = x_164; +x_24 = x_165; +goto block_31; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_148); +lean_dec(x_132); +lean_dec(x_33); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_166 = lean_ctor_get(x_150, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_150, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_168 = x_150; +} else { + lean_dec_ref(x_150); + 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; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_132); +x_170 = lean_ctor_get(x_134, 1); +lean_inc(x_170); +lean_dec(x_134); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_171 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_171, 0, x_8); +x_23 = x_171; +x_24 = x_170; +goto block_31; +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_132); +lean_dec(x_33); +lean_free_object(x_8); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_172 = lean_ctor_get(x_134, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_134, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_174 = x_134; +} else { + lean_dec_ref(x_134); + x_174 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); +} else { + x_175 = x_174; +} +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; +} +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_33); +lean_free_object(x_8); +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_176 = lean_ctor_get(x_131, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_131, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_178 = x_131; +} else { + lean_dec_ref(x_131); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(1, 2, 0); +} else { + x_179 = x_178; +} +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_177); +return x_179; +} +} +else +{ +lean_object* x_180; +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 0, x_3); +x_180 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_180, 0, x_8); +x_23 = x_180; +x_24 = x_127; +goto block_31; +} +} +} +} +else +{ +lean_object* x_181; uint8_t 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; uint8_t x_191; +lean_dec(x_33); +x_181 = lean_array_fget(x_35, x_36); +x_182 = lean_unbox(x_181); +lean_dec(x_181); +x_183 = lean_unsigned_to_nat(1u); +x_184 = lean_nat_add(x_36, x_183); +lean_dec(x_36); +x_185 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_185, 0, x_35); +lean_ctor_set(x_185, 1, x_184); +lean_ctor_set(x_185, 2, x_37); +x_186 = l_Lean_Expr_mvarId_x21(x_22); +x_187 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_186, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_186); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_190 = x_187; +} else { + lean_dec_ref(x_187); + x_190 = lean_box(0); +} +x_191 = l_Lean_BinderInfo_isInstImplicit(x_182); +if (x_191 == 0) +{ +lean_object* x_192; +lean_dec(x_190); +lean_dec(x_188); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 1, x_185); +lean_ctor_set(x_8, 0, x_3); +x_192 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_192, 0, x_8); +x_23 = x_192; +x_24 = x_189; +goto block_31; +} +else +{ +uint8_t x_193; +x_193 = lean_unbox(x_188); +lean_dec(x_188); +if (x_193 == 0) +{ +lean_object* x_194; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_22); +x_194 = lean_infer_type(x_22, x_15, x_16, x_17, x_18, x_189); +if (lean_obj_tag(x_194) == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_195); +x_197 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(x_22, x_195, x_15, x_16, x_17, x_18, x_196); +if (lean_obj_tag(x_197) == 0) +{ +lean_object* x_198; uint8_t x_199; +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_unbox(x_198); +lean_dec(x_198); +if (x_199 == 0) +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +lean_free_object(x_8); +x_200 = lean_ctor_get(x_197, 1); +lean_inc(x_200); +lean_dec(x_197); +x_201 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_202 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_201, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_200); +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; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_195); +lean_dec(x_190); +x_205 = lean_ctor_get(x_202, 1); +lean_inc(x_205); +lean_dec(x_202); +x_206 = lean_box(0); +x_207 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_185, x_206, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_205); +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec(x_207); +x_23 = x_208; +x_24 = x_209; +goto block_31; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_210 = lean_ctor_get(x_202, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_211 = x_202; +} else { + lean_dec_ref(x_202); + x_211 = lean_box(0); +} +x_212 = lean_ctor_get(x_1, 5); +lean_inc(x_212); +x_213 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_212, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_210); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +lean_dec(x_213); +x_216 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +if (lean_is_scalar(x_211)) { + x_217 = lean_alloc_ctor(7, 2, 0); +} else { + x_217 = x_211; + lean_ctor_set_tag(x_217, 7); +} +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_214); +x_218 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +if (lean_is_scalar(x_190)) { + x_219 = lean_alloc_ctor(7, 2, 0); +} else { + x_219 = x_190; + lean_ctor_set_tag(x_219, 7); +} +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +x_220 = l_Lean_indentExpr(x_195); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_218); +x_223 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_201, x_222, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_215); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_185, x_224, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_225); +lean_dec(x_224); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); +x_23 = x_227; +x_24 = x_228; +goto block_31; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_211); +lean_dec(x_195); +lean_dec(x_190); +lean_dec(x_185); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_229 = lean_ctor_get(x_213, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_213, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_231 = x_213; +} else { + lean_dec_ref(x_213); + x_231 = lean_box(0); +} +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); +} else { + x_232 = x_231; +} +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; +} +} +} +else +{ +lean_object* x_233; lean_object* x_234; +lean_dec(x_195); +lean_dec(x_190); +x_233 = lean_ctor_get(x_197, 1); +lean_inc(x_233); +lean_dec(x_197); +lean_inc(x_3); +lean_ctor_set(x_8, 1, x_185); +lean_ctor_set(x_8, 0, x_3); +x_234 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_234, 0, x_8); +x_23 = x_234; +x_24 = x_233; +goto block_31; +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_195); +lean_dec(x_190); +lean_dec(x_185); +lean_free_object(x_8); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_235 = lean_ctor_get(x_197, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_197, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_237 = x_197; +} else { + lean_dec_ref(x_197); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; +} +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_190); +lean_dec(x_185); +lean_free_object(x_8); +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_239 = lean_ctor_get(x_194, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_194, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_241 = x_194; +} else { + lean_dec_ref(x_194); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +} +else +{ +lean_object* x_243; +lean_dec(x_190); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_8, 1, x_185); +lean_ctor_set(x_8, 0, x_3); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_8); +x_23 = x_243; +x_24 = x_189; +goto block_31; +} +} +} +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_244 = lean_ctor_get(x_8, 1); +lean_inc(x_244); +lean_dec(x_8); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +x_247 = lean_ctor_get(x_244, 2); +lean_inc(x_247); +x_248 = lean_nat_dec_lt(x_246, x_247); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; +lean_dec(x_247); +lean_dec(x_246); +lean_dec(x_245); +lean_dec(x_22); +lean_inc(x_3); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_3); +lean_ctor_set(x_249, 1, x_244); +x_250 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_250, 0, x_249); +x_23 = x_250; +x_24 = x_19; +goto block_31; +} +else +{ +lean_object* x_251; lean_object* x_252; uint8_t x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + lean_ctor_release(x_244, 2); + x_251 = x_244; +} else { + lean_dec_ref(x_244); + x_251 = lean_box(0); +} +x_252 = lean_array_fget(x_245, x_246); +x_253 = lean_unbox(x_252); +lean_dec(x_252); +x_254 = lean_unsigned_to_nat(1u); +x_255 = lean_nat_add(x_246, x_254); +lean_dec(x_246); +if (lean_is_scalar(x_251)) { + x_256 = lean_alloc_ctor(0, 3, 0); +} else { + x_256 = x_251; +} +lean_ctor_set(x_256, 0, x_245); +lean_ctor_set(x_256, 1, x_255); +lean_ctor_set(x_256, 2, x_247); +x_257 = l_Lean_Expr_mvarId_x21(x_22); +x_258 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_257, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_257); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_261 = x_258; +} else { + lean_dec_ref(x_258); + x_261 = lean_box(0); +} +x_262 = l_Lean_BinderInfo_isInstImplicit(x_253); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; +lean_dec(x_261); +lean_dec(x_259); +lean_dec(x_22); +lean_inc(x_3); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_3); +lean_ctor_set(x_263, 1, x_256); +x_264 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_264, 0, x_263); +x_23 = x_264; +x_24 = x_260; +goto block_31; +} +else +{ +uint8_t x_265; +x_265 = lean_unbox(x_259); +lean_dec(x_259); +if (x_265 == 0) +{ +lean_object* x_266; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_22); +x_266 = lean_infer_type(x_22, x_15, x_16, x_17, x_18, x_260); +if (lean_obj_tag(x_266) == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +lean_dec(x_266); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_267); +x_269 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem_synthesizeInstance(x_22, x_267, x_15, x_16, x_17, x_18, x_268); +if (lean_obj_tag(x_269) == 0) +{ +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_unbox(x_270); +lean_dec(x_270); +if (x_271 == 0) +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_272 = lean_ctor_get(x_269, 1); +lean_inc(x_272); +lean_dec(x_269); +x_273 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_274 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_273, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_272); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_unbox(x_275); +lean_dec(x_275); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_267); +lean_dec(x_261); +x_277 = lean_ctor_get(x_274, 1); +lean_inc(x_277); +lean_dec(x_274); +x_278 = lean_box(0); +x_279 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_256, x_278, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_277); +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 1); +lean_inc(x_281); +lean_dec(x_279); +x_23 = x_280; +x_24 = x_281; +goto block_31; +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_282 = lean_ctor_get(x_274, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_283 = x_274; +} else { + lean_dec_ref(x_274); + x_283 = lean_box(0); +} +x_284 = lean_ctor_get(x_1, 5); +lean_inc(x_284); +x_285 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_284, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_282); +if (lean_obj_tag(x_285) == 0) +{ +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; +x_286 = lean_ctor_get(x_285, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_285, 1); +lean_inc(x_287); +lean_dec(x_285); +x_288 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2; +if (lean_is_scalar(x_283)) { + x_289 = lean_alloc_ctor(7, 2, 0); +} else { + x_289 = x_283; + lean_ctor_set_tag(x_289, 7); +} +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_286); +x_290 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +if (lean_is_scalar(x_261)) { + x_291 = lean_alloc_ctor(7, 2, 0); +} else { + x_291 = x_261; + lean_ctor_set_tag(x_291, 7); +} +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +x_292 = l_Lean_indentExpr(x_267); +x_293 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_293, 0, x_291); +lean_ctor_set(x_293, 1, x_292); +x_294 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_294, 0, x_293); +lean_ctor_set(x_294, 1, x_290); +x_295 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_273, x_294, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_287); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_295, 1); +lean_inc(x_297); +lean_dec(x_295); +x_298 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_256, x_296, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_297); +lean_dec(x_296); +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec(x_298); +x_23 = x_299; +x_24 = x_300; +goto block_31; +} +else +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_283); +lean_dec(x_267); +lean_dec(x_261); +lean_dec(x_256); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_301 = lean_ctor_get(x_285, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_285, 1); +lean_inc(x_302); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_303 = x_285; +} else { + lean_dec_ref(x_285); + x_303 = lean_box(0); +} +if (lean_is_scalar(x_303)) { + x_304 = lean_alloc_ctor(1, 2, 0); +} else { + x_304 = x_303; +} +lean_ctor_set(x_304, 0, x_301); +lean_ctor_set(x_304, 1, x_302); +return x_304; +} +} +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_dec(x_267); +lean_dec(x_261); +x_305 = lean_ctor_get(x_269, 1); +lean_inc(x_305); +lean_dec(x_269); +lean_inc(x_3); +x_306 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_306, 0, x_3); +lean_ctor_set(x_306, 1, x_256); +x_307 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_307, 0, x_306); +x_23 = x_307; +x_24 = x_305; +goto block_31; +} +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +lean_dec(x_267); +lean_dec(x_261); +lean_dec(x_256); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_308 = lean_ctor_get(x_269, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_269, 1); +lean_inc(x_309); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_310 = x_269; +} else { + lean_dec_ref(x_269); + x_310 = lean_box(0); +} +if (lean_is_scalar(x_310)) { + x_311 = lean_alloc_ctor(1, 2, 0); +} else { + x_311 = x_310; +} +lean_ctor_set(x_311, 0, x_308); +lean_ctor_set(x_311, 1, x_309); +return x_311; +} +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +lean_dec(x_261); +lean_dec(x_256); +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_312 = lean_ctor_get(x_266, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_266, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_314 = x_266; +} else { + lean_dec_ref(x_266); + x_314 = lean_box(0); +} +if (lean_is_scalar(x_314)) { + x_315 = lean_alloc_ctor(1, 2, 0); +} else { + x_315 = x_314; +} +lean_ctor_set(x_315, 0, x_312); +lean_ctor_set(x_315, 1, x_313); +return x_315; +} +} +else +{ +lean_object* x_316; lean_object* x_317; +lean_dec(x_261); +lean_dec(x_22); +lean_inc(x_3); +x_316 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_316, 0, x_3); +lean_ctor_set(x_316, 1, x_256); +x_317 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_317, 0, x_316); +x_23 = x_317; +x_24 = x_260; +goto block_31; +} +} +} +} +block_31: +{ +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_1); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +else +{ +lean_object* x_27; size_t x_28; size_t x_29; +x_27 = lean_ctor_get(x_23, 0); +lean_inc(x_27); +lean_dec(x_23); +x_28 = 1; +x_29 = lean_usize_add(x_7, x_28); +x_7 = x_29; +x_8 = x_27; +x_19 = x_24; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6(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, lean_object* x_17, lean_object* x_18) { +_start: +{ +uint8_t x_19; +x_19 = lean_usize_dec_lt(x_6, x_5); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_7); +x_21 = lean_array_uget(x_4, x_6); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_21); +x_22 = l_Lean_Meta_isProof(x_21, x_14, x_15, x_16, x_17, x_18); +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_unbox(x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +uint8_t x_25; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_22, 0); +lean_dec(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_21); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_22, 0, x_30); +return x_22; +} +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; +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_21); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +else +{ +lean_object* x_37; size_t x_38; size_t x_39; +lean_dec(x_21); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_dec(x_22); +x_38 = 1; +x_39 = lean_usize_add(x_6, x_38); +lean_inc(x_3); +{ +size_t _tmp_5 = x_39; +lean_object* _tmp_6 = x_3; +lean_object* _tmp_17 = x_37; +x_6 = _tmp_5; +x_7 = _tmp_6; +x_18 = _tmp_17; +} +goto _start; +} +} +else +{ +uint8_t x_41; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_41 = !lean_is_exclusive(x_22); +if (x_41 == 0) +{ +return x_22; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_22, 0); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_22); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__7(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, lean_object* x_17, lean_object* x_18) { +_start: +{ +uint8_t x_19; +x_19 = lean_usize_dec_lt(x_6, x_5); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_7); +x_21 = lean_array_uget(x_4, x_6); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_21); +x_22 = l_Lean_Meta_isProof(x_21, x_14, x_15, x_16, x_17, x_18); +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_unbox(x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +uint8_t x_25; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_22, 0); +lean_dec(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_21); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_22, 0, x_30); +return x_22; +} +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; +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_21); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +else +{ +lean_object* x_37; size_t x_38; size_t x_39; +lean_dec(x_21); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_dec(x_22); +x_38 = 1; +x_39 = lean_usize_add(x_6, x_38); +lean_inc(x_3); +{ +size_t _tmp_5 = x_39; +lean_object* _tmp_6 = x_3; +lean_object* _tmp_17 = x_37; +x_6 = _tmp_5; +x_7 = _tmp_6; +x_18 = _tmp_17; +} +goto _start; +} +} +else +{ +uint8_t x_41; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_41 = !lean_is_exclusive(x_22); +if (x_41 == 0) +{ +return x_22; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_22, 0); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_22); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_eq(x_2, x_3); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_array_uget(x_1, x_2); +x_18 = l_Lean_Expr_mvarId_x21(x_17); +x_19 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_18, 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_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_array_push(x_4, x_17); +x_24 = 1; +x_25 = lean_usize_add(x_2, x_24); +x_2 = x_25; +x_4 = x_23; +x_15 = x_22; +goto _start; +} +else +{ +lean_object* x_27; size_t x_28; size_t x_29; +lean_dec(x_17); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_dec(x_19); +x_28 = 1; +x_29 = lean_usize_add(x_2, x_28); +x_2 = x_29; +x_15 = x_27; +goto _start; +} +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_4); +lean_ctor_set(x_31, 1, x_15); +return x_31; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9(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, lean_object* x_17, lean_object* x_18) { +_start: +{ +uint8_t x_19; +x_19 = lean_usize_dec_lt(x_6, x_5); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_7); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_7); +x_21 = lean_array_uget(x_4, x_6); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_21); +x_22 = l_Lean_Meta_isProof(x_21, x_14, x_15, x_16, x_17, x_18); +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_unbox(x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +uint8_t x_25; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_22, 0); +lean_dec(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_21); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_22, 0, x_30); +return x_22; +} +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; +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_21); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +else +{ +lean_object* x_37; size_t x_38; size_t x_39; +lean_dec(x_21); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_dec(x_22); +x_38 = 1; +x_39 = lean_usize_add(x_6, x_38); +lean_inc(x_3); +{ +size_t _tmp_5 = x_39; +lean_object* _tmp_6 = x_3; +lean_object* _tmp_17 = x_37; +x_6 = _tmp_5; +x_7 = _tmp_6; +x_18 = _tmp_17; +} +goto _start; +} +} +else +{ +uint8_t x_41; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +x_41 = !lean_is_exclusive(x_22); +if (x_41 == 0) +{ +return x_22; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_22, 0); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_22); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_eq(x_2, x_3); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_array_uget(x_1, x_2); +x_17 = l_Lean_Expr_mvarId_x21(x_16); +lean_dec(x_16); +x_18 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_18, 0, x_24); +return x_18; +} +else +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_dec(x_18); +x_26 = 1; +x_27 = lean_box(x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +else +{ +lean_object* x_29; size_t x_30; size_t x_31; +x_29 = lean_ctor_get(x_18, 1); +lean_inc(x_29); +lean_dec(x_18); +x_30 = 1; +x_31 = lean_usize_add(x_2, x_30); +x_2 = x_31; +x_14 = x_29; +goto _start; +} +} +else +{ +uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_33 = 0; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_14); +return x_35; +} +} +} +LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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(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_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_14 = 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_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_apply_12(x_2, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11___rarg), 13, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(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, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +x_15 = l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(x_2, x_14, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg___boxed), 13, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, 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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; +x_17 = l_Lean_instantiateMVars___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__1(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 0; +x_21 = 1; +x_22 = 0; +x_23 = l_Lean_Meta_mkLambdaFVars(x_2, x_18, x_20, x_21, x_20, x_22, x_12, x_13, x_14, x_15, x_19); +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; +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(x_23); +x_26 = lean_ctor_get(x_3, 5); +lean_inc(x_26); +lean_dec(x_3); +x_27 = lean_ctor_get(x_4, 1); +lean_inc(x_27); +lean_dec(x_4); +x_28 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_26, x_24, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_25); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) +{ +return x_23; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +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; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +static size_t _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; size_t x_2; +x_1 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_2 = lean_array_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("failed to instantiate ", 22, 22); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", failed to instantiate non propositional argument with type", 60, 60); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_21) { +_start: +{ +lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_lt(x_22, x_1); +if (x_23 == 0) +{ +uint8_t x_292; +x_292 = 1; +x_24 = x_292; +x_25 = x_21; +goto block_291; +} +else +{ +size_t x_293; lean_object* x_294; lean_object* x_295; uint8_t x_296; +x_293 = lean_usize_of_nat(x_1); +x_294 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__10(x_3, x_8, x_293, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_unbox(x_295); +lean_dec(x_295); +if (x_296 == 0) +{ +lean_object* x_297; uint8_t x_298; +x_297 = lean_ctor_get(x_294, 1); +lean_inc(x_297); +lean_dec(x_294); +x_298 = 1; +x_24 = x_298; +x_25 = x_297; +goto block_291; +} +else +{ +lean_object* x_299; uint8_t x_300; +x_299 = lean_ctor_get(x_294, 1); +lean_inc(x_299); +lean_dec(x_294); +x_300 = 0; +x_24 = x_300; +x_25 = x_299; +goto block_291; +} +} +block_291: +{ +if (x_24 == 0) +{ +lean_object* x_26; +x_26 = l_Lean_mkAppN(x_2, x_3); +if (x_23 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_101; size_t x_102; lean_object* x_103; +x_101 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_102 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1; +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_7); +x_103 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6(x_6, x_101, x_7, x_101, x_102, x_8, x_7, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_25); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +lean_dec(x_104); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_27 = x_9; +x_28 = x_106; +goto block_100; +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_9); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +lean_dec(x_103); +x_108 = lean_ctor_get(x_105, 0); +lean_inc(x_108); +lean_dec(x_105); +x_27 = x_108; +x_28 = x_107; +goto block_100; +} +} +else +{ +uint8_t x_109; +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_109 = !lean_is_exclusive(x_103); +if (x_109 == 0) +{ +return x_103; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_103, 0); +x_111 = lean_ctor_get(x_103, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_103); +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; +} +} +block_100: +{ +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_30 = lean_box(0); +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_29, x_4, x_5, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_28); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_27, 0); +lean_inc(x_32); +lean_dec(x_27); +x_33 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_34 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_28); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_unbox(x_35); +lean_dec(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_32); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_39 = lean_box(0); +x_40 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_38, x_4, x_5, x_39, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_37); +return x_40; +} +else +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_34); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_34, 1); +x_43 = lean_ctor_get(x_34, 0); +lean_dec(x_43); +x_44 = lean_ctor_get(x_4, 5); +lean_inc(x_44); +x_45 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_44, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_42); +if (lean_obj_tag(x_45) == 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(x_45); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_48 = lean_infer_type(x_32, x_17, x_18, x_19, x_20, x_47); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +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(x_48); +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +lean_ctor_set_tag(x_34, 7); +lean_ctor_set(x_34, 1, x_46); +lean_ctor_set(x_34, 0, x_51); +x_52 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_34); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_indentExpr(x_49); +x_55 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_57 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_33, x_57, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_50); +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(x_58); +x_61 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_62 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_61, x_4, x_5, x_59, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_60); +lean_dec(x_59); +return x_62; +} +else +{ +uint8_t x_63; +lean_dec(x_46); +lean_free_object(x_34); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_63 = !lean_is_exclusive(x_48); +if (x_63 == 0) +{ +return x_48; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_48, 0); +x_65 = lean_ctor_get(x_48, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_48); +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_67; +lean_free_object(x_34); +lean_dec(x_32); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_67 = !lean_is_exclusive(x_45); +if (x_67 == 0) +{ +return x_45; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_45, 0); +x_69 = lean_ctor_get(x_45, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_45); +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; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_34, 1); +lean_inc(x_71); +lean_dec(x_34); +x_72 = lean_ctor_get(x_4, 5); +lean_inc(x_72); +x_73 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_72, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_71); +if (lean_obj_tag(x_73) == 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(x_73); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_76 = lean_infer_type(x_32, x_17, x_18, x_19, x_20, x_75); +if (lean_obj_tag(x_76) == 0) +{ +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; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_74); +x_81 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +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_indentExpr(x_77); +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_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +x_87 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_33, x_86, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_78); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_91 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_90, x_4, x_5, x_88, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_89); +lean_dec(x_88); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_74); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_92 = lean_ctor_get(x_76, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_76, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_94 = x_76; +} else { + lean_dec_ref(x_76); + 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_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_32); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_96 = lean_ctor_get(x_73, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_73, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_98 = x_73; +} else { + lean_dec_ref(x_73); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +} +} +} +} +else +{ +uint8_t x_113; +x_113 = lean_nat_dec_le(x_1, x_1); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_188; size_t x_189; lean_object* x_190; +x_188 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_189 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1; +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_7); +x_190 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__7(x_6, x_188, x_7, x_188, x_189, x_8, x_7, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_25); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +lean_dec(x_191); +if (lean_obj_tag(x_192) == 0) +{ +lean_object* x_193; +x_193 = lean_ctor_get(x_190, 1); +lean_inc(x_193); +lean_dec(x_190); +x_114 = x_9; +x_115 = x_193; +goto block_187; +} +else +{ +lean_object* x_194; lean_object* x_195; +lean_dec(x_9); +x_194 = lean_ctor_get(x_190, 1); +lean_inc(x_194); +lean_dec(x_190); +x_195 = lean_ctor_get(x_192, 0); +lean_inc(x_195); +lean_dec(x_192); +x_114 = x_195; +x_115 = x_194; +goto block_187; +} +} +else +{ +uint8_t x_196; +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_196 = !lean_is_exclusive(x_190); +if (x_196 == 0) +{ +return x_190; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_190, 0); +x_198 = lean_ctor_get(x_190, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_190); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +return x_199; +} +} +block_187: +{ +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_117 = lean_box(0); +x_118 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_116, x_4, x_5, x_117, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_115); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_119 = lean_ctor_get(x_114, 0); +lean_inc(x_119); +lean_dec(x_114); +x_120 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_121 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_120, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_115); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_unbox(x_122); +lean_dec(x_122); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_119); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec(x_121); +x_125 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_126 = lean_box(0); +x_127 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_125, x_4, x_5, x_126, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_124); +return x_127; +} +else +{ +uint8_t x_128; +x_128 = !lean_is_exclusive(x_121); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_121, 1); +x_130 = lean_ctor_get(x_121, 0); +lean_dec(x_130); +x_131 = lean_ctor_get(x_4, 5); +lean_inc(x_131); +x_132 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_131, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_129); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_135 = lean_infer_type(x_119, x_17, x_18, x_19, x_20, x_134); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +lean_ctor_set_tag(x_121, 7); +lean_ctor_set(x_121, 1, x_133); +lean_ctor_set(x_121, 0, x_138); +x_139 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +x_140 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_140, 0, x_121); +lean_ctor_set(x_140, 1, x_139); +x_141 = l_Lean_indentExpr(x_136); +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_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_144 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +x_145 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_120, x_144, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_137); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +x_148 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_149 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_148, x_4, x_5, x_146, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_147); +lean_dec(x_146); +return x_149; +} +else +{ +uint8_t x_150; +lean_dec(x_133); +lean_free_object(x_121); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_150 = !lean_is_exclusive(x_135); +if (x_150 == 0) +{ +return x_135; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_135, 0); +x_152 = lean_ctor_get(x_135, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_135); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +return x_153; +} +} +} +else +{ +uint8_t x_154; +lean_free_object(x_121); +lean_dec(x_119); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_154 = !lean_is_exclusive(x_132); +if (x_154 == 0) +{ +return x_132; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_132, 0); +x_156 = lean_ctor_get(x_132, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_132); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_121, 1); +lean_inc(x_158); +lean_dec(x_121); +x_159 = lean_ctor_get(x_4, 5); +lean_inc(x_159); +x_160 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_159, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_158); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_163 = lean_infer_type(x_119, x_17, x_18, x_19, x_20, x_162); +if (lean_obj_tag(x_163) == 0) +{ +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; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +x_167 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_161); +x_168 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +x_169 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +x_170 = l_Lean_indentExpr(x_164); +x_171 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +x_172 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_173 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +x_174 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_120, x_173, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_165); +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +x_177 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_178 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_177, x_4, x_5, x_175, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_176); +lean_dec(x_175); +return x_178; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_161); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_179 = lean_ctor_get(x_163, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_163, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_181 = x_163; +} else { + lean_dec_ref(x_163); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_119); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_183 = lean_ctor_get(x_160, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_160, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_185 = x_160; +} else { + lean_dec_ref(x_160); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +} +} +} +} +} +else +{ +size_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; size_t x_206; lean_object* x_207; lean_object* x_208; lean_object* x_277; +x_200 = lean_usize_of_nat(x_1); +x_201 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2; +x_202 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__8(x_3, x_8, x_200, x_201, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_25); +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_202, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_205 = x_202; +} else { + lean_dec_ref(x_202); + x_205 = lean_box(0); +} +x_206 = lean_array_size(x_203); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_7); +x_277 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9(x_6, x_203, x_7, x_203, x_206, x_8, x_7, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_204); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; lean_object* x_279; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +lean_dec(x_278); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; +x_280 = lean_ctor_get(x_277, 1); +lean_inc(x_280); +lean_dec(x_277); +x_207 = x_9; +x_208 = x_280; +goto block_276; +} +else +{ +lean_object* x_281; lean_object* x_282; +lean_dec(x_9); +x_281 = lean_ctor_get(x_277, 1); +lean_inc(x_281); +lean_dec(x_277); +x_282 = lean_ctor_get(x_279, 0); +lean_inc(x_282); +lean_dec(x_279); +x_207 = x_282; +x_208 = x_281; +goto block_276; +} +} +else +{ +uint8_t x_283; +lean_dec(x_205); +lean_dec(x_203); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_283 = !lean_is_exclusive(x_277); +if (x_283 == 0) +{ +return x_277; +} +else +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_284 = lean_ctor_get(x_277, 0); +x_285 = lean_ctor_get(x_277, 1); +lean_inc(x_285); +lean_inc(x_284); +lean_dec(x_277); +x_286 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_285); +return x_286; +} +} +block_276: +{ +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_205); +x_209 = lean_box(0); +x_210 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_203, x_4, x_5, x_209, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_208); +lean_dec(x_203); +return x_210; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; +x_211 = lean_ctor_get(x_207, 0); +lean_inc(x_211); +lean_dec(x_207); +x_212 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_213 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_212, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_208); +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_unbox(x_214); +lean_dec(x_214); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_dec(x_211); +lean_dec(x_205); +x_216 = lean_ctor_get(x_213, 1); +lean_inc(x_216); +lean_dec(x_213); +x_217 = lean_box(0); +x_218 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_203, x_4, x_5, x_217, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_216); +lean_dec(x_203); +return x_218; +} +else +{ +uint8_t x_219; +x_219 = !lean_is_exclusive(x_213); +if (x_219 == 0) +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_220 = lean_ctor_get(x_213, 1); +x_221 = lean_ctor_get(x_213, 0); +lean_dec(x_221); +x_222 = lean_ctor_get(x_4, 5); +lean_inc(x_222); +x_223 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_222, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_220); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_226 = lean_infer_type(x_211, x_17, x_18, x_19, x_20, x_225); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); +x_229 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +lean_ctor_set_tag(x_213, 7); +lean_ctor_set(x_213, 1, x_224); +lean_ctor_set(x_213, 0, x_229); +x_230 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +if (lean_is_scalar(x_205)) { + x_231 = lean_alloc_ctor(7, 2, 0); +} else { + x_231 = x_205; + lean_ctor_set_tag(x_231, 7); +} +lean_ctor_set(x_231, 0, x_213); +lean_ctor_set(x_231, 1, x_230); +x_232 = l_Lean_indentExpr(x_227); +x_233 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +x_234 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_235 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +x_236 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_212, x_235, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_228); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +lean_dec(x_236); +x_239 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_203, x_4, x_5, x_237, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_238); +lean_dec(x_237); +lean_dec(x_203); +return x_239; +} +else +{ +uint8_t x_240; +lean_dec(x_224); +lean_free_object(x_213); +lean_dec(x_205); +lean_dec(x_203); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_240 = !lean_is_exclusive(x_226); +if (x_240 == 0) +{ +return x_226; +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_241 = lean_ctor_get(x_226, 0); +x_242 = lean_ctor_get(x_226, 1); +lean_inc(x_242); +lean_inc(x_241); +lean_dec(x_226); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_241); +lean_ctor_set(x_243, 1, x_242); +return x_243; +} +} +} +else +{ +uint8_t x_244; +lean_free_object(x_213); +lean_dec(x_211); +lean_dec(x_205); +lean_dec(x_203); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_244 = !lean_is_exclusive(x_223); +if (x_244 == 0) +{ +return x_223; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_223, 0); +x_246 = lean_ctor_get(x_223, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_223); +x_247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_247, 0, x_245); +lean_ctor_set(x_247, 1, x_246); +return x_247; +} +} +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = lean_ctor_get(x_213, 1); +lean_inc(x_248); +lean_dec(x_213); +x_249 = lean_ctor_get(x_4, 5); +lean_inc(x_249); +x_250 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_249, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_248); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +lean_dec(x_250); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_253 = lean_infer_type(x_211, x_17, x_18, x_19, x_20, x_252); +if (lean_obj_tag(x_253) == 0) +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_254 = lean_ctor_get(x_253, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_253, 1); +lean_inc(x_255); +lean_dec(x_253); +x_256 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3; +x_257 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_251); +x_258 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5; +if (lean_is_scalar(x_205)) { + x_259 = lean_alloc_ctor(7, 2, 0); +} else { + x_259 = x_205; + lean_ctor_set_tag(x_259, 7); +} +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +x_260 = l_Lean_indentExpr(x_254); +x_261 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +x_262 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_263 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +x_264 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_212, x_263, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_255); +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); +x_267 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_26, x_203, x_4, x_5, x_265, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_266); +lean_dec(x_265); +lean_dec(x_203); +return x_267; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_251); +lean_dec(x_205); +lean_dec(x_203); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_268 = lean_ctor_get(x_253, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_253, 1); +lean_inc(x_269); +if (lean_is_exclusive(x_253)) { + lean_ctor_release(x_253, 0); + lean_ctor_release(x_253, 1); + x_270 = x_253; +} else { + lean_dec_ref(x_253); + x_270 = lean_box(0); +} +if (lean_is_scalar(x_270)) { + x_271 = lean_alloc_ctor(1, 2, 0); +} else { + x_271 = x_270; +} +lean_ctor_set(x_271, 0, x_268); +lean_ctor_set(x_271, 1, x_269); +return x_271; +} +} +else +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; +lean_dec(x_211); +lean_dec(x_205); +lean_dec(x_203); +lean_dec(x_26); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +x_272 = lean_ctor_get(x_250, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_250, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_274 = x_250; +} else { + lean_dec_ref(x_250); + x_274 = lean_box(0); +} +if (lean_is_scalar(x_274)) { + x_275 = lean_alloc_ctor(1, 2, 0); +} else { + x_275 = x_274; +} +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_273); +return x_275; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_9); +lean_dec(x_7); +x_287 = lean_ctor_get(x_4, 5); +lean_inc(x_287); +lean_dec(x_4); +x_288 = l_Lean_mkAppN(x_2, x_3); +x_289 = lean_ctor_get(x_5, 1); +lean_inc(x_289); +lean_dec(x_5); +x_290 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_287, x_288, x_289, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_25); +return x_290; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; size_t x_26; size_t x_27; lean_object* x_28; +x_21 = lean_array_get_size(x_1); +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_Array_toSubarray___rarg(x_1, x_22, x_21); +x_24 = lean_box(0); +lean_inc(x_2); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_2); +lean_ctor_set(x_25, 1, x_23); +x_26 = lean_array_size(x_3); +x_27 = 0; +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_2); +lean_inc(x_4); +x_28 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5(x_4, x_3, x_2, x_24, x_3, x_26, x_27, x_25, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +lean_dec(x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_box(0); +x_33 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3(x_5, x_6, x_3, x_4, x_7, x_24, x_8, x_27, x_2, x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_31); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_28); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_28, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_30, 0); +lean_inc(x_36); +lean_dec(x_30); +lean_ctor_set(x_28, 0, x_36); +return x_28; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_28, 1); +lean_inc(x_37); +lean_dec(x_28); +x_38 = lean_ctor_get(x_30, 0); +lean_inc(x_38); +lean_dec(x_30); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_28); +if (x_40 == 0) +{ +return x_28; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_28, 0); +x_42 = lean_ctor_get(x_28, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_28); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +lean_object* x_21; 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_21 = lean_array_get_size(x_1); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_unsigned_to_nat(1u); +lean_inc(x_21); +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_23); +x_25 = lean_box(0); +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1; +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_2); +x_27 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3(x_2, x_3, x_4, x_5, x_1, x_24, x_26, x_24, x_26, x_22, lean_box(0), lean_box(0), x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +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_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_box(0); +x_32 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4(x_6, x_25, x_1, x_2, x_21, x_7, x_8, x_26, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_30); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_21); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_33 = !lean_is_exclusive(x_27); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_27, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_29, 0); +lean_inc(x_35); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_35); +return x_27; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_dec(x_27); +x_37 = lean_ctor_get(x_29, 0); +lean_inc(x_37); +lean_dec(x_29); +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_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) +{ +return x_27; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_27); +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_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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; 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; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("assertion violation: ", 21, 21); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("c.assignment.size == numParams\n ", 33, 33); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.EMatch.0.Lean.Meta.Grind.EMatch.instantiateTheorem", 82, 82); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4; +x_3 = lean_unsigned_to_nat(172u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__6___boxed), 12, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unexpected number of parameters at ", 35, 35); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, 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_1); +x_16 = l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(x_1, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +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(x_16); +x_19 = lean_ctor_get(x_1, 2); +lean_inc(x_19); +x_20 = lean_array_get_size(x_2); +x_21 = lean_nat_dec_eq(x_20, x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_3); +lean_dec(x_1); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__5; +x_23 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_17); +x_24 = lean_infer_type(x_17, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +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(x_24); +x_27 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_19); +x_28 = l_Lean_Meta_forallMetaBoundedTelescope(x_25, x_19, x_27, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_ctor_get(x_29, 0); +lean_inc(x_32); +lean_dec(x_29); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_dec(x_35); +x_36 = lean_array_get_size(x_32); +x_37 = lean_nat_dec_eq(x_36, x_19); +lean_dec(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_3); +x_38 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_39 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_31); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +x_43 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6; +x_44 = lean_unbox(x_41); +lean_dec(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_1); +x_45 = lean_box(0); +x_46 = lean_apply_12(x_43, x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_42); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_1, 5); +lean_inc(x_47); +lean_dec(x_1); +x_48 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_42); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +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(x_48); +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8; +lean_ctor_set_tag(x_39, 7); +lean_ctor_set(x_39, 1, x_49); +lean_ctor_set(x_39, 0, x_51); +x_52 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_30, 7); +lean_ctor_set(x_30, 1, x_52); +lean_ctor_set(x_30, 0, x_39); +x_53 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_38, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_50); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_apply_12(x_43, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_55); +return x_56; +} +else +{ +uint8_t x_57; +lean_free_object(x_39); +lean_free_object(x_30); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_57 = !lean_is_exclusive(x_48); +if (x_57 == 0) +{ +return x_48; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_48, 0); +x_59 = lean_ctor_get(x_48, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_48); +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_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_39, 0); +x_62 = lean_ctor_get(x_39, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_39); +x_63 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6; +x_64 = lean_unbox(x_61); +lean_dec(x_61); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_free_object(x_30); +lean_dec(x_1); +x_65 = lean_box(0); +x_66 = lean_apply_12(x_63, x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_62); +return x_66; +} +else +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_1, 5); +lean_inc(x_67); +lean_dec(x_1); +x_68 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_62); +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; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8; +x_72 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_69); +x_73 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_30, 7); +lean_ctor_set(x_30, 1, x_73); +lean_ctor_set(x_30, 0, x_72); +x_74 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_38, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_70); +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(x_74); +x_77 = lean_apply_12(x_63, x_75, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_76); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_free_object(x_30); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_78 = lean_ctor_get(x_68, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_68, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_80 = x_68; +} else { + lean_dec_ref(x_68); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; +lean_free_object(x_30); +x_82 = lean_box(0); +x_83 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5(x_32, x_1, x_2, x_19, x_20, x_34, x_17, x_3, x_82, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_31); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_32); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_84 = lean_ctor_get(x_30, 0); +lean_inc(x_84); +lean_dec(x_30); +x_85 = lean_array_get_size(x_32); +x_86 = lean_nat_dec_eq(x_85, x_19); +lean_dec(x_85); +if (x_86 == 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; uint8_t x_93; +lean_dec(x_84); +lean_dec(x_32); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_3); +x_87 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2; +x_88 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_31); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +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_88); + x_91 = lean_box(0); +} +x_92 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6; +x_93 = lean_unbox(x_89); +lean_dec(x_89); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_91); +lean_dec(x_1); +x_94 = lean_box(0); +x_95 = lean_apply_12(x_92, x_94, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_90); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_1, 5); +lean_inc(x_96); +lean_dec(x_1); +x_97 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_96, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_90); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +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(x_97); +x_100 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8; +if (lean_is_scalar(x_91)) { + x_101 = lean_alloc_ctor(7, 2, 0); +} else { + x_101 = x_91; + lean_ctor_set_tag(x_101, 7); +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_87, x_103, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_apply_12(x_92, x_105, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_106); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_91); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_108 = lean_ctor_get(x_97, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_97, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_110 = x_97; +} else { + lean_dec_ref(x_97); + 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_112; lean_object* x_113; +x_112 = lean_box(0); +x_113 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5(x_32, x_1, x_2, x_19, x_20, x_84, x_17, x_3, x_112, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_31); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_32); +return x_113; +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_114 = !lean_is_exclusive(x_28); +if (x_114 == 0) +{ +return x_28; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_28, 0); +x_116 = lean_ctor_get(x_28, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_28); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +} +else +{ +uint8_t x_118; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_118 = !lean_is_exclusive(x_24); +if (x_118 == 0) +{ +return x_24; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_24, 0); +x_120 = lean_ctor_get(x_24, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_24); +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; +} +} +} +} +else +{ +uint8_t x_122; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_122 = !lean_is_exclusive(x_16); +if (x_122 == 0) +{ +return x_16; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_16, 0); +x_124 = lean_ctor_get(x_16, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_16); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("assignment", 10, 10); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3; +x_4 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__2; +x_17 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__2(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7(x_1, x_2, x_3, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_20); +lean_dec(x_2); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_17); +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_17, 1); +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_1, 5); +lean_inc(x_26); +x_27 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_26, x_5, x_6, 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; 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; +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_27); +x_30 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_28); +lean_ctor_set(x_17, 0, x_30); +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_31); +lean_inc(x_2); +x_33 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData(x_2); +x_34 = lean_array_to_list(x_33); +x_35 = lean_box(0); +x_36 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_34, x_35); +x_37 = l_Lean_MessageData_ofList(x_36); +x_38 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_16, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7(x_1, x_2, x_3, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_42); +lean_dec(x_41); +lean_dec(x_2); +return x_43; +} +else +{ +uint8_t x_44; +lean_free_object(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_27); +if (x_44 == 0) +{ +return x_27; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_27, 0); +x_46 = lean_ctor_get(x_27, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_27); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_17, 1); +lean_inc(x_48); +lean_dec(x_17); +x_49 = lean_ctor_get(x_1, 5); +lean_inc(x_49); +x_50 = l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3(x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_48); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 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_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(x_50); +x_53 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2; +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +x_55 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6; +x_56 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +lean_inc(x_2); +x_57 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData(x_2); +x_58 = lean_array_to_list(x_57); +x_59 = lean_box(0); +x_60 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_58, x_59); +x_61 = l_Lean_MessageData_ofList(x_60); +x_62 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_62, 0, x_56); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_53); +x_64 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7(x_16, x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_52); +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(x_64); +x_67 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7(x_1, x_2, x_3, x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_66); +lean_dec(x_65); +lean_dec(x_2); +return x_67; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_68 = lean_ctor_get(x_50, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_50, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_70 = x_50; +} else { + lean_dec_ref(x_50); + 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; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, 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; uint8_t x_19; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 2); +lean_inc(x_16); +lean_inc(x_16); +x_17 = l_Lean_Meta_Grind_markTheoremInstance(x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_17, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_17, 0, x_22); +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +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; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_box(0); +x_28 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8(x_14, x_16, x_1, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +return x_28; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__1___boxed), 11, 0); +return x_1; +} +} +static uint64_t _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2() { +_start: +{ +uint8_t x_1; uint64_t x_2; +x_1 = 1; +x_2 = l_Lean_Meta_TransparencyMode_toUInt64(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__9), 13, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11___rarg), 13, 2); +lean_closure_set(x_15, 0, x_14); +lean_closure_set(x_15, 1, x_13); +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_8, 0); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +uint64_t x_19; uint8_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint8_t x_26; lean_object* x_27; +x_19 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_20 = 1; +lean_ctor_set_uint8(x_17, 9, x_20); +x_21 = 2; +x_22 = lean_uint64_shift_right(x_19, x_21); +x_23 = lean_uint64_shift_left(x_22, x_21); +x_24 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2; +x_25 = lean_uint64_lor(x_23, x_24); +lean_ctor_set_uint64(x_8, sizeof(void*)*7, x_25); +x_26 = 0; +x_27 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(x_15, x_26, x_2, 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_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_27, 0); +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_27); +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 +{ +uint64_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint64_t x_55; uint64_t x_56; uint64_t x_57; uint64_t x_58; uint64_t x_59; uint8_t x_60; lean_object* x_61; +x_36 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_37 = lean_ctor_get_uint8(x_17, 0); +x_38 = lean_ctor_get_uint8(x_17, 1); +x_39 = lean_ctor_get_uint8(x_17, 2); +x_40 = lean_ctor_get_uint8(x_17, 3); +x_41 = lean_ctor_get_uint8(x_17, 4); +x_42 = lean_ctor_get_uint8(x_17, 5); +x_43 = lean_ctor_get_uint8(x_17, 6); +x_44 = lean_ctor_get_uint8(x_17, 7); +x_45 = lean_ctor_get_uint8(x_17, 8); +x_46 = lean_ctor_get_uint8(x_17, 10); +x_47 = lean_ctor_get_uint8(x_17, 11); +x_48 = lean_ctor_get_uint8(x_17, 12); +x_49 = lean_ctor_get_uint8(x_17, 13); +x_50 = lean_ctor_get_uint8(x_17, 14); +x_51 = lean_ctor_get_uint8(x_17, 15); +x_52 = lean_ctor_get_uint8(x_17, 16); +lean_dec(x_17); +x_53 = 1; +x_54 = lean_alloc_ctor(0, 0, 17); +lean_ctor_set_uint8(x_54, 0, x_37); +lean_ctor_set_uint8(x_54, 1, x_38); +lean_ctor_set_uint8(x_54, 2, x_39); +lean_ctor_set_uint8(x_54, 3, x_40); +lean_ctor_set_uint8(x_54, 4, x_41); +lean_ctor_set_uint8(x_54, 5, x_42); +lean_ctor_set_uint8(x_54, 6, x_43); +lean_ctor_set_uint8(x_54, 7, x_44); +lean_ctor_set_uint8(x_54, 8, x_45); +lean_ctor_set_uint8(x_54, 9, x_53); +lean_ctor_set_uint8(x_54, 10, x_46); +lean_ctor_set_uint8(x_54, 11, x_47); +lean_ctor_set_uint8(x_54, 12, x_48); +lean_ctor_set_uint8(x_54, 13, x_49); +lean_ctor_set_uint8(x_54, 14, x_50); +lean_ctor_set_uint8(x_54, 15, x_51); +lean_ctor_set_uint8(x_54, 16, x_52); +x_55 = 2; +x_56 = lean_uint64_shift_right(x_36, x_55); +x_57 = lean_uint64_shift_left(x_56, x_55); +x_58 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2; +x_59 = lean_uint64_lor(x_57, x_58); +lean_ctor_set(x_8, 0, x_54); +lean_ctor_set_uint64(x_8, sizeof(void*)*7, x_59); +x_60 = 0; +x_61 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(x_15, x_60, x_2, 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_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_64 = x_61; +} else { + lean_dec_ref(x_61); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_61, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_68 = x_61; +} else { + lean_dec_ref(x_61); + x_68 = lean_box(0); +} +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(1, 2, 0); +} else { + x_69 = x_68; +} +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +} +else +{ +lean_object* x_70; uint64_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; uint64_t x_100; uint64_t x_101; uint64_t x_102; uint64_t x_103; uint64_t x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; +x_70 = lean_ctor_get(x_8, 0); +x_71 = lean_ctor_get_uint64(x_8, sizeof(void*)*7); +x_72 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 8); +x_73 = lean_ctor_get(x_8, 1); +x_74 = lean_ctor_get(x_8, 2); +x_75 = lean_ctor_get(x_8, 3); +x_76 = lean_ctor_get(x_8, 4); +x_77 = lean_ctor_get(x_8, 5); +x_78 = lean_ctor_get(x_8, 6); +x_79 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 9); +x_80 = lean_ctor_get_uint8(x_8, sizeof(void*)*7 + 10); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_70); +lean_dec(x_8); +x_81 = lean_ctor_get_uint8(x_70, 0); +x_82 = lean_ctor_get_uint8(x_70, 1); +x_83 = lean_ctor_get_uint8(x_70, 2); +x_84 = lean_ctor_get_uint8(x_70, 3); +x_85 = lean_ctor_get_uint8(x_70, 4); +x_86 = lean_ctor_get_uint8(x_70, 5); +x_87 = lean_ctor_get_uint8(x_70, 6); +x_88 = lean_ctor_get_uint8(x_70, 7); +x_89 = lean_ctor_get_uint8(x_70, 8); +x_90 = lean_ctor_get_uint8(x_70, 10); +x_91 = lean_ctor_get_uint8(x_70, 11); +x_92 = lean_ctor_get_uint8(x_70, 12); +x_93 = lean_ctor_get_uint8(x_70, 13); +x_94 = lean_ctor_get_uint8(x_70, 14); +x_95 = lean_ctor_get_uint8(x_70, 15); +x_96 = lean_ctor_get_uint8(x_70, 16); +if (lean_is_exclusive(x_70)) { + x_97 = x_70; +} else { + lean_dec_ref(x_70); + x_97 = lean_box(0); +} +x_98 = 1; +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(0, 0, 17); +} else { + x_99 = x_97; +} +lean_ctor_set_uint8(x_99, 0, x_81); +lean_ctor_set_uint8(x_99, 1, x_82); +lean_ctor_set_uint8(x_99, 2, x_83); +lean_ctor_set_uint8(x_99, 3, x_84); +lean_ctor_set_uint8(x_99, 4, x_85); +lean_ctor_set_uint8(x_99, 5, x_86); +lean_ctor_set_uint8(x_99, 6, x_87); +lean_ctor_set_uint8(x_99, 7, x_88); +lean_ctor_set_uint8(x_99, 8, x_89); +lean_ctor_set_uint8(x_99, 9, x_98); +lean_ctor_set_uint8(x_99, 10, x_90); +lean_ctor_set_uint8(x_99, 11, x_91); +lean_ctor_set_uint8(x_99, 12, x_92); +lean_ctor_set_uint8(x_99, 13, x_93); +lean_ctor_set_uint8(x_99, 14, x_94); +lean_ctor_set_uint8(x_99, 15, x_95); +lean_ctor_set_uint8(x_99, 16, x_96); +x_100 = 2; +x_101 = lean_uint64_shift_right(x_71, x_100); +x_102 = lean_uint64_shift_left(x_101, x_100); +x_103 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2; +x_104 = lean_uint64_lor(x_102, x_103); +x_105 = lean_alloc_ctor(0, 7, 11); +lean_ctor_set(x_105, 0, x_99); +lean_ctor_set(x_105, 1, x_73); +lean_ctor_set(x_105, 2, x_74); +lean_ctor_set(x_105, 3, x_75); +lean_ctor_set(x_105, 4, x_76); +lean_ctor_set(x_105, 5, x_77); +lean_ctor_set(x_105, 6, x_78); +lean_ctor_set_uint64(x_105, sizeof(void*)*7, x_104); +lean_ctor_set_uint8(x_105, sizeof(void*)*7 + 8, x_72); +lean_ctor_set_uint8(x_105, sizeof(void*)*7 + 9, x_79); +lean_ctor_set_uint8(x_105, sizeof(void*)*7 + 10, x_80); +x_106 = 0; +x_107 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(x_15, x_106, x_2, x_3, x_4, x_5, x_6, x_7, x_105, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_110 = x_107; +} else { + lean_dec_ref(x_107); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(0, 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_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = lean_ctor_get(x_107, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_107, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_114 = x_107; +} else { + lean_dec_ref(x_107); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_ReaderT_read___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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_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); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +_start: +{ +lean_object* x_24; +x_24 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_24; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +size_t x_20; size_t x_21; lean_object* x_22; +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_22 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5(x_1, x_2, x_3, x_4, 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, x_18, x_19); +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(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; size_t x_20; lean_object* x_21; +x_19 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__6(x_1, x_2, x_3, 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, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__7___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; size_t x_20; lean_object* x_21; +x_19 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__7(x_1, x_2, x_3, 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, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_17 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_18 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__8(x_1, x_16, x_17, 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_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; size_t x_20; lean_object* x_21; +x_19 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_20 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_21 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__9(x_1, x_2, x_3, 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, x_17, x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_16 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_17 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__10(x_1, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg___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; lean_object* x_15; +x_14 = lean_unbox(x_2); +lean_dec(x_2); +x_15 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__12___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_11); +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_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +size_t x_22; lean_object* x_23; +x_22 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_23; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +_start: +{ +lean_object* x_21; +x_21 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_15); +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(x_5); +lean_dec(x_3); +return x_21; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +_start: +{ +lean_object* x_21; +x_21 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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(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); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, 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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7(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_4); +lean_dec(x_2); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__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, x_14, x_15); +lean_dec(x_4); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1___boxed), 12, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_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 = lean_st_ref_take(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Meta_Grind_EMatch_instInhabitedChoice; +x_17 = l_List_head_x21___rarg(x_16, x_14); +x_18 = l_List_tail_x21___rarg(x_14); +lean_dec(x_14); +x_19 = lean_st_ref_set(x_3, x_18, x_15); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1; +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +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, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_apply_12(x_21, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_11); +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); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) +{ +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_23); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_22, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_17); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_17, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_22, 1); +lean_inc(x_34); +lean_dec(x_22); +x_35 = lean_ctor_get(x_31, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +lean_dec(x_31); +lean_ctor_set(x_17, 0, x_34); +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_inc(x_5); +lean_inc(x_4); +x_37 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch(x_17, x_35, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_apply_12(x_21, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_39); +return x_40; +} +else +{ +uint8_t x_41; +lean_dec(x_11); +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); +lean_dec(x_2); +x_41 = !lean_is_exclusive(x_37); +if (x_41 == 0) +{ +return x_37; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_37, 0); +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_37); +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_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_17, 1); +x_46 = lean_ctor_get(x_17, 2); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_17); +x_47 = lean_ctor_get(x_22, 1); +lean_inc(x_47); +lean_dec(x_22); +x_48 = lean_ctor_get(x_31, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_31, 1); +lean_inc(x_49); +lean_dec(x_31); +x_50 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_45); +lean_ctor_set(x_50, 2, x_46); +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_inc(x_5); +lean_inc(x_4); +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processMatch(x_50, x_48, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_48); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +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(x_51); +x_54 = lean_apply_12(x_21, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_11); +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); +lean_dec(x_2); +x_55 = lean_ctor_get(x_51, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_51, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_57 = x_51; +} else { + lean_dec_ref(x_51); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_17); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_17, 0); +lean_dec(x_60); +x_61 = lean_ctor_get(x_22, 1); +lean_inc(x_61); +lean_dec(x_22); +x_62 = lean_ctor_get(x_31, 0); +lean_inc(x_62); +lean_dec(x_31); +lean_ctor_set(x_17, 0, x_61); +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_inc(x_5); +lean_inc(x_4); +x_63 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue(x_17, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_apply_12(x_21, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_65); +return x_66; +} +else +{ +uint8_t x_67; +lean_dec(x_11); +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); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_63); +if (x_67 == 0) +{ +return x_63; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_63, 0); +x_69 = lean_ctor_get(x_63, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_63); +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; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_71 = lean_ctor_get(x_17, 1); +x_72 = lean_ctor_get(x_17, 2); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_17); +x_73 = lean_ctor_get(x_22, 1); +lean_inc(x_73); +lean_dec(x_22); +x_74 = lean_ctor_get(x_31, 0); +lean_inc(x_74); +lean_dec(x_31); +x_75 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_71); +lean_ctor_set(x_75, 2, x_72); +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_inc(x_5); +lean_inc(x_4); +x_76 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue(x_75, x_74, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_apply_12(x_21, x_77, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_78); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_11); +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); +lean_dec(x_2); +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___boxed), 12, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_13; +x_12 = lean_st_ref_get(x_2, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = l_List_isEmpty___rarg(x_14); +lean_dec(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_free_object(x_12); +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2; +x_18 = l_Lean_Core_checkSystem(x_17, x_9, x_10, x_15); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (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_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1; +x_25 = lean_box(0); +x_26 = lean_apply_12(x_24, x_25, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +return x_26; +} +else +{ +uint8_t x_27; +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); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_20, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_20, 0, x_29); +return x_20; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +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; +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); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_18); +if (x_33 == 0) +{ +return x_18; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_18, 0); +x_35 = lean_ctor_get(x_18, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_18); +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_object* x_37; +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); +lean_dec(x_2); +lean_dec(x_1); +x_37 = lean_box(0); +lean_ctor_set(x_12, 0, x_37); +return x_12; +} +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_12, 0); +x_39 = lean_ctor_get(x_12, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_12); +x_40 = l_List_isEmpty___rarg(x_38); +lean_dec(x_38); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2; +x_42 = l_Lean_Core_checkSystem(x_41, x_9, x_10, x_39); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1; +x_49 = lean_box(0); +x_50 = lean_apply_12(x_48, x_49, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +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); +lean_dec(x_2); +lean_dec(x_1); +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_52 = x_44; +} else { + lean_dec_ref(x_44); + x_52 = lean_box(0); +} +x_53 = lean_box(0); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +return x_54; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +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); +lean_dec(x_2); +lean_dec(x_1); +x_55 = lean_ctor_get(x_42, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_42, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_57 = x_42; +} else { + lean_dec_ref(x_42); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; +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); +lean_dec(x_2); +lean_dec(x_1); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_39); +return x_60; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1(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_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; +lean_inc(x_1); +x_20 = l_Lean_Meta_Grind_getENode(x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +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_22; lean_object* x_23; lean_object* x_24; uint8_t x_89; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_89 = lean_ctor_get_uint8(x_22, sizeof(void*)*10 + 4); +if (x_89 == 0) +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_22, 3); +lean_inc(x_90); +x_91 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_90, x_1); +lean_dec(x_90); +if (x_91 == 0) +{ +lean_object* x_92; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_5); +lean_ctor_set(x_20, 0, x_92); +return x_20; +} +else +{ +if (x_6 == 0) +{ +lean_object* x_93; +lean_free_object(x_20); +x_93 = lean_box(0); +x_24 = x_93; +goto block_88; +} +else +{ +lean_object* x_94; uint8_t x_95; +x_94 = lean_ctor_get(x_22, 9); +lean_inc(x_94); +x_95 = lean_nat_dec_eq(x_94, x_7); +lean_dec(x_94); +if (x_95 == 0) +{ +lean_object* x_96; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_5); +lean_ctor_set(x_20, 0, x_96); +return x_20; +} +else +{ +lean_object* x_97; +lean_free_object(x_20); +x_97 = lean_box(0); +x_24 = x_97; +goto block_88; +} +} +} +} +else +{ +if (x_6 == 0) +{ +lean_object* x_98; +lean_free_object(x_20); +x_98 = lean_box(0); +x_24 = x_98; +goto block_88; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = lean_ctor_get(x_22, 9); +lean_inc(x_99); +x_100 = lean_nat_dec_eq(x_99, x_7); +lean_dec(x_99); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_5); +lean_ctor_set(x_20, 0, x_101); +return x_20; +} +else +{ +lean_object* x_102; +lean_free_object(x_20); +x_102 = lean_box(0); +x_24 = x_102; +goto block_88; +} +} +} +block_88: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_24); +x_25 = lean_ctor_get(x_22, 8); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_26, 0, x_2); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_3); +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); +x_27 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_26, x_4, x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_23); +lean_dec(x_1); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_27, 0, x_31); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_5); +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; +} +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_dec(x_27); +x_36 = !lean_is_exclusive(x_28); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_28, 0); +x_38 = lean_st_ref_take(x_10, x_35); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 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; +x_40 = lean_ctor_get(x_38, 1); +x_41 = lean_ctor_get(x_38, 0); +lean_dec(x_41); +x_42 = lean_box(0); +lean_ctor_set_tag(x_38, 1); +lean_ctor_set(x_38, 1, x_42); +lean_ctor_set(x_38, 0, x_37); +x_43 = lean_st_ref_set(x_10, x_38, x_40); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, 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_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set(x_28, 0, x_5); +lean_ctor_set(x_45, 0, x_28); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +lean_ctor_set(x_28, 0, x_5); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_28); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +else +{ +uint8_t x_50; +lean_free_object(x_28); +lean_dec(x_5); +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) +{ +return x_45; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_45); +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 +{ +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_54 = lean_ctor_get(x_38, 1); +lean_inc(x_54); +lean_dec(x_38); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_37); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_st_ref_set(x_10, x_56, x_54); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_61 = x_59; +} else { + lean_dec_ref(x_59); + x_61 = lean_box(0); +} +lean_ctor_set(x_28, 0, x_5); +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_28); +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_free_object(x_28); +lean_dec(x_5); +x_63 = lean_ctor_get(x_59, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_59, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_65 = x_59; +} else { + lean_dec_ref(x_59); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +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_object* x_73; lean_object* x_74; lean_object* x_75; +x_67 = lean_ctor_get(x_28, 0); +lean_inc(x_67); +lean_dec(x_28); +x_68 = lean_st_ref_take(x_10, x_35); +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 { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +x_71 = lean_box(0); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_70; + lean_ctor_set_tag(x_72, 1); +} +lean_ctor_set(x_72, 0, x_67); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_st_ref_set(x_10, x_72, x_69); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_74); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_77 = x_75; +} else { + lean_dec_ref(x_75); + x_77 = lean_box(0); +} +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_5); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_77; +} +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_5); +x_80 = lean_ctor_get(x_75, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_75, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_82 = x_75; +} else { + lean_dec_ref(x_75); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_5); +x_84 = !lean_is_exclusive(x_27); +if (x_84 == 0) +{ +return x_27; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_27, 0); +x_86 = lean_ctor_get(x_27, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_27); +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_103; lean_object* x_104; lean_object* x_105; uint8_t x_138; +x_103 = lean_ctor_get(x_20, 0); +x_104 = lean_ctor_get(x_20, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_20); +x_138 = lean_ctor_get_uint8(x_103, sizeof(void*)*10 + 4); +if (x_138 == 0) +{ +lean_object* x_139; uint8_t x_140; +x_139 = lean_ctor_get(x_103, 3); +lean_inc(x_139); +x_140 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_139, x_1); +lean_dec(x_139); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; +lean_dec(x_103); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_141 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_141, 0, x_5); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_104); +return x_142; +} +else +{ +if (x_6 == 0) +{ +lean_object* x_143; +x_143 = lean_box(0); +x_105 = x_143; +goto block_137; +} +else +{ +lean_object* x_144; uint8_t x_145; +x_144 = lean_ctor_get(x_103, 9); +lean_inc(x_144); +x_145 = lean_nat_dec_eq(x_144, x_7); +lean_dec(x_144); +if (x_145 == 0) +{ +lean_object* x_146; lean_object* x_147; +lean_dec(x_103); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_5); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_104); +return x_147; +} +else +{ +lean_object* x_148; +x_148 = lean_box(0); +x_105 = x_148; +goto block_137; +} +} +} +} +else +{ +if (x_6 == 0) +{ +lean_object* x_149; +x_149 = lean_box(0); +x_105 = x_149; +goto block_137; +} +else +{ +lean_object* x_150; uint8_t x_151; +x_150 = lean_ctor_get(x_103, 9); +lean_inc(x_150); +x_151 = lean_nat_dec_eq(x_150, x_7); +lean_dec(x_150); +if (x_151 == 0) +{ +lean_object* x_152; lean_object* x_153; +lean_dec(x_103); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_5); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_104); +return x_153; +} +else +{ +lean_object* x_154; +x_154 = lean_box(0); +x_105 = x_154; +goto block_137; +} +} +} +block_137: +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_105); +x_106 = lean_ctor_get(x_103, 8); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_107, 0, x_2); +lean_ctor_set(x_107, 1, x_106); +lean_ctor_set(x_107, 2, x_3); +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); +x_108 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArgs_x3f(x_107, x_4, x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_104); +lean_dec(x_1); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_111 = x_108; +} else { + lean_dec_ref(x_108); + x_111 = lean_box(0); +} +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_5); +if (lean_is_scalar(x_111)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_111; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_110); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_114 = lean_ctor_get(x_108, 1); +lean_inc(x_114); +lean_dec(x_108); +x_115 = lean_ctor_get(x_109, 0); +lean_inc(x_115); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + x_116 = x_109; +} else { + lean_dec_ref(x_109); + x_116 = lean_box(0); +} +x_117 = lean_st_ref_take(x_10, x_114); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; +} else { + lean_dec_ref(x_117); + x_119 = lean_box(0); +} +x_120 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_119; + lean_ctor_set_tag(x_121, 1); +} +lean_ctor_set(x_121, 0, x_115); +lean_ctor_set(x_121, 1, x_120); +x_122 = lean_st_ref_set(x_10, x_121, x_118); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +lean_dec(x_122); +x_124 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_123); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; +} else { + lean_dec_ref(x_124); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_127 = lean_alloc_ctor(1, 1, 0); +} else { + x_127 = x_116; +} +lean_ctor_set(x_127, 0, x_5); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_126; +} +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_116); +lean_dec(x_5); +x_129 = lean_ctor_get(x_124, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_124, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_131 = x_124; +} else { + lean_dec_ref(x_124); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_5); +x_133 = lean_ctor_get(x_108, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_108, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_135 = x_108; +} else { + lean_dec_ref(x_108); + x_135 = lean_box(0); +} +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_135; +} +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; +} +} +} +} +else +{ +uint8_t x_155; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_155 = !lean_is_exclusive(x_20); +if (x_155 == 0) +{ +return x_20; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_20, 0); +x_157 = lean_ctor_get(x_20, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_20); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_24; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_11); +x_25 = lean_ctor_get(x_10, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_10, 1); +lean_inc(x_26); +lean_dec(x_10); +x_27 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_box(0); +lean_inc(x_22); +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_8); +lean_inc(x_4); +lean_inc(x_2); +x_32 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1(x_25, x_2, x_4, x_1, x_8, x_5, x_6, x_31, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +lean_dec(x_26); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_32); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_33, 0); +lean_inc(x_36); +lean_dec(x_33); +lean_ctor_set(x_32, 0, x_36); +return x_32; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_dec(x_32); +x_38 = lean_ctor_get(x_33, 0); +lean_inc(x_38); +lean_dec(x_33); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +lean_dec(x_32); +x_41 = lean_ctor_get(x_33, 0); +lean_inc(x_41); +lean_dec(x_33); +x_10 = x_26; +x_11 = x_41; +x_12 = lean_box(0); +x_23 = x_40; +goto _start; +} +} +else +{ +uint8_t x_43; +lean_dec(x_26); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_32); +if (x_43 == 0) +{ +return x_32; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_32, 0); +x_45 = lean_ctor_get(x_32, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_32); +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_dec(x_26); +lean_dec(x_25); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_27); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_27, 0); +lean_dec(x_48); +x_49 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2; +lean_ctor_set(x_27, 0, x_49); +return x_27; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_27, 1); +lean_inc(x_50); +lean_dec(x_27); +x_51 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2; +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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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 = lean_st_ref_get(x_5, x_13); +x_15 = !lean_is_exclusive(x_14); +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_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = lean_ctor_get(x_16, 4); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_1); +x_19 = l_Lean_Expr_toHeadIndex(x_1); +x_20 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_18, x_19); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +x_21 = lean_box(0); +lean_ctor_set(x_14, 0, x_21); +return x_14; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 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_free_object(x_14); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_3, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 2); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_26 = lean_mk_array(x_24, x_25); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); +x_28 = lean_st_ref_get(x_5, x_17); +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(x_28); +x_31 = lean_ctor_get(x_29, 6); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_box(0); +x_33 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1; +lean_inc(x_22); +x_34 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1(x_1, x_2, x_22, x_26, x_27, x_31, x_32, x_33, x_22, x_22, x_33, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_30); +lean_dec(x_31); +lean_dec(x_22); +lean_dec(x_1); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +lean_dec(x_35); +if (lean_obj_tag(x_36) == 0) +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_34, 0); +lean_dec(x_38); +x_39 = lean_box(0); +lean_ctor_set(x_34, 0, x_39); +return x_34; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +lean_dec(x_34); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_34); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_34, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_36, 0); +lean_inc(x_45); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_45); +return x_34; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_34, 1); +lean_inc(x_46); +lean_dec(x_34); +x_47 = lean_ctor_get(x_36, 0); +lean_inc(x_47); +lean_dec(x_36); +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; +x_49 = !lean_is_exclusive(x_34); +if (x_49 == 0) +{ +return x_34; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_34, 0); +x_51 = lean_ctor_get(x_34, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_34); +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 +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_53 = lean_ctor_get(x_14, 0); +x_54 = lean_ctor_get(x_14, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_14); +x_55 = lean_ctor_get(x_53, 4); +lean_inc(x_55); +lean_dec(x_53); +lean_inc(x_1); +x_56 = l_Lean_Expr_toHeadIndex(x_1); +x_57 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_55, x_56); +lean_dec(x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +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_54); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t 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_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_ctor_get(x_3, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_61, 2); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_64 = lean_mk_array(x_62, x_63); +x_65 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); +x_66 = lean_st_ref_get(x_5, x_54); +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(x_66); +x_69 = lean_ctor_get(x_67, 6); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_box(0); +x_71 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1; +lean_inc(x_60); +x_72 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1(x_1, x_2, x_60, x_64, x_65, x_69, x_70, x_71, x_60, x_60, x_71, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_68); +lean_dec(x_69); +lean_dec(x_60); +lean_dec(x_1); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +lean_dec(x_73); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_76 = x_72; +} else { + lean_dec_ref(x_72); + x_76 = lean_box(0); +} +x_77 = lean_box(0); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_76; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_80 = x_72; +} else { + lean_dec_ref(x_72); + x_80 = lean_box(0); +} +x_81 = lean_ctor_get(x_74, 0); +lean_inc(x_81); +lean_dec(x_74); +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_79); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_83 = lean_ctor_get(x_72, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_72, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_85 = x_72; +} else { + lean_dec_ref(x_72); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_6); +lean_dec(x_6); +x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +return x_21; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +_start: +{ +uint8_t x_24; lean_object* x_25; +x_24 = lean_unbox(x_5); +lean_dec(x_5); +x_25 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main___spec__1(x_1, x_2, x_3, x_4, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +return x_25; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_1) == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_1); +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; +x_17 = lean_ctor_get(x_1, 0); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_19 = l_List_reverse___rarg(x_2); +x_20 = lean_box(0); +lean_inc(x_18); +x_21 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_18, x_20); +x_22 = l_List_appendTR___rarg(x_19, x_21); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_17); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_17, x_22, x_3, 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; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_25); +{ +lean_object* _tmp_0 = x_18; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_12 = x_24; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_13 = _tmp_12; +} +goto _start; +} +else +{ +uint8_t x_27; +lean_free_object(x_1); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) +{ +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_23); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_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_1, 0); +x_32 = lean_ctor_get(x_1, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_1); +lean_inc(x_2); +x_33 = l_List_reverse___rarg(x_2); +x_34 = lean_box(0); +lean_inc(x_32); +x_35 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_32, x_34); +x_36 = l_List_appendTR___rarg(x_33, x_35); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_31); +x_37 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_31, x_36, x_3, 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_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_31); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_2); +x_1 = x_32; +x_2 = x_40; +x_13 = x_38; +goto _start; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +x_42 = lean_ctor_get(x_37, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_44 = x_37; +} else { + lean_dec_ref(x_37); + 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; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.EMatch.ematchTheorem", 36, 36); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___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; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1; +x_2 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(242u); +x_4 = lean_unsigned_to_nat(22u); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = !lean_is_exclusive(x_3); +if (x_15 == 0) +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); +x_17 = lean_ctor_get(x_3, 0); +lean_dec(x_17); +lean_ctor_set(x_3, 0, x_1); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2; +x_19 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +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_14, 0); +lean_inc(x_21); +lean_dec(x_14); +x_22 = lean_box(0); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_21, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_23; +} +else +{ +if (x_16 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_14, 0); +lean_inc(x_24); +lean_dec(x_14); +x_25 = lean_box(0); +x_26 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_20, x_25); +x_27 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_24, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_20); +x_28 = lean_box(0); +x_29 = l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(x_14, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_29; +} +} +} +} +else +{ +uint8_t x_30; lean_object* x_31; +x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); +lean_dec(x_3); +x_31 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_30); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2; +x_33 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2(x_32, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_33; +} +else +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_14, 1); +lean_inc(x_34); +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_14, 0); +lean_inc(x_35); +lean_dec(x_14); +x_36 = lean_box(0); +x_37 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_35, x_36, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_37; +} +else +{ +if (x_30 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_14, 0); +lean_inc(x_38); +lean_dec(x_14); +x_39 = lean_box(0); +x_40 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_34, x_39); +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_38, x_40, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_34); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(x_14, x_42, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_43; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_15; +x_13 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_box(0); +x_18 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1(x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_13, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_13, 0, x_21); +return x_13; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_13, 1); +lean_inc(x_22); +lean_dec(x_13); +x_23 = lean_box(0); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_eq(x_2, x_3); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_4); +x_17 = lean_array_uget(x_1, x_2); +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_inc(x_5); +x_18 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__2(x_17, 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_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_2 = x_22; +x_4 = x_19; +x_15 = x_20; +goto _start; +} +else +{ +uint8_t x_24; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +return x_18; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_18, 0); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_18); +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_object* x_28; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_4); +lean_ctor_set(x_28, 1, x_15); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_eq(x_2, x_3); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_4); +x_17 = lean_array_uget(x_1, x_2); +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_inc(x_5); +x_18 = l_Lean_Meta_Grind_EMatch_ematchTheorem(x_17, x_5, 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_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_2 = x_22; +x_4 = x_19; +x_15 = x_20; +goto _start; +} +else +{ +uint8_t x_24; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +return x_18; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_18, 0); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_18); +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_object* x_28; +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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_4); +lean_ctor_set(x_28, 1, x_15); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_1, 0); +x_14 = lean_array_get_size(x_13); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_lt(x_15, x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_14); +lean_dec(x_11); +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); +lean_dec(x_2); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_12); +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_14, x_14); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_14); +lean_dec(x_11); +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); +lean_dec(x_2); +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_12); +return x_21; +} +else +{ +size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = 0; +x_23 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_24 = lean_box(0); +x_25 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3(x_13, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_1, 0); +x_27 = lean_array_get_size(x_26); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_nat_dec_lt(x_28, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_27); +lean_dec(x_11); +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); +lean_dec(x_2); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_12); +return x_31; +} +else +{ +uint8_t x_32; +x_32 = lean_nat_dec_le(x_27, x_27); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_27); +lean_dec(x_11); +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); +lean_dec(x_2); +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_12); +return x_34; +} +else +{ +size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; +x_35 = 0; +x_36 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_37 = lean_box(0); +x_38 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(x_26, x_35, x_36, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_38; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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; lean_object* x_14; +x_13 = lean_ctor_get(x_1, 0); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_14 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__2(x_13, x_2, 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_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; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_16 = lean_ctor_get(x_14, 1); +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_1, 1); +x_19 = lean_array_get_size(x_18); +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_lt(x_20, x_19); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_19); +lean_dec(x_11); +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); +lean_dec(x_2); +x_22 = lean_box(0); +lean_ctor_set(x_14, 0, x_22); +return x_14; +} +else +{ +uint8_t x_23; +x_23 = lean_nat_dec_le(x_19, x_19); +if (x_23 == 0) +{ +lean_object* x_24; +lean_dec(x_19); +lean_dec(x_11); +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); +lean_dec(x_2); +x_24 = lean_box(0); +lean_ctor_set(x_14, 0, x_24); +return x_14; +} +else +{ +size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_14); +x_25 = 0; +x_26 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_27 = lean_box(0); +x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(x_18, x_25, x_26, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_dec(x_14); +x_30 = lean_ctor_get(x_1, 1); +x_31 = lean_array_get_size(x_30); +x_32 = lean_unsigned_to_nat(0u); +x_33 = lean_nat_dec_lt(x_32, x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_31); +lean_dec(x_11); +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); +lean_dec(x_2); +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_29); +return x_35; +} +else +{ +uint8_t x_36; +x_36 = lean_nat_dec_le(x_31, x_31); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_31); +lean_dec(x_11); +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); +lean_dec(x_2); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_29); +return x_38; +} +else +{ +size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; +x_39 = 0; +x_40 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_41 = lean_box(0); +x_42 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(x_30, x_39, x_40, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +return x_42; +} +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_11); +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); +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_14); +if (x_43 == 0) +{ +return x_14; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_14, 0); +x_45 = lean_ctor_get(x_14, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_14); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorems(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_17 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_18 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__3(x_1, x_16, x_17, 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_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_17 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_18 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__4(x_1, x_16, x_17, 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_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_EMatch_ematchTheorems___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); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorems___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_Meta_Grind_EMatch_ematchTheorems(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_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_2); +if (x_13 == 0) +{ +uint8_t x_14; lean_object* x_15; +x_14 = 1; +lean_ctor_set_uint8(x_2, sizeof(void*)*1, x_14); +x_15 = l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___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); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_2, 0); +lean_inc(x_16); +lean_dec(x_2); +x_17 = 1; +x_18 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_17); +x_19 = l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_3); +if (x_14 == 0) +{ +uint8_t x_15; lean_object* x_16; +x_15 = 0; +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_15); +x_16 = l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_3, 0); +lean_inc(x_17); +lean_dec(x_3); +x_18 = 0; +x_19 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set_uint8(x_19, sizeof(void*)*1, x_18); +x_20 = l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_EMatch_ematchTheorems___spec__1(x_1, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_20; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematch___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_Lean_Meta_Grind_ematch___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_ematch___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematch___closed__3() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Meta_Grind_ematch___closed__2; +x_3 = l_Lean_Meta_Grind_ematch___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_12; +x_10 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +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; 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_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_st_ref_get(x_1, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_st_ref_get(x_1, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_15, 8); +lean_inc(x_20); +lean_dec(x_15); +x_21 = lean_ctor_get(x_18, 9); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematch___lambda__1___boxed), 12, 1); +lean_closure_set(x_22, 0, x_20); +x_23 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematch___lambda__2___boxed), 13, 1); +lean_closure_set(x_23, 0, x_21); +x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__11___rarg), 13, 2); +lean_closure_set(x_24, 0, x_22); +lean_closure_set(x_24, 1, x_23); +lean_inc(x_1); +x_25 = l_Lean_Meta_Grind_EMatch_M_run_x27___rarg(x_24, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_st_ref_take(x_1, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +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; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_31 = lean_ctor_get(x_28, 6); +x_32 = lean_ctor_get(x_28, 8); +x_33 = lean_ctor_get(x_28, 9); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_add(x_31, x_34); +lean_dec(x_31); +x_36 = l_Lean_PersistentArray_append___rarg(x_32, x_33); +lean_dec(x_33); +x_37 = l_Lean_Meta_Grind_ematch___closed__3; +lean_ctor_set(x_28, 9, x_37); +lean_ctor_set(x_28, 8, x_36); +lean_ctor_set(x_28, 6, x_35); +x_38 = lean_st_ref_set(x_1, x_28, x_29); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +x_41 = lean_box(0); +lean_ctor_set(x_38, 0, x_41); +return x_38; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_dec(x_38); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +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; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_45 = lean_ctor_get(x_28, 0); +x_46 = lean_ctor_get(x_28, 1); +x_47 = lean_ctor_get(x_28, 2); +x_48 = lean_ctor_get(x_28, 3); +x_49 = lean_ctor_get(x_28, 4); +x_50 = lean_ctor_get(x_28, 5); +x_51 = lean_ctor_get_uint8(x_28, sizeof(void*)*14); +x_52 = lean_ctor_get(x_28, 6); +x_53 = lean_ctor_get(x_28, 7); +x_54 = lean_ctor_get(x_28, 8); +x_55 = lean_ctor_get(x_28, 9); +x_56 = lean_ctor_get(x_28, 10); +x_57 = lean_ctor_get(x_28, 11); +x_58 = lean_ctor_get(x_28, 12); +x_59 = lean_ctor_get(x_28, 13); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +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_28); +x_60 = lean_unsigned_to_nat(1u); +x_61 = lean_nat_add(x_52, x_60); +lean_dec(x_52); +x_62 = l_Lean_PersistentArray_append___rarg(x_54, x_55); +lean_dec(x_55); +x_63 = l_Lean_Meta_Grind_ematch___closed__3; +x_64 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_64, 0, x_45); +lean_ctor_set(x_64, 1, x_46); +lean_ctor_set(x_64, 2, x_47); +lean_ctor_set(x_64, 3, x_48); +lean_ctor_set(x_64, 4, x_49); +lean_ctor_set(x_64, 5, x_50); +lean_ctor_set(x_64, 6, x_61); +lean_ctor_set(x_64, 7, x_53); +lean_ctor_set(x_64, 8, x_62); +lean_ctor_set(x_64, 9, x_63); +lean_ctor_set(x_64, 10, x_56); +lean_ctor_set(x_64, 11, x_57); +lean_ctor_set(x_64, 12, x_58); +lean_ctor_set(x_64, 13, x_59); +lean_ctor_set_uint8(x_64, sizeof(void*)*14, x_51); +x_65 = lean_st_ref_set(x_1, x_64, x_29); +lean_dec(x_1); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_67 = x_65; +} else { + lean_dec_ref(x_65); + x_67 = lean_box(0); +} +x_68 = lean_box(0); +if (lean_is_scalar(x_67)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_67; +} +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_1); +x_70 = !lean_is_exclusive(x_25); +if (x_70 == 0) +{ +return x_25; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_25, 0); +x_72 = lean_ctor_get(x_25, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_25); +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(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); +lean_dec(x_1); +x_74 = !lean_is_exclusive(x_10); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_10, 0); +lean_dec(x_75); +x_76 = lean_box(0); +lean_ctor_set(x_10, 0, x_76); +return x_10; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_10, 1); +lean_inc(x_77); +lean_dec(x_10); +x_78 = lean_box(0); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_Grind_ematch___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematch___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_ematch___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_1); +x_10 = l_Lean_Meta_Grind_ematch(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_1, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 1); +x_15 = lean_st_ref_get(x_1, x_14); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_ctor_set(x_12, 1, x_17); +lean_ctor_set(x_15, 0, x_12); +return x_15; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_15); +lean_ctor_set(x_12, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_12); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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_st_ref_get(x_1, x_22); +lean_dec(x_1); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_26 = x_23; +} else { + lean_dec_ref(x_23); + x_26 = lean_box(0); +} +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_24); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) +{ +return x_10; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_10, 0); +x_31 = lean_ctor_get(x_10, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_10); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_assertNext_x3f), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_ematchAndAssert_x3f___lambda__4___closed__1; +x_12 = l_Lean_Meta_Grind_iterate(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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(1, 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(1, 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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__2), 9, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_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; 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_10 = lean_ctor_get(x_1, 11); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__1___boxed), 9, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1; +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2; +x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_ctor_get(x_19, 11); +lean_inc(x_21); +x_22 = lean_nat_dec_eq(x_21, x_10); +lean_dec(x_10); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_free_object(x_17); +x_23 = lean_box(0); +x_24 = l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4(x_19, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +return x_24; +} +else +{ +lean_object* x_25; +lean_dec(x_19); +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_25 = lean_box(0); +lean_ctor_set(x_17, 0, x_25); +return x_17; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_17, 0); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +x_28 = lean_ctor_get(x_26, 11); +lean_inc(x_28); +x_29 = lean_nat_dec_eq(x_28, x_10); +lean_dec(x_10); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_box(0); +x_31 = l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4(x_26, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_26); +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_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_27); +return x_33; +} +} +} +else +{ +uint8_t x_34; +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_34 = !lean_is_exclusive(x_17); +if (x_34 == 0) +{ +return x_17; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_17, 0); +x_36 = lean_ctor_get(x_17, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_17); +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_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_11; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ematchStar___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematchAndAssert_x3f), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchStar(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_ematchStar___closed__1; +x_11 = l_Lean_Meta_Grind_iterate(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Intro(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_EMatch(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_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_Intro(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__1); +l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedCnstr___closed__2); +l_Lean_Meta_Grind_EMatch_instInhabitedCnstr = _init_l_Lean_Meta_Grind_EMatch_instInhabitedCnstr(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedCnstr); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned); +l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__3); +l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assignmentToMessageData___spec__1___closed__4); +l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__1); +l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__2 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedChoice___closed__2); +l_Lean_Meta_Grind_EMatch_instInhabitedChoice = _init_l_Lean_Meta_Grind_EMatch_instInhabitedChoice(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedChoice); +l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__1); +l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__2); +l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3 = _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedContext___closed__3); +l_Lean_Meta_Grind_EMatch_instInhabitedContext = _init_l_Lean_Meta_Grind_EMatch_instInhabitedContext(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedContext); +l_Lean_Meta_Grind_EMatch_instInhabitedState = _init_l_Lean_Meta_Grind_EMatch_instInhabitedState(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_instInhabitedState); +l_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1 = _init_l_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_M_run_x27___rarg___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__2); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__3); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__4); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__5); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___spec__1___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__4); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processContinue___spec__1___closed__1); +l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1(); +lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__1); +l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2(); +lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__2); +l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3(); +lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__3); +l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4(); +lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__5___closed__4); +l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1 = _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__1); +l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2 = _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__2); +l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3 = _init_l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__3___closed__3); +l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__1(); +l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___spec__7___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___lambda__2___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__2); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2___closed__3); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__1); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__2); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___lambda__1___closed__3); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__1); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__2); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__3); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__4); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__5); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__6); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__7); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__8); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__5___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__1(); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__3___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__7___closed__8); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__8___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2(); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___lambda__2___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___closed__1); +l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__1); +l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2); +l_Lean_Meta_Grind_ematch___closed__1 = _init_l_Lean_Meta_Grind_ematch___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_ematch___closed__1); +l_Lean_Meta_Grind_ematch___closed__2 = _init_l_Lean_Meta_Grind_ematch___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_ematch___closed__2); +l_Lean_Meta_Grind_ematch___closed__3 = _init_l_Lean_Meta_Grind_ematch___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_ematch___closed__3); +l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4___closed__1 = _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_ematchAndAssert_x3f___lambda__4___closed__1); +l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1 = _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__1); +l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2 = _init_l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_ematchAndAssert_x3f___closed__2); +l_Lean_Meta_Grind_ematchStar___closed__1 = _init_l_Lean_Meta_Grind_ematchStar___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_ematchStar___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c new file mode 100644 index 0000000000..3186aa6411 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c @@ -0,0 +1,18515 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.EMatchTheorem +// Imports: Lean.HeadIndex Lean.PrettyPrinter Lean.Util.FoldConsts Lean.Util.CollectFVars Lean.Meta.Basic Lean.Meta.InferType +#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_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__1___boxed(lean_object*); +lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(lean_object*, lean_object*); +lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__4; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; +lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +size_t lean_usize_shift_right(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGroundPattern___closed__3; +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*); +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687_(lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1; +LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(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_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___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_object*); +uint8_t l_List_all___rarg(lean_object*, lean_object*); +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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15; +static lean_object* l_Lean_Meta_Grind_Origin_pp___rarg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2; +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19; +uint8_t lean_usize_dec_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem(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_checkTypeFVars___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(size_t, lean_object*, 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_NormalizePattern_saveSymbol___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); +lean_object* l_Lean_indentD(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1; +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isPatternDontCare(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___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*); +uint64_t lean_uint64_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedOrigin; +size_t lean_uint64_to_usize(uint64_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2___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_checkCoverage___lambda__4___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_canBeSynthesized___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*); +uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_sort___override(lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___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_checkCoverage___lambda__3___closed__2; +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_Lean_Meta_Grind_addEMatchTheorem___closed__5; +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5; +size_t lean_usize_mul(size_t, size_t); +lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBTree_ofList___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__4(lean_object*); +static lean_object* l_Lean_Meta_Grind_Origin_pp___rarg___closed__3; +lean_object* lean_mk_array(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5; +uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__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_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51_(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(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_checkCoverage___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__8; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16; +static lean_object* l_Lean_Meta_Grind_mkGroundPattern___closed__1; +static lean_object* l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; +lean_object* l_Lean_Expr_bvar___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__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_addEMatchTheorem___closed__11; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3(lean_object*, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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_object*); +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6; +lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7; +lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprOrigin; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2; +static lean_object* l_Lean_Meta_Grind_instReprOrigin___closed__1; +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem; +lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__8; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__9; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isPatternDontCare___boxed(lean_object*); +uint8_t l_Lean_Expr_isBVar(lean_object*); +lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4; +static lean_object* l_Lean_Meta_Grind_mkGroundPattern___closed__2; +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_key___boxed(lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert(lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__3; +static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3; +size_t lean_usize_of_nat(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_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_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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14; +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__7; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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__2___boxed(lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__4(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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1; +uint8_t lean_expr_eqv(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern___boxed(lean_object*); +lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3; +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +lean_object* lean_nat_to_int(lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14(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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8; +lean_object* lean_nat_div(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___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_NormalizePattern_getPatternFunMask(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2(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_EXPORT lean_object* l_Lean_Meta_Grind_groundPattern_x3f(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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* l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2; +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_addEMatchTheorem___lambda__1(lean_object*); +lean_object* l_Lean_MessageData_ofFormat(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7; +lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_outOfBounds___rarg(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18; +static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2; +uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isForbidden(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3; +uint8_t l_List_elem___at_Lean_Meta_Occurrences_contains___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__2; +lean_object* l_Lean_Expr_toHeadIndex(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_levelZero; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__11; +lean_object* l_Lean_mkConstWithLevelParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___lambda__1___boxed(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1; +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofConst(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9; +lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___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_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_Expr_instantiateLevelParamsArray(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___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_forbiddenDeclNames___closed__2; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1; +lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_instMonadMetaM; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___rarg___lambda__1(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1___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_Meta_Grind_EMatchTheorems_insert___spec__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1; +static lean_object* l_Lean_Meta_Grind_Origin_key___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___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_usize_to_nat(size_t); +lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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_object*); +static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3(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_EMatchTheorems_insert___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1; +lean_object* l_Lean_MessageData_ofExpr(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4___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_NormalizePattern_saveSymbol(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(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_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___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_isForbidden___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGroundPattern(lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__9; +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__3(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__2(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14; +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16; +lean_object* l_Lean_PersistentHashMap_instInhabited(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8___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_ppParamsAt___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1; +lean_object* l_id___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1(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* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3; +lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppPattern(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +uint64_t l_Lean_Name_hash___override(lean_object*); +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(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_NormalizePattern_saveBVar___spec__3(lean_object*, lean_object*, lean_object*); +uint64_t lean_uint64_xor(uint64_t, uint64_t); +extern lean_object* l_Id_instMonad; +lean_object* l_Repr_addAppParen(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6; +lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1; +lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_Meta_isTypeFormer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2; +lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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*); +uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); +lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12; +static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__1; +static lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17; +lean_object* l_List_reverse___rarg(lean_object*); +static lean_object* l_Lean_Meta_Grind_Origin_key___closed__1; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11; +size_t lean_usize_sub(size_t, size_t); +lean_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___boxed(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__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__10; +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_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(lean_object*, lean_object*); +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2; +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_Expr_fvar___override(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1; +size_t lean_array_size(lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__12; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13; +lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_shift_left(size_t, size_t); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isGroundPattern(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*); +uint8_t l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f___boxed(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(lean_object*, uint8_t, 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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__10; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2; +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12; +extern lean_object* l_Lean_Name_instBEq; +lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_key(lean_object*); +lean_object* lean_infer_type(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_isGroundPattern___boxed(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___spec__1(size_t, size_t, 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_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*); +static lean_object* l_Lean_Meta_Grind_ppPattern___closed__5; +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); +lean_object* l_Lean_MessageData_bracket(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1; +uint8_t l_Lean_Expr_isConst(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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*); +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17(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_HeadIndex_hash(lean_object*); +uint8_t l_Lean_Expr_isFVar(lean_object*); +static lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___spec__1___boxed(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__6; +lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Origin_pp___rarg___closed__1; +static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2; +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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_groundPattern_x3f___boxed(lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_MessageData_ofName(lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__4; +lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1; +static lean_object* l_Lean_Meta_Grind_addEMatchTheorem___closed__7; +static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7; +lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_instMonad___rarg(lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1; +extern lean_object* l_Lean_instHashableName; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1; +lean_object* l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedOrigin___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(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_instInhabitedOrigin() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.decl", 27, 27); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1; +x_2 = lean_alloc_ctor(3, 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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2; +x_2 = lean_box(1); +x_3 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(2u); +x_2 = lean_nat_to_int(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_nat_to_int(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.fvar", 27, 27); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6; +x_2 = lean_alloc_ctor(3, 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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7; +x_2 = lean_box(1); +x_3 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.stx", 26, 26); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9; +x_2 = lean_alloc_ctor(3, 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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10; +x_2 = lean_box(1); +x_3 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.other", 28, 28); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12; +x_2 = lean_alloc_ctor(3, 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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13; +x_3 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13; +x_3 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16; +x_2 = 0; +x_3 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51_(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_unsigned_to_nat(1024u); +x_5 = lean_nat_dec_le(x_4, x_2); +x_6 = l_Lean_Name_reprPrec(x_3, x_4); +x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3; +x_8 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +if (x_5 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +x_10 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = 0; +x_12 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11); +x_13 = l_Repr_addAppParen(x_12, x_2); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +x_15 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_8); +x_16 = 0; +x_17 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set_uint8(x_17, sizeof(void*)*1, x_16); +x_18 = l_Repr_addAppParen(x_17, x_2); +return x_18; +} +} +case 1: +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +lean_dec(x_1); +x_20 = lean_unsigned_to_nat(1024u); +x_21 = lean_nat_dec_le(x_20, x_2); +x_22 = l_Lean_Name_reprPrec(x_19, x_20); +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8; +x_24 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +if (x_21 == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +x_26 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = 0; +x_28 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); +x_29 = l_Repr_addAppParen(x_28, x_2); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +x_31 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_24); +x_32 = 0; +x_33 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*1, x_32); +x_34 = l_Repr_addAppParen(x_33, x_2); +return x_34; +} +} +case 2: +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_1); +if (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; lean_object* x_45; +x_36 = lean_ctor_get(x_1, 0); +x_37 = lean_ctor_get(x_1, 1); +x_38 = lean_unsigned_to_nat(1024u); +x_39 = lean_nat_dec_le(x_38, x_2); +x_40 = l_Lean_Name_reprPrec(x_36, x_38); +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11; +lean_ctor_set_tag(x_1, 5); +lean_ctor_set(x_1, 1, x_40); +lean_ctor_set(x_1, 0, x_41); +x_42 = lean_box(1); +x_43 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_43, 0, x_1); +lean_ctor_set(x_43, 1, x_42); +x_44 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(x_37, x_38); +x_45 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +if (x_39 == 0) +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +x_47 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = 0; +x_49 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set_uint8(x_49, sizeof(void*)*1, x_48); +x_50 = l_Repr_addAppParen(x_49, x_2); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +x_52 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_45); +x_53 = 0; +x_54 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_53); +x_55 = l_Repr_addAppParen(x_54, x_2); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t 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; +x_56 = lean_ctor_get(x_1, 0); +x_57 = lean_ctor_get(x_1, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_1); +x_58 = lean_unsigned_to_nat(1024u); +x_59 = lean_nat_dec_le(x_58, x_2); +x_60 = l_Lean_Name_reprPrec(x_56, x_58); +x_61 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11; +x_62 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = lean_box(1); +x_64 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(x_57, x_58); +x_66 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +if (x_59 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; +x_67 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4; +x_68 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_69 = 0; +x_70 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set_uint8(x_70, sizeof(void*)*1, x_69); +x_71 = l_Repr_addAppParen(x_70, x_2); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; +x_72 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5; +x_73 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_66); +x_74 = 0; +x_75 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set_uint8(x_75, sizeof(void*)*1, x_74); +x_76 = l_Repr_addAppParen(x_75, x_2); +return x_76; +} +} +} +default: +{ +lean_object* x_77; uint8_t x_78; +x_77 = lean_unsigned_to_nat(1024u); +x_78 = lean_nat_dec_le(x_77, x_2); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +x_79 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15; +x_80 = l_Repr_addAppParen(x_79, x_2); +return x_80; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17; +x_82 = l_Repr_addAppParen(x_81, x_2); +return x_82; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51_(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instReprOrigin___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instReprOrigin() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instReprOrigin___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_key___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("other", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_key___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_Origin_key___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_key(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_Origin_key___closed__2; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +return x_3; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_key___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_Origin_key(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___rarg___lambda__1(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; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_dec(x_3); +x_5 = l_Lean_MessageData_ofConst(x_2); +x_6 = lean_apply_2(x_4, lean_box(0), x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[unknown]", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Origin_pp___rarg___closed__1; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Origin_pp___rarg___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_inc(x_1); +x_7 = l_Lean_mkConstWithLevelParams___rarg(x_1, x_2, x_3, x_5); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Origin_pp___rarg___lambda__1), 2, 1); +lean_closure_set(x_8, 0, x_1); +x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +case 1: +{ +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_dec(x_3); +lean_dec(x_2); +x_10 = lean_ctor_get(x_4, 0); +lean_inc(x_10); +lean_dec(x_4); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Expr_fvar___override(x_10); +x_14 = l_Lean_MessageData_ofExpr(x_13); +x_15 = lean_apply_2(x_12, lean_box(0), x_14); +return x_15; +} +case 2: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_3); +lean_dec(x_2); +x_16 = lean_ctor_get(x_4, 1); +lean_inc(x_16); +lean_dec(x_4); +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +lean_dec(x_1); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_MessageData_ofSyntax(x_16); +x_20 = lean_apply_2(x_18, lean_box(0), x_19); +return x_20; +} +default: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +lean_dec(x_1); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = l_Lean_Meta_Grind_Origin_pp___rarg___closed__3; +x_24 = lean_apply_2(x_22, lean_box(0), x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Origin_pp___rarg), 4, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1() { +_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_instInhabitedEMatchTheorem___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem___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 = lean_box(0); +x_2 = l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1; +x_3 = l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; +x_6 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_1); +lean_ctor_set(x_6, 5, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3; +return x_1; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Name_instBEq; +x_2 = l_Lean_instHashableName; +x_3 = l_Lean_PersistentHashMap_instInhabited(lean_box(0), lean_box(0), x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Id_instMonad; +x_2 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_fget(x_1, x_4); +x_10 = lean_name_eq(x_5, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_fget(x_2, x_4); +lean_dec(x_4); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +} +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = 5; +x_3 = lean_usize_shift_left(x_1, x_2); +return x_3; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3(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; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; +x_8 = lean_usize_land(x_2, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(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(x_11); +x_14 = lean_name_eq(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(x_11); +x_17 = lean_usize_shift_right(x_2, x_6); +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; size_t x_21; size_t x_22; size_t x_23; lean_object* 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 = 5; +x_22 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; +x_23 = lean_usize_land(x_2, x_22); +x_24 = lean_usize_to_nat(x_23); +x_25 = lean_box(2); +x_26 = lean_array_get(x_25, x_20, x_24); +lean_dec(x_24); +lean_dec(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(x_26); +x_29 = lean_name_eq(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(x_26); +x_33 = lean_usize_shift_right(x_2, x_21); +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(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +lean_dec(x_1); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(x_36, x_37, lean_box(0), x_38, x_3); +lean_dec(x_37); +lean_dec(x_36); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(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_Name_hash___override(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(size_t 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_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_dec(x_5); +return x_6; +} +else +{ +lean_object* x_9; lean_object* 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; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_array_fget(x_3, x_5); +x_11 = l_Lean_Name_hash___override(x_9); +x_12 = lean_uint64_to_usize(x_11); +x_13 = 1; +x_14 = lean_usize_sub(x_1, x_13); +x_15 = 5; +x_16 = lean_usize_mul(x_15, x_14); +x_17 = lean_usize_shift_right(x_12, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(x_6, x_17, x_1, x_9, x_10); +x_4 = lean_box(0); +x_5 = x_19; +x_6 = x_20; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__8(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; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_5); +x_8 = lean_nat_dec_lt(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_1); +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_1, 1); +lean_dec(x_10); +x_11 = lean_ctor_get(x_1, 0); +lean_dec(x_11); +x_12 = lean_array_push(x_5, x_3); +x_13 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_13); +lean_ctor_set(x_1, 0, x_12); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = lean_array_push(x_5, x_3); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_fget(x_5, x_2); +x_18 = lean_name_eq(x_3, x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_6); +lean_dec(x_5); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_2, x_19); +lean_dec(x_2); +x_2 = x_20; +goto _start; +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_1); +if (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_1, 1); +lean_dec(x_23); +x_24 = lean_ctor_get(x_1, 0); +lean_dec(x_24); +x_25 = lean_array_fset(x_5, x_2, x_3); +x_26 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_25); +return x_1; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_1); +x_27 = lean_array_fset(x_5, x_2, x_3); +x_28 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1() { +_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_Meta_Grind_EMatchTheorems_insert___spec__6(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) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 0); +x_8 = 1; +x_9 = 5; +x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; +x_11 = lean_usize_land(x_2, x_10); +x_12 = lean_usize_to_nat(x_11); +x_13 = lean_array_get_size(x_7); +x_14 = lean_nat_dec_lt(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +return x_1; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_array_fget(x_7, x_12); +x_16 = lean_box(0); +x_17 = lean_array_fset(x_7, x_12, x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +x_21 = lean_name_eq(x_4, x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_free_object(x_15); +x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_array_fset(x_17, x_12, x_23); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_24); +return x_1; +} +else +{ +lean_object* x_25; +lean_dec(x_20); +lean_dec(x_19); +lean_ctor_set(x_15, 1, x_5); +lean_ctor_set(x_15, 0, x_4); +x_25 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_25); +return x_1; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +x_28 = lean_name_eq(x_4, x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_array_fset(x_17, x_12, x_30); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_31); +return x_1; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_27); +lean_dec(x_26); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_fset(x_17, x_12, x_32); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +} +} +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; lean_object* x_39; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_usize_shift_right(x_2, x_9); +x_37 = lean_usize_add(x_3, x_8); +x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(x_35, x_36, x_37, x_4, x_5); +lean_ctor_set(x_15, 0, x_38); +x_39 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_39); +return x_1; +} +else +{ +lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_15, 0); +lean_inc(x_40); +lean_dec(x_15); +x_41 = lean_usize_shift_right(x_2, x_9); +x_42 = lean_usize_add(x_3, x_8); +x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(x_40, x_41, x_42, x_4, x_5); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_array_fset(x_17, x_12, x_44); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_45); +return x_1; +} +} +default: +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_5); +x_47 = lean_array_fset(x_17, x_12, x_46); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_47); +return x_1; +} +} +} +} +else +{ +lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); +x_49 = 1; +x_50 = 5; +x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; +x_52 = lean_usize_land(x_2, x_51); +x_53 = lean_usize_to_nat(x_52); +x_54 = lean_array_get_size(x_48); +x_55 = lean_nat_dec_lt(x_53, x_54); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +lean_dec(x_53); +lean_dec(x_5); +lean_dec(x_4); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_48); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_array_fget(x_48, x_53); +x_58 = lean_box(0); +x_59 = lean_array_fset(x_48, x_53, x_58); +switch (lean_obj_tag(x_57)) { +case 0: +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_62 = x_57; +} else { + lean_dec_ref(x_57); + x_62 = lean_box(0); +} +x_63 = lean_name_eq(x_4, x_60); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_62); +x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_array_fset(x_59, x_53, x_65); +lean_dec(x_53); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_61); +lean_dec(x_60); +if (lean_is_scalar(x_62)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_62; +} +lean_ctor_set(x_68, 0, x_4); +lean_ctor_set(x_68, 1, x_5); +x_69 = lean_array_fset(x_59, x_53, x_68); +lean_dec(x_53); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +return x_70; +} +} +case 1: +{ +lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_71 = lean_ctor_get(x_57, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + x_72 = x_57; +} else { + lean_dec_ref(x_57); + x_72 = lean_box(0); +} +x_73 = lean_usize_shift_right(x_2, x_50); +x_74 = lean_usize_add(x_3, x_49); +x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(x_71, x_73, x_74, x_4, x_5); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(1, 1, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_75); +x_77 = lean_array_fset(x_59, x_53, x_76); +lean_dec(x_53); +x_78 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_78, 0, x_77); +return x_78; +} +default: +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_4); +lean_ctor_set(x_79, 1, x_5); +x_80 = lean_array_fset(x_59, x_53, x_79); +lean_dec(x_53); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; +} +} +} +} +} +else +{ +uint8_t x_82; +x_82 = !lean_is_exclusive(x_1); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; +x_83 = lean_unsigned_to_nat(0u); +x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__8(x_1, x_83, x_4, x_5); +x_85 = 7; +x_86 = lean_usize_dec_le(x_85, x_3); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_dec_lt(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_84, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_dec(x_84); +x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1; +x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(x_3, x_90, x_91, lean_box(0), x_83, x_92); +lean_dec(x_91); +lean_dec(x_90); +return x_93; +} +else +{ +return x_84; +} +} +else +{ +return x_84; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; +x_94 = lean_ctor_get(x_1, 0); +x_95 = lean_ctor_get(x_1, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_1); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__8(x_96, x_97, x_4, x_5); +x_99 = 7; +x_100 = lean_usize_dec_le(x_99, x_3); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); +x_102 = lean_unsigned_to_nat(4u); +x_103 = lean_nat_dec_lt(x_101, x_102); +lean_dec(x_101); +if (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_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); +lean_inc(x_105); +lean_dec(x_98); +x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1; +x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(x_3, x_104, x_105, lean_box(0), x_97, x_106); +lean_dec(x_105); +lean_dec(x_104); +return x_107; +} +else +{ +return x_98; +} +} +else +{ +return x_98; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(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_Name_hash___override(x_2); +x_5 = lean_uint64_to_usize(x_4); +x_6 = 1; +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6(x_1, x_5, x_6, x_2, x_3); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.EMatchTheorem", 36, 36); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.EMatchTheorems.insert", 37, 37); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3() { +_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_Lean_Meta_Grind_EMatchTheorems_insert___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; +x_1 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; +x_2 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__2; +x_3 = lean_unsigned_to_nat(64u); +x_4 = lean_unsigned_to_nat(6u); +x_5 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 4); +lean_inc(x_3); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +lean_dec(x_1); +x_4 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4; +x_5 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1(x_4); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 2) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 4); +lean_dec(x_8); +x_9 = !lean_is_exclusive(x_3); +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_3, 1); +x_11 = lean_ctor_get(x_3, 0); +lean_dec(x_11); +x_12 = lean_ctor_get(x_6, 0); +lean_inc(x_12); +lean_dec(x_6); +lean_ctor_set(x_2, 4, x_10); +lean_inc(x_1); +x_13 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(x_1, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +lean_ctor_set(x_3, 1, x_14); +lean_ctor_set(x_3, 0, x_2); +x_15 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_12, x_3); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +lean_ctor_set(x_3, 1, x_16); +lean_ctor_set(x_3, 0, x_2); +x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_12, x_3); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_3, 1); +lean_inc(x_18); +lean_dec(x_3); +x_19 = lean_ctor_get(x_6, 0); +lean_inc(x_19); +lean_dec(x_6); +lean_ctor_set(x_2, 4, x_18); +lean_inc(x_1); +x_20 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(x_1, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_19, x_22); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 0); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_2); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_19, 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_2, 0); +x_28 = lean_ctor_get(x_2, 1); +x_29 = lean_ctor_get(x_2, 2); +x_30 = lean_ctor_get(x_2, 3); +x_31 = lean_ctor_get(x_2, 5); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_2); +x_32 = lean_ctor_get(x_3, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + x_33 = x_3; +} else { + lean_dec_ref(x_3); + x_33 = lean_box(0); +} +x_34 = lean_ctor_get(x_6, 0); +lean_inc(x_34); +lean_dec(x_6); +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set(x_35, 5, x_31); +lean_inc(x_1); +x_36 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(x_1, x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_box(0); +if (lean_is_scalar(x_33)) { + x_38 = lean_alloc_ctor(1, 2, 0); +} else { + x_38 = x_33; +} +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_34, x_38); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +lean_dec(x_36); +if (lean_is_scalar(x_33)) { + x_41 = lean_alloc_ctor(1, 2, 0); +} else { + x_41 = x_33; +} +lean_ctor_set(x_41, 0, x_35); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(x_1, x_34, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4; +x_44 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1(x_43); +return x_44; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4___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_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___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_Meta_Grind_EMatchTheorems_insert___spec__3(x_1, x_4, x_3); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2___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_EMatchTheorems_insert___spec__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___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) { +_start: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___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_Meta_Grind_EMatchTheorems_insert___spec__6(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(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_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = l_Lean_Expr_isConst(x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +lean_dec(x_1); +x_10 = l_Array_isEmpty___rarg(x_9); +if (x_10 == 0) +{ +size_t x_11; size_t x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_array_size(x_9); +x_12 = 0; +lean_inc(x_9); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spec__1(x_11, x_12, x_9, x_2, x_3, x_4, x_5, x_6); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = l_Lean_Expr_instantiateLevelParamsArray(x_7, x_9, x_15); +lean_dec(x_7); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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 = l_Lean_Expr_instantiateLevelParamsArray(x_7, x_9, x_17); +lean_dec(x_7); +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_dec(x_9); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_6); +return x_21; +} +} +else +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +lean_dec(x_1); +x_23 = l_Array_isEmpty___rarg(x_22); +if (x_23 == 0) +{ +size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_array_size(x_22); +x_25 = 0; +lean_inc(x_22); +x_26 = l_Array_mapMUnsafe_map___at_Lean_Meta_openAbstractMVarsResult___spec__1(x_24, x_25, x_22, x_2, x_3, x_4, x_5, x_6); +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); +x_29 = l_Lean_Expr_instantiateLevelParamsArray(x_7, x_22, x_28); +lean_dec(x_7); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_26, 0); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_26); +x_32 = l_Lean_Expr_instantiateLevelParamsArray(x_7, x_22, x_30); +lean_dec(x_7); +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 +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_22); +x_34 = l_Lean_Expr_constName_x21(x_7); +lean_inc(x_34); +x_35 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_34, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_35) == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); +x_39 = l_Lean_ConstantInfo_levelParams(x_37); +lean_dec(x_37); +x_40 = l_List_isEmpty___rarg(x_39); +lean_dec(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +lean_free_object(x_35); +lean_dec(x_7); +x_41 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_34, x_2, x_3, x_4, x_5, x_38); +return x_41; +} +else +{ +lean_dec(x_34); +lean_ctor_set(x_35, 0, x_7); +return x_35; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +x_44 = l_Lean_ConstantInfo_levelParams(x_42); +lean_dec(x_42); +x_45 = l_List_isEmpty___rarg(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_7); +x_46 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_34, x_2, x_3, x_4, x_5, x_43); +return x_46; +} +else +{ +lean_object* x_47; +lean_dec(x_34); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_7); +lean_ctor_set(x_47, 1, x_43); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_34); +lean_dec(x_7); +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) +{ +return x_35; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +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_EMatchTheorem_getProofWithFreshMVarLevels___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_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +static lean_object* _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___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_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__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_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3() { +_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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__2; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Meta", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Tactic", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9() { +_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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("EMatchTheorem", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ematchTheoremsExt", 17, 17); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_EMatchTheorems_insert), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687_(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; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19; +x_4 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1; +x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20; +x_6 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_5); +x_7 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_6, x_1); +return x_7; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Eq", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("HEq", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Iff", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("And", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Or", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Not", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13() { +_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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___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; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18; +x_2 = lean_array_mk(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19; +return x_1; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isForbidden(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames; +x_3 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isForbidden___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isForbidden(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[grind_dontcare]", 16, 16); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2() { +_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_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3() { +_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_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGroundPattern___closed__1() { +_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_mkGroundPattern___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ground_pat", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGroundPattern___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_mkGroundPattern___closed__1; +x_2 = l_Lean_Meta_Grind_mkGroundPattern___closed__2; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGroundPattern(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_mkGroundPattern___closed__3; +x_3 = l_Lean_mkAnnotation(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_groundPattern_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_mkGroundPattern___closed__3; +x_3 = l_Lean_annotation_x3f(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_groundPattern_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_groundPattern_x3f(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isGroundPattern(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_groundPattern_x3f(x_1); +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +uint8_t x_4; +lean_dec(x_2); +x_4 = 1; +return x_4; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isGroundPattern___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isGroundPattern(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isPatternDontCare(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_3 = lean_expr_eqv(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isPatternDontCare___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_isPatternDontCare(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_isBVar(x_1); +if (x_2 == 0) +{ +lean_object* x_3; uint8_t x_4; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_4 = lean_expr_eqv(x_1, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isGroundPattern(x_1); +return x_5; +} +else +{ +uint8_t x_6; +x_6 = 1; +return x_6; +} +} +else +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" ", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3; +x_5 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_4); +x_6 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed), 3, 0); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("(", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(")", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_array_uget(x_3, x_5); +lean_inc(x_8); +x_9 = l_Lean_Meta_Grind_ppPattern(x_8); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(x_8); +lean_dec(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; +x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; +x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); +x_15 = lean_box(0); +x_16 = lean_apply_3(x_10, x_14, x_6, 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); +lean_dec(x_16); +return x_17; +} +else +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_5, x_19); +x_5 = x_20; +x_6 = x_18; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_10, x_9, x_6, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = 1; +x_27 = lean_usize_add(x_5, x_26); +x_5 = x_27; +x_6 = x_25; +goto _start; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__1() { +_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__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_ppPattern___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_ppPattern___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_Expr_sort___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__6() { +_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__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_ppPattern___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +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("`[", 2, 2); +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_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__10() { +_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__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_ppPattern___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppPattern(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_groundPattern_x3f(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; uint8_t x_4; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_4 = lean_expr_eqv(x_1, x_3); +if (x_4 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; 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(x_5); +lean_dec(x_1); +x_6 = l___private_Init_Data_Repr_0__Nat_reprFast(x_5); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = l_Lean_MessageData_ofFormat(x_7); +x_9 = l_Lean_Meta_Grind_ppPattern___closed__2; +x_10 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +case 1: +{ +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; size_t x_26; size_t x_27; lean_object* x_28; +x_13 = l_Lean_Expr_getAppFn(x_1); +x_14 = l_Lean_MessageData_ofExpr(x_13); +x_15 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_16 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_18); +x_20 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_19); +x_21 = lean_mk_array(x_19, x_20); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_sub(x_19, x_22); +lean_dec(x_19); +x_24 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_21, x_23); +x_25 = lean_box(0); +x_26 = lean_array_size(x_24); +x_27 = 0; +x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(x_24, x_25, x_24, x_26, x_27, x_17); +lean_dec(x_24); +return x_28; +} +case 2: +{ +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; size_t x_42; size_t x_43; lean_object* x_44; +x_29 = l_Lean_Expr_getAppFn(x_1); +x_30 = l_Lean_MessageData_ofExpr(x_29); +x_31 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_34); +x_36 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_35); +x_37 = lean_mk_array(x_35, x_36); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_sub(x_35, x_38); +lean_dec(x_35); +x_40 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_37, x_39); +x_41 = lean_box(0); +x_42 = lean_array_size(x_40); +x_43 = 0; +x_44 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(x_40, x_41, x_40, x_42, x_43, x_33); +lean_dec(x_40); +return x_44; +} +case 3: +{ +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; size_t x_58; size_t x_59; lean_object* x_60; +x_45 = l_Lean_Expr_getAppFn(x_1); +x_46 = l_Lean_MessageData_ofExpr(x_45); +x_47 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = lean_unsigned_to_nat(0u); +x_51 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_50); +x_52 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_51); +x_53 = lean_mk_array(x_51, x_52); +x_54 = lean_unsigned_to_nat(1u); +x_55 = lean_nat_sub(x_51, x_54); +lean_dec(x_51); +x_56 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_53, x_55); +x_57 = lean_box(0); +x_58 = lean_array_size(x_56); +x_59 = 0; +x_60 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(x_56, x_57, x_56, x_58, x_59, x_49); +lean_dec(x_56); +return x_60; +} +case 4: +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; +x_61 = l_Lean_Expr_getAppFn(x_1); +x_62 = l_Lean_MessageData_ofExpr(x_61); +x_63 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_unsigned_to_nat(0u); +x_67 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_66); +x_68 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_67); +x_69 = lean_mk_array(x_67, x_68); +x_70 = lean_unsigned_to_nat(1u); +x_71 = lean_nat_sub(x_67, x_70); +lean_dec(x_67); +x_72 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_69, x_71); +x_73 = lean_box(0); +x_74 = lean_array_size(x_72); +x_75 = 0; +x_76 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(x_72, x_73, x_72, x_74, x_75, x_65); +lean_dec(x_72); +return x_76; +} +case 5: +{ +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; size_t x_90; size_t x_91; lean_object* x_92; +x_77 = l_Lean_Expr_getAppFn(x_1); +x_78 = l_Lean_MessageData_ofExpr(x_77); +x_79 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +x_82 = lean_unsigned_to_nat(0u); +x_83 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_82); +x_84 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_83); +x_85 = lean_mk_array(x_83, x_84); +x_86 = lean_unsigned_to_nat(1u); +x_87 = lean_nat_sub(x_83, x_86); +lean_dec(x_83); +x_88 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_85, x_87); +x_89 = lean_box(0); +x_90 = lean_array_size(x_88); +x_91 = 0; +x_92 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(x_88, x_89, x_88, x_90, x_91, x_81); +lean_dec(x_88); +return x_92; +} +case 6: +{ +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; size_t x_106; size_t x_107; lean_object* x_108; +x_93 = l_Lean_Expr_getAppFn(x_1); +x_94 = l_Lean_MessageData_ofExpr(x_93); +x_95 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_96 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_98 = lean_unsigned_to_nat(0u); +x_99 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_98); +x_100 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_99); +x_101 = lean_mk_array(x_99, x_100); +x_102 = lean_unsigned_to_nat(1u); +x_103 = lean_nat_sub(x_99, x_102); +lean_dec(x_99); +x_104 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_101, x_103); +x_105 = lean_box(0); +x_106 = lean_array_size(x_104); +x_107 = 0; +x_108 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(x_104, x_105, x_104, x_106, x_107, x_97); +lean_dec(x_104); +return x_108; +} +case 7: +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; size_t x_122; size_t x_123; lean_object* x_124; +x_109 = l_Lean_Expr_getAppFn(x_1); +x_110 = l_Lean_MessageData_ofExpr(x_109); +x_111 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_112 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +x_113 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_unsigned_to_nat(0u); +x_115 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_114); +x_116 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_115); +x_117 = lean_mk_array(x_115, x_116); +x_118 = lean_unsigned_to_nat(1u); +x_119 = lean_nat_sub(x_115, x_118); +lean_dec(x_115); +x_120 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_117, x_119); +x_121 = lean_box(0); +x_122 = lean_array_size(x_120); +x_123 = 0; +x_124 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(x_120, x_121, x_120, x_122, x_123, x_113); +lean_dec(x_120); +return x_124; +} +case 8: +{ +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; size_t x_138; size_t x_139; lean_object* x_140; +x_125 = l_Lean_Expr_getAppFn(x_1); +x_126 = l_Lean_MessageData_ofExpr(x_125); +x_127 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +x_130 = lean_unsigned_to_nat(0u); +x_131 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_130); +x_132 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_131); +x_133 = lean_mk_array(x_131, x_132); +x_134 = lean_unsigned_to_nat(1u); +x_135 = lean_nat_sub(x_131, x_134); +lean_dec(x_131); +x_136 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_133, x_135); +x_137 = lean_box(0); +x_138 = lean_array_size(x_136); +x_139 = 0; +x_140 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(x_136, x_137, x_136, x_138, x_139, x_129); +lean_dec(x_136); +return x_140; +} +case 9: +{ +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; size_t x_154; size_t x_155; lean_object* x_156; +x_141 = l_Lean_Expr_getAppFn(x_1); +x_142 = l_Lean_MessageData_ofExpr(x_141); +x_143 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_144 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = lean_unsigned_to_nat(0u); +x_147 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_146); +x_148 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_147); +x_149 = lean_mk_array(x_147, x_148); +x_150 = lean_unsigned_to_nat(1u); +x_151 = lean_nat_sub(x_147, x_150); +lean_dec(x_147); +x_152 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_149, x_151); +x_153 = lean_box(0); +x_154 = lean_array_size(x_152); +x_155 = 0; +x_156 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(x_152, x_153, x_152, x_154, x_155, x_145); +lean_dec(x_152); +return x_156; +} +case 10: +{ +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; size_t x_170; size_t x_171; lean_object* x_172; +x_157 = l_Lean_Expr_getAppFn(x_1); +x_158 = l_Lean_MessageData_ofExpr(x_157); +x_159 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_160 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_159); +x_162 = lean_unsigned_to_nat(0u); +x_163 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_162); +x_164 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_163); +x_165 = lean_mk_array(x_163, x_164); +x_166 = lean_unsigned_to_nat(1u); +x_167 = lean_nat_sub(x_163, x_166); +lean_dec(x_163); +x_168 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_165, x_167); +x_169 = lean_box(0); +x_170 = lean_array_size(x_168); +x_171 = 0; +x_172 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(x_168, x_169, x_168, x_170, x_171, x_161); +lean_dec(x_168); +return x_172; +} +default: +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; size_t x_186; size_t x_187; lean_object* x_188; +x_173 = l_Lean_Expr_getAppFn(x_1); +x_174 = l_Lean_MessageData_ofExpr(x_173); +x_175 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_176 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_174); +x_177 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_175); +x_178 = lean_unsigned_to_nat(0u); +x_179 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_178); +x_180 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_179); +x_181 = lean_mk_array(x_179, x_180); +x_182 = lean_unsigned_to_nat(1u); +x_183 = lean_nat_sub(x_179, x_182); +lean_dec(x_179); +x_184 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_181, x_183); +x_185 = lean_box(0); +x_186 = lean_array_size(x_184); +x_187 = 0; +x_188 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(x_184, x_185, x_184, x_186, x_187, x_177); +lean_dec(x_184); +return x_188; +} +} +} +else +{ +lean_object* x_189; +lean_dec(x_1); +x_189 = l_Lean_Meta_Grind_ppPattern___closed__7; +return x_189; +} +} +else +{ +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_dec(x_1); +x_190 = lean_ctor_get(x_2, 0); +lean_inc(x_190); +lean_dec(x_2); +x_191 = l_Lean_MessageData_ofExpr(x_190); +x_192 = l_Lean_Meta_Grind_ppPattern___closed__9; +x_193 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_191); +x_194 = l_Lean_Meta_Grind_ppPattern___closed__11; +x_195 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { +_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(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___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__4(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_HeadIndex_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_HeadIndex_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_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(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(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_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__4(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_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(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_box(0); +x_6 = lean_mk_array(x_4, x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(x_7, x_1, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(lean_object* x_1, 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; uint8_t x_11; +x_8 = lean_st_ref_get(x_2, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; size_t x_27; lean_object* x_28; uint8_t x_29; +x_12 = lean_ctor_get(x_8, 1); +x_13 = lean_ctor_get(x_8, 0); +lean_dec(x_13); +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_array_get_size(x_14); +x_16 = l_Lean_HeadIndex_hash(x_1); +x_17 = 32; +x_18 = lean_uint64_shift_right(x_16, x_17); +x_19 = lean_uint64_xor(x_16, x_18); +x_20 = 16; +x_21 = lean_uint64_shift_right(x_19, x_20); +x_22 = lean_uint64_xor(x_19, x_21); +x_23 = lean_uint64_to_usize(x_22); +x_24 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_25 = 1; +x_26 = lean_usize_sub(x_24, x_25); +x_27 = lean_usize_land(x_23, x_26); +x_28 = lean_array_uget(x_14, x_27); +lean_dec(x_14); +x_29 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_free_object(x_8); +x_30 = lean_st_ref_take(x_2, x_12); +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_30); +x_33 = !lean_is_exclusive(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_31, 0); +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_1); +x_36 = lean_array_push(x_34, x_1); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; size_t x_43; lean_object* x_44; uint8_t x_45; +x_38 = lean_ctor_get(x_35, 0); +x_39 = lean_ctor_get(x_35, 1); +x_40 = lean_array_get_size(x_39); +x_41 = lean_usize_of_nat(x_40); +lean_dec(x_40); +x_42 = lean_usize_sub(x_41, x_25); +x_43 = lean_usize_land(x_23, x_42); +x_44 = lean_array_uget(x_39, x_43); +x_45 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_38, x_46); +lean_dec(x_38); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_44); +x_50 = lean_array_uset(x_39, x_43, x_49); +x_51 = lean_unsigned_to_nat(4u); +x_52 = lean_nat_mul(x_47, x_51); +x_53 = lean_unsigned_to_nat(3u); +x_54 = lean_nat_div(x_52, x_53); +lean_dec(x_52); +x_55 = lean_array_get_size(x_50); +x_56 = lean_nat_dec_le(x_54, x_55); +lean_dec(x_55); +lean_dec(x_54); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_50); +lean_ctor_set(x_35, 1, x_57); +lean_ctor_set(x_35, 0, x_47); +lean_ctor_set(x_31, 0, x_36); +x_58 = lean_st_ref_set(x_2, x_31, x_32); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +lean_ctor_set(x_58, 0, x_48); +return x_58; +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_48); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +else +{ +lean_object* x_63; uint8_t x_64; +lean_ctor_set(x_35, 1, x_50); +lean_ctor_set(x_35, 0, x_47); +lean_ctor_set(x_31, 0, x_36); +x_63 = lean_st_ref_set(x_2, x_31, x_32); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set(x_63, 0, x_48); +return x_63; +} +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_48); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +lean_object* x_68; uint8_t x_69; +lean_dec(x_44); +lean_dec(x_1); +lean_ctor_set(x_31, 0, x_36); +x_68 = lean_st_ref_set(x_2, x_31, x_32); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +x_71 = lean_box(0); +lean_ctor_set(x_68, 0, x_71); +return x_68; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; size_t x_80; lean_object* x_81; uint8_t x_82; +x_75 = lean_ctor_get(x_35, 0); +x_76 = lean_ctor_get(x_35, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_35); +x_77 = lean_array_get_size(x_76); +x_78 = lean_usize_of_nat(x_77); +lean_dec(x_77); +x_79 = lean_usize_sub(x_78, x_25); +x_80 = lean_usize_land(x_23, x_79); +x_81 = lean_array_uget(x_76, x_80); +x_82 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_81); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_83 = lean_unsigned_to_nat(1u); +x_84 = lean_nat_add(x_75, x_83); +lean_dec(x_75); +x_85 = lean_box(0); +x_86 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_86, 0, x_1); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_86, 2, x_81); +x_87 = lean_array_uset(x_76, x_80, x_86); +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_mul(x_84, x_88); +x_90 = lean_unsigned_to_nat(3u); +x_91 = lean_nat_div(x_89, x_90); +lean_dec(x_89); +x_92 = lean_array_get_size(x_87); +x_93 = lean_nat_dec_le(x_91, x_92); +lean_dec(x_92); +lean_dec(x_91); +if (x_93 == 0) +{ +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_94 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_87); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_84); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_31, 1, x_95); +lean_ctor_set(x_31, 0, x_36); +x_96 = lean_st_ref_set(x_2, x_31, x_32); +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_98 = x_96; +} else { + lean_dec_ref(x_96); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_85); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_84); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_31, 1, x_100); +lean_ctor_set(x_31, 0, x_36); +x_101 = lean_st_ref_set(x_2, x_31, x_32); +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); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_85); +lean_ctor_set(x_104, 1, x_102); +return x_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_dec(x_81); +lean_dec(x_1); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_75); +lean_ctor_set(x_105, 1, x_76); +lean_ctor_set(x_31, 1, x_105); +lean_ctor_set(x_31, 0, x_36); +x_106 = lean_st_ref_set(x_2, x_31, x_32); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_108 = x_106; +} else { + lean_dec_ref(x_106); + x_108 = lean_box(0); +} +x_109 = lean_box(0); +if (lean_is_scalar(x_108)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_108; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_107); +return x_110; +} +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; size_t x_119; size_t x_120; size_t x_121; lean_object* x_122; uint8_t x_123; +x_111 = lean_ctor_get(x_31, 0); +x_112 = lean_ctor_get(x_31, 1); +x_113 = lean_ctor_get(x_31, 2); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_31); +lean_inc(x_1); +x_114 = lean_array_push(x_111, x_1); +x_115 = lean_ctor_get(x_112, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_112, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_117 = x_112; +} else { + lean_dec_ref(x_112); + x_117 = lean_box(0); +} +x_118 = lean_array_get_size(x_116); +x_119 = lean_usize_of_nat(x_118); +lean_dec(x_118); +x_120 = lean_usize_sub(x_119, x_25); +x_121 = lean_usize_land(x_23, x_120); +x_122 = lean_array_uget(x_116, x_121); +x_123 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_122); +if (x_123 == 0) +{ +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; uint8_t x_134; +x_124 = lean_unsigned_to_nat(1u); +x_125 = lean_nat_add(x_115, x_124); +lean_dec(x_115); +x_126 = lean_box(0); +x_127 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_127, 0, x_1); +lean_ctor_set(x_127, 1, x_126); +lean_ctor_set(x_127, 2, x_122); +x_128 = lean_array_uset(x_116, x_121, x_127); +x_129 = lean_unsigned_to_nat(4u); +x_130 = lean_nat_mul(x_125, x_129); +x_131 = lean_unsigned_to_nat(3u); +x_132 = lean_nat_div(x_130, x_131); +lean_dec(x_130); +x_133 = lean_array_get_size(x_128); +x_134 = lean_nat_dec_le(x_132, x_133); +lean_dec(x_133); +lean_dec(x_132); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_135 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_128); +if (lean_is_scalar(x_117)) { + x_136 = lean_alloc_ctor(0, 2, 0); +} else { + x_136 = x_117; +} +lean_ctor_set(x_136, 0, x_125); +lean_ctor_set(x_136, 1, x_135); +x_137 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_137, 0, x_114); +lean_ctor_set(x_137, 1, x_136); +lean_ctor_set(x_137, 2, x_113); +x_138 = lean_st_ref_set(x_2, x_137, x_32); +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); +} +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_140; +} +lean_ctor_set(x_141, 0, x_126); +lean_ctor_set(x_141, 1, x_139); +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; +if (lean_is_scalar(x_117)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_117; +} +lean_ctor_set(x_142, 0, x_125); +lean_ctor_set(x_142, 1, x_128); +x_143 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_143, 0, x_114); +lean_ctor_set(x_143, 1, x_142); +lean_ctor_set(x_143, 2, x_113); +x_144 = lean_st_ref_set(x_2, x_143, x_32); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_126); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +} +else +{ +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_dec(x_122); +lean_dec(x_1); +if (lean_is_scalar(x_117)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_117; +} +lean_ctor_set(x_148, 0, x_115); +lean_ctor_set(x_148, 1, x_116); +x_149 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_149, 0, x_114); +lean_ctor_set(x_149, 1, x_148); +lean_ctor_set(x_149, 2, x_113); +x_150 = lean_st_ref_set(x_2, x_149, x_32); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +x_153 = lean_box(0); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +return x_154; +} +} +} +else +{ +lean_object* x_155; +lean_dec(x_1); +x_155 = lean_box(0); +lean_ctor_set(x_8, 0, x_155); +return x_8; +} +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; uint64_t x_159; uint64_t x_160; uint64_t x_161; uint64_t x_162; uint64_t x_163; uint64_t x_164; uint64_t x_165; size_t x_166; size_t x_167; size_t x_168; size_t x_169; size_t x_170; lean_object* x_171; uint8_t x_172; +x_156 = lean_ctor_get(x_8, 1); +lean_inc(x_156); +lean_dec(x_8); +x_157 = lean_ctor_get(x_10, 1); +lean_inc(x_157); +lean_dec(x_10); +x_158 = lean_array_get_size(x_157); +x_159 = l_Lean_HeadIndex_hash(x_1); +x_160 = 32; +x_161 = lean_uint64_shift_right(x_159, x_160); +x_162 = lean_uint64_xor(x_159, x_161); +x_163 = 16; +x_164 = lean_uint64_shift_right(x_162, x_163); +x_165 = lean_uint64_xor(x_162, x_164); +x_166 = lean_uint64_to_usize(x_165); +x_167 = lean_usize_of_nat(x_158); +lean_dec(x_158); +x_168 = 1; +x_169 = lean_usize_sub(x_167, x_168); +x_170 = lean_usize_land(x_166, x_169); +x_171 = lean_array_uget(x_157, x_170); +lean_dec(x_157); +x_172 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_171); +lean_dec(x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; size_t x_185; size_t x_186; size_t x_187; lean_object* x_188; uint8_t x_189; +x_173 = lean_st_ref_take(x_2, x_156); +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(x_173); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +x_178 = lean_ctor_get(x_174, 2); +lean_inc(x_178); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + x_179 = x_174; +} else { + lean_dec_ref(x_174); + x_179 = lean_box(0); +} +lean_inc(x_1); +x_180 = lean_array_push(x_176, x_1); +x_181 = lean_ctor_get(x_177, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_177, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_183 = x_177; +} else { + lean_dec_ref(x_177); + x_183 = lean_box(0); +} +x_184 = lean_array_get_size(x_182); +x_185 = lean_usize_of_nat(x_184); +lean_dec(x_184); +x_186 = lean_usize_sub(x_185, x_168); +x_187 = lean_usize_land(x_166, x_186); +x_188 = lean_array_uget(x_182, x_187); +x_189 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_188); +if (x_189 == 0) +{ +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; uint8_t x_200; +x_190 = lean_unsigned_to_nat(1u); +x_191 = lean_nat_add(x_181, x_190); +lean_dec(x_181); +x_192 = lean_box(0); +x_193 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_193, 0, x_1); +lean_ctor_set(x_193, 1, x_192); +lean_ctor_set(x_193, 2, x_188); +x_194 = lean_array_uset(x_182, x_187, x_193); +x_195 = lean_unsigned_to_nat(4u); +x_196 = lean_nat_mul(x_191, x_195); +x_197 = lean_unsigned_to_nat(3u); +x_198 = lean_nat_div(x_196, x_197); +lean_dec(x_196); +x_199 = lean_array_get_size(x_194); +x_200 = lean_nat_dec_le(x_198, x_199); +lean_dec(x_199); +lean_dec(x_198); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_201 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_194); +if (lean_is_scalar(x_183)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_183; +} +lean_ctor_set(x_202, 0, x_191); +lean_ctor_set(x_202, 1, x_201); +if (lean_is_scalar(x_179)) { + x_203 = lean_alloc_ctor(0, 3, 0); +} else { + x_203 = x_179; +} +lean_ctor_set(x_203, 0, x_180); +lean_ctor_set(x_203, 1, x_202); +lean_ctor_set(x_203, 2, x_178); +x_204 = lean_st_ref_set(x_2, x_203, x_175); +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_206 = x_204; +} else { + lean_dec_ref(x_204); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(0, 2, 0); +} else { + x_207 = x_206; +} +lean_ctor_set(x_207, 0, x_192); +lean_ctor_set(x_207, 1, x_205); +return x_207; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +if (lean_is_scalar(x_183)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_183; +} +lean_ctor_set(x_208, 0, x_191); +lean_ctor_set(x_208, 1, x_194); +if (lean_is_scalar(x_179)) { + x_209 = lean_alloc_ctor(0, 3, 0); +} else { + x_209 = x_179; +} +lean_ctor_set(x_209, 0, x_180); +lean_ctor_set(x_209, 1, x_208); +lean_ctor_set(x_209, 2, x_178); +x_210 = lean_st_ref_set(x_2, x_209, x_175); +x_211 = lean_ctor_get(x_210, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_212 = x_210; +} else { + lean_dec_ref(x_210); + x_212 = lean_box(0); +} +if (lean_is_scalar(x_212)) { + x_213 = lean_alloc_ctor(0, 2, 0); +} else { + x_213 = x_212; +} +lean_ctor_set(x_213, 0, x_192); +lean_ctor_set(x_213, 1, x_211); +return x_213; +} +} +else +{ +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_dec(x_188); +lean_dec(x_1); +if (lean_is_scalar(x_183)) { + x_214 = lean_alloc_ctor(0, 2, 0); +} else { + x_214 = x_183; +} +lean_ctor_set(x_214, 0, x_181); +lean_ctor_set(x_214, 1, x_182); +if (lean_is_scalar(x_179)) { + x_215 = lean_alloc_ctor(0, 3, 0); +} else { + x_215 = x_179; +} +lean_ctor_set(x_215, 0, x_180); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_178); +x_216 = lean_st_ref_set(x_2, x_215, x_175); +x_217 = lean_ctor_get(x_216, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_218 = x_216; +} else { + lean_dec_ref(x_216); + x_218 = lean_box(0); +} +x_219 = lean_box(0); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 0); +} else { + x_220 = x_218; +} +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_217); +return x_220; +} +} +else +{ +lean_object* x_221; lean_object* x_222; +lean_dec(x_1); +x_221 = lean_box(0); +x_222 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_156); +return x_222; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___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_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(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 = lean_nat_dec_eq(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar(lean_object* x_1, 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; uint8_t x_11; +x_8 = lean_st_ref_get(x_2, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 2); +lean_inc(x_10); +lean_dec(x_9); +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; size_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_12 = lean_ctor_get(x_8, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_array_get_size(x_13); +x_15 = lean_uint64_of_nat(x_1); +x_16 = 32; +x_17 = lean_uint64_shift_right(x_15, x_16); +x_18 = lean_uint64_xor(x_15, x_17); +x_19 = 16; +x_20 = lean_uint64_shift_right(x_18, x_19); +x_21 = lean_uint64_xor(x_18, x_20); +x_22 = lean_uint64_to_usize(x_21); +x_23 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_24 = 1; +x_25 = lean_usize_sub(x_23, x_24); +x_26 = lean_usize_land(x_22, x_25); +x_27 = lean_array_uget(x_13, x_26); +lean_dec(x_13); +x_28 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_27); +lean_dec(x_27); +x_29 = lean_box(x_28); +lean_ctor_set(x_8, 0, x_29); +return x_8; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; size_t x_40; size_t x_41; size_t x_42; size_t x_43; size_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_dec(x_8); +x_31 = lean_ctor_get(x_10, 1); +lean_inc(x_31); +lean_dec(x_10); +x_32 = lean_array_get_size(x_31); +x_33 = lean_uint64_of_nat(x_1); +x_34 = 32; +x_35 = lean_uint64_shift_right(x_33, x_34); +x_36 = lean_uint64_xor(x_33, x_35); +x_37 = 16; +x_38 = lean_uint64_shift_right(x_36, x_37); +x_39 = lean_uint64_xor(x_36, x_38); +x_40 = lean_uint64_to_usize(x_39); +x_41 = lean_usize_of_nat(x_32); +lean_dec(x_32); +x_42 = 1; +x_43 = lean_usize_sub(x_41, x_42); +x_44 = lean_usize_land(x_40, x_43); +x_45 = lean_array_uget(x_31, x_44); +lean_dec(x_31); +x_46 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_45); +lean_dec(x_45); +x_47 = lean_box(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_30); +return x_48; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___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_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_1); +return x_2; +} +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; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 2); +x_7 = lean_array_get_size(x_2); +lean_inc(x_1); +lean_inc(x_5); +x_8 = lean_apply_1(x_1, x_5); +x_9 = lean_unbox_uint64(x_8); +lean_dec(x_8); +x_10 = 32; +x_11 = lean_uint64_shift_right(x_9, x_10); +x_12 = lean_uint64_xor(x_9, x_11); +x_13 = 16; +x_14 = lean_uint64_shift_right(x_12, x_13); +x_15 = lean_uint64_xor(x_12, x_14); +x_16 = lean_uint64_to_usize(x_15); +x_17 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_18 = 1; +x_19 = lean_usize_sub(x_17, x_18); +x_20 = lean_usize_land(x_16, x_19); +x_21 = lean_array_uget(x_2, x_20); +lean_ctor_set(x_3, 2, x_21); +x_22 = lean_array_uset(x_2, x_20, x_3); +x_2 = x_22; +x_3 = x_6; +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_24 = lean_ctor_get(x_3, 0); +x_25 = lean_ctor_get(x_3, 1); +x_26 = lean_ctor_get(x_3, 2); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_3); +x_27 = lean_array_get_size(x_2); +lean_inc(x_1); +lean_inc(x_24); +x_28 = lean_apply_1(x_1, x_24); +x_29 = lean_unbox_uint64(x_28); +lean_dec(x_28); +x_30 = 32; +x_31 = lean_uint64_shift_right(x_29, x_30); +x_32 = lean_uint64_xor(x_29, x_31); +x_33 = 16; +x_34 = lean_uint64_shift_right(x_32, x_33); +x_35 = lean_uint64_xor(x_32, x_34); +x_36 = lean_uint64_to_usize(x_35); +x_37 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_38 = 1; +x_39 = lean_usize_sub(x_37, x_38); +x_40 = lean_usize_land(x_36, x_39); +x_41 = lean_array_uget(x_2, x_40); +x_42 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_42, 0, x_24); +lean_ctor_set(x_42, 1, x_25); +lean_ctor_set(x_42, 2, x_41); +x_43 = lean_array_uset(x_2, x_40, x_42); +x_2 = x_43; +x_3 = x_26; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(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 = lean_uint64_of_nat(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 = lean_uint64_of_nat(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_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(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(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_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(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_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 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_box(0); +x_6 = lean_mk_array(x_4, x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(x_7, x_1, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar(lean_object* x_1, 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; uint8_t x_12; +x_8 = lean_st_ref_take(x_2, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 2); +lean_inc(x_10); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_9, 2); +lean_dec(x_13); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +x_17 = lean_array_get_size(x_16); +x_18 = lean_uint64_of_nat(x_1); +x_19 = 32; +x_20 = lean_uint64_shift_right(x_18, x_19); +x_21 = lean_uint64_xor(x_18, x_20); +x_22 = 16; +x_23 = lean_uint64_shift_right(x_21, x_22); +x_24 = lean_uint64_xor(x_21, x_23); +x_25 = lean_uint64_to_usize(x_24); +x_26 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_27 = 1; +x_28 = lean_usize_sub(x_26, x_27); +x_29 = lean_usize_land(x_25, x_28); +x_30 = lean_array_uget(x_16, x_29); +x_31 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, 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; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_15, x_32); +lean_dec(x_15); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_35, 2, x_30); +x_36 = lean_array_uset(x_16, x_29, x_35); +x_37 = lean_unsigned_to_nat(4u); +x_38 = lean_nat_mul(x_33, x_37); +x_39 = lean_unsigned_to_nat(3u); +x_40 = lean_nat_div(x_38, x_39); +lean_dec(x_38); +x_41 = lean_array_get_size(x_36); +x_42 = lean_nat_dec_le(x_40, x_41); +lean_dec(x_41); +lean_dec(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_36); +lean_ctor_set(x_10, 1, x_43); +lean_ctor_set(x_10, 0, x_33); +x_44 = lean_st_ref_set(x_2, x_9, x_11); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; +x_46 = lean_ctor_get(x_44, 0); +lean_dec(x_46); +lean_ctor_set(x_44, 0, x_34); +return x_44; +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_34); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +else +{ +lean_object* x_49; uint8_t x_50; +lean_ctor_set(x_10, 1, x_36); +lean_ctor_set(x_10, 0, x_33); +x_49 = lean_st_ref_set(x_2, x_9, x_11); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_49, 0); +lean_dec(x_51); +lean_ctor_set(x_49, 0, x_34); +return x_49; +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_34); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; uint8_t x_55; +lean_dec(x_30); +lean_dec(x_1); +x_54 = lean_st_ref_set(x_2, x_9, x_11); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +x_57 = lean_box(0); +lean_ctor_set(x_54, 0, x_57); +return x_54; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_54, 1); +lean_inc(x_58); +lean_dec(x_54); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; lean_object* x_76; uint8_t x_77; +x_61 = lean_ctor_get(x_10, 0); +x_62 = lean_ctor_get(x_10, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_10); +x_63 = lean_array_get_size(x_62); +x_64 = lean_uint64_of_nat(x_1); +x_65 = 32; +x_66 = lean_uint64_shift_right(x_64, x_65); +x_67 = lean_uint64_xor(x_64, x_66); +x_68 = 16; +x_69 = lean_uint64_shift_right(x_67, x_68); +x_70 = lean_uint64_xor(x_67, x_69); +x_71 = lean_uint64_to_usize(x_70); +x_72 = lean_usize_of_nat(x_63); +lean_dec(x_63); +x_73 = 1; +x_74 = lean_usize_sub(x_72, x_73); +x_75 = lean_usize_land(x_71, x_74); +x_76 = lean_array_uget(x_62, x_75); +x_77 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_76); +if (x_77 == 0) +{ +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; uint8_t x_88; +x_78 = lean_unsigned_to_nat(1u); +x_79 = lean_nat_add(x_61, x_78); +lean_dec(x_61); +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_81, 0, x_1); +lean_ctor_set(x_81, 1, x_80); +lean_ctor_set(x_81, 2, x_76); +x_82 = lean_array_uset(x_62, x_75, x_81); +x_83 = lean_unsigned_to_nat(4u); +x_84 = lean_nat_mul(x_79, x_83); +x_85 = lean_unsigned_to_nat(3u); +x_86 = lean_nat_div(x_84, x_85); +lean_dec(x_84); +x_87 = lean_array_get_size(x_82); +x_88 = lean_nat_dec_le(x_86, x_87); +lean_dec(x_87); +lean_dec(x_86); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_89 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_82); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_79); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_9, 2, x_90); +x_91 = lean_st_ref_set(x_2, x_9, x_11); +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); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_80); +lean_ctor_set(x_94, 1, x_92); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_79); +lean_ctor_set(x_95, 1, x_82); +lean_ctor_set(x_9, 2, x_95); +x_96 = lean_st_ref_set(x_2, x_9, x_11); +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_98 = x_96; +} else { + lean_dec_ref(x_96); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_80); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +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_dec(x_76); +lean_dec(x_1); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_61); +lean_ctor_set(x_100, 1, x_62); +lean_ctor_set(x_9, 2, x_100); +x_101 = lean_st_ref_set(x_2, x_9, x_11); +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_box(0); +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_object* x_110; lean_object* x_111; uint64_t x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; size_t x_119; size_t x_120; size_t x_121; size_t x_122; size_t x_123; lean_object* x_124; uint8_t x_125; +x_106 = lean_ctor_get(x_9, 0); +x_107 = lean_ctor_get(x_9, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_9); +x_108 = lean_ctor_get(x_10, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_10, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_110 = x_10; +} else { + lean_dec_ref(x_10); + x_110 = lean_box(0); +} +x_111 = lean_array_get_size(x_109); +x_112 = lean_uint64_of_nat(x_1); +x_113 = 32; +x_114 = lean_uint64_shift_right(x_112, x_113); +x_115 = lean_uint64_xor(x_112, x_114); +x_116 = 16; +x_117 = lean_uint64_shift_right(x_115, x_116); +x_118 = lean_uint64_xor(x_115, x_117); +x_119 = lean_uint64_to_usize(x_118); +x_120 = lean_usize_of_nat(x_111); +lean_dec(x_111); +x_121 = 1; +x_122 = lean_usize_sub(x_120, x_121); +x_123 = lean_usize_land(x_119, x_122); +x_124 = lean_array_uget(x_109, x_123); +x_125 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_124); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_126 = lean_unsigned_to_nat(1u); +x_127 = lean_nat_add(x_108, x_126); +lean_dec(x_108); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_129, 0, x_1); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_129, 2, x_124); +x_130 = lean_array_uset(x_109, x_123, x_129); +x_131 = lean_unsigned_to_nat(4u); +x_132 = lean_nat_mul(x_127, x_131); +x_133 = lean_unsigned_to_nat(3u); +x_134 = lean_nat_div(x_132, x_133); +lean_dec(x_132); +x_135 = lean_array_get_size(x_130); +x_136 = lean_nat_dec_le(x_134, x_135); +lean_dec(x_135); +lean_dec(x_134); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_137 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_130); +if (lean_is_scalar(x_110)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_110; +} +lean_ctor_set(x_138, 0, x_127); +lean_ctor_set(x_138, 1, x_137); +x_139 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_139, 0, x_106); +lean_ctor_set(x_139, 1, x_107); +lean_ctor_set(x_139, 2, x_138); +x_140 = lean_st_ref_set(x_2, x_139, x_11); +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_142 = x_140; +} else { + lean_dec_ref(x_140); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_128); +lean_ctor_set(x_143, 1, x_141); +return x_143; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +if (lean_is_scalar(x_110)) { + x_144 = lean_alloc_ctor(0, 2, 0); +} else { + x_144 = x_110; +} +lean_ctor_set(x_144, 0, x_127); +lean_ctor_set(x_144, 1, x_130); +x_145 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_145, 0, x_106); +lean_ctor_set(x_145, 1, x_107); +lean_ctor_set(x_145, 2, x_144); +x_146 = lean_st_ref_set(x_2, x_145, x_11); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_148 = x_146; +} else { + lean_dec_ref(x_146); + x_148 = lean_box(0); +} +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_148; +} +lean_ctor_set(x_149, 0, x_128); +lean_ctor_set(x_149, 1, x_147); +return x_149; +} +} +else +{ +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_dec(x_124); +lean_dec(x_1); +if (lean_is_scalar(x_110)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_110; +} +lean_ctor_set(x_150, 0, x_108); +lean_ctor_set(x_150, 1, x_109); +x_151 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_151, 0, x_106); +lean_ctor_set(x_151, 1, x_107); +lean_ctor_set(x_151, 2, x_150); +x_152 = lean_st_ref_set(x_2, x_151, x_11); +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_154 = x_152; +} else { + lean_dec_ref(x_152); + x_154 = lean_box(0); +} +x_155 = lean_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +return x_156; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___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_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_isApp(x_1); +if (x_2 == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; +x_4 = l_Lean_Expr_getAppFn(x_1); +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_5; +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +case 4: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames; +x_8 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_7, x_6); +lean_dec(x_6); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_4); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_box(0); +return x_10; +} +} +default: +{ +lean_object* x_11; +lean_dec(x_4); +x_11 = lean_box(0); +return x_11; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___spec__1(size_t 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, lean_object* x_8) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_2, x_1); +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_3); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_22; lean_object* x_23; lean_object* x_38; +x_11 = lean_array_uget(x_3, x_2); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_array_uset(x_3, x_2, x_12); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_11); +x_38 = l_Lean_Meta_isTypeFormer(x_11, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_unbox(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_39); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_11); +x_42 = l_Lean_Meta_isProof(x_11, x_4, x_5, x_6, x_7, x_41); +if (lean_obj_tag(x_42) == 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_inc(x_44); +lean_dec(x_42); +x_45 = lean_unbox(x_43); +lean_dec(x_43); +x_22 = x_45; +x_23 = x_44; +goto block_37; +} +else +{ +uint8_t x_46; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) +{ +return x_42; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 0); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_42); +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_50; uint8_t x_51; +x_50 = lean_ctor_get(x_38, 1); +lean_inc(x_50); +lean_dec(x_38); +x_51 = lean_unbox(x_39); +lean_dec(x_39); +x_22 = x_51; +x_23 = x_50; +goto block_37; +} +} +else +{ +uint8_t x_52; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_52 = !lean_is_exclusive(x_38); +if (x_52 == 0) +{ +return x_38; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_38, 0); +x_54 = lean_ctor_get(x_38, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_38); +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; +} +} +block_21: +{ +size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = 1; +x_17 = lean_usize_add(x_2, x_16); +x_18 = lean_box(x_14); +x_19 = lean_array_uset(x_13, x_2, x_18); +x_2 = x_17; +x_3 = x_19; +x_8 = x_15; +goto _start; +} +block_37: +{ +if (x_22 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_Expr_fvarId_x21(x_11); +lean_dec(x_11); +lean_inc(x_4); +x_25 = l_Lean_FVarId_getDecl(x_24, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_LocalDecl_binderInfo(x_26); +lean_dec(x_26); +x_29 = lean_box(x_28); +if (lean_obj_tag(x_29) == 3) +{ +uint8_t x_30; +x_30 = 1; +x_14 = x_30; +x_15 = x_27; +goto block_21; +} +else +{ +uint8_t x_31; +lean_dec(x_29); +x_31 = 0; +x_14 = x_31; +x_15 = x_27; +goto block_21; +} +} +else +{ +uint8_t x_32; +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_32 = !lean_is_exclusive(x_25); +if (x_32 == 0) +{ +return x_25; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_25, 0); +x_34 = lean_ctor_get(x_25, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_25); +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 +{ +uint8_t x_36; +lean_dec(x_11); +x_36 = 1; +x_14 = x_36; +x_15 = x_23; +goto block_21; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_array_size(x_1); +x_9 = 0; +x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___spec__1(x_8, x_9, x_1, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1___boxed), 7, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask(lean_object* x_1, 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(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = lean_infer_type(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; uint8_t x_13; lean_object* x_14; +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(x_8); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_2); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1; +x_13 = 0; +x_14 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_9, x_11, x_12, x_13, x_3, x_4, x_5, x_6, x_10); +return x_14; +} +else +{ +uint8_t x_15; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_8); +if (x_15 == 0) +{ +return x_8; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_8, 0); +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_8); +x_18 = lean_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_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___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) { +_start: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___spec__1(x_9, x_10, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___lambda__1(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_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { +_start: +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_5, 5); +x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +lean_inc(x_8); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_array_set(x_2, x_1, x_3); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___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_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_nat_dec_lt(x_5, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_4); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_35 = lean_array_get_size(x_4); +x_36 = lean_nat_dec_lt(x_5, x_35); +lean_dec(x_35); +x_37 = lean_array_get_size(x_1); +x_38 = lean_nat_dec_lt(x_5, x_37); +lean_dec(x_37); +if (x_36 == 0) +{ +lean_object* x_93; lean_object* x_94; +x_93 = l_Lean_instInhabitedExpr; +x_94 = l_outOfBounds___rarg(x_93); +x_39 = x_94; +goto block_92; +} +else +{ +lean_object* x_95; +x_95 = lean_array_fget(x_4, x_5); +x_39 = x_95; +goto block_92; +} +block_34: +{ +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(x_18); +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 +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_17, 1); +lean_inc(x_25); +lean_dec(x_17); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +lean_dec(x_18); +x_27 = lean_ctor_get(x_3, 2); +x_28 = lean_nat_add(x_5, x_27); +lean_dec(x_5); +x_4 = x_26; +x_5 = x_28; +x_6 = lean_box(0); +x_7 = lean_box(0); +x_13 = x_25; +goto _start; +} +} +else +{ +uint8_t x_30; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +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; +} +} +} +block_92: +{ +uint8_t x_40; uint8_t x_41; +x_40 = l_Lean_Expr_hasLooseBVars(x_39); +if (x_38 == 0) +{ +uint8_t x_89; +x_89 = 0; +x_41 = x_89; +goto block_88; +} +else +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_array_fget(x_1, x_5); +x_91 = lean_unbox(x_90); +lean_dec(x_90); +x_41 = x_91; +goto block_88; +} +block_88: +{ +if (x_40 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Expr_hasMVar(x_39); +if (x_42 == 0) +{ +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 = l_Lean_Meta_Grind_mkGroundPattern(x_39); +x_44 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_43, x_8, x_9, x_10, x_11, x_12, x_13); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_ctor_get(x_3, 2); +x_49 = lean_nat_add(x_5, x_48); +lean_dec(x_5); +x_4 = x_47; +x_5 = x_49; +x_6 = lean_box(0); +x_7 = lean_box(0); +x_13 = x_46; +goto _start; +} +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_dec(x_39); +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_52 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_51, x_8, x_9, x_10, x_11, x_12, x_13); +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(x_52); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_ctor_get(x_3, 2); +x_57 = lean_nat_add(x_5, x_56); +lean_dec(x_5); +x_4 = x_55; +x_5 = x_57; +x_6 = lean_box(0); +x_7 = lean_box(0); +x_13 = x_54; +goto _start; +} +} +else +{ +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_39, 0); +lean_inc(x_59); +x_60 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_foundBVar(x_59, x_8, x_9, x_10, x_11, x_12, x_13); +if (x_41 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_59, x_8, x_9, x_10, x_11, x_12, x_61); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_39, x_8, x_9, x_10, x_11, x_12, x_63); +x_17 = x_64; +goto block_34; +} +else +{ +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_60, 0); +lean_inc(x_65); +x_66 = lean_unbox(x_65); +lean_dec(x_65); +if (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_60, 1); +lean_inc(x_67); +lean_dec(x_60); +x_68 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_59, x_8, x_9, x_10, x_11, x_12, x_67); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_39, x_8, x_9, x_10, x_11, x_12, x_69); +x_17 = x_70; +goto block_34; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_59); +lean_dec(x_39); +x_71 = lean_ctor_get(x_60, 1); +lean_inc(x_71); +lean_dec(x_60); +x_72 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_73 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_72, x_8, x_9, x_10, x_11, x_12, x_71); +x_17 = x_73; +goto block_34; +} +} +} +else +{ +if (x_41 == 0) +{ +lean_object* x_74; +x_74 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_39); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_39); +x_75 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_76 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_75, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = x_76; +goto block_34; +} +else +{ +uint8_t x_77; lean_object* x_78; +lean_dec(x_74); +x_77 = 0; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_78 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(x_39, x_77, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +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(x_78); +x_81 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_79, x_8, x_9, x_10, x_11, x_12, x_80); +x_17 = x_81; +goto block_34; +} +else +{ +uint8_t x_82; +lean_dec(x_4); +x_82 = !lean_is_exclusive(x_78); +if (x_82 == 0) +{ +x_17 = x_78; +goto block_34; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_78, 0); +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_78); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_17 = x_85; +goto block_34; +} +} +} +} +else +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_39); +x_86 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_87 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_5, x_4, x_86, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = x_87; +goto block_34; +} +} +} +} +} +} +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_instMonadMetaM; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1; +x_2 = l_Lean_instInhabitedExpr; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__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; lean_object* x_10; +x_8 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2; +x_9 = lean_panic_fn(x_8, x_1); +x_10 = lean_apply_6(x_9, x_2, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { +_start: +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_5, 5); +x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +lean_inc(x_8); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid pattern, (non-forbidden) application expected", 53, 53); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("assertion violation: ", 21, 21); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("f.isConst || f.isFVar\n ", 24, 24); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.EMatchTheorem.0.Lean.Meta.Grind.NormalizePattern.go", 83, 83); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6; +x_3 = lean_unsigned_to_nat(177u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_1); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_1); +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; +x_11 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(x_10, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_46; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +x_46 = l_Lean_Expr_isConst(x_12); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Expr_isFVar(x_12); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_12); +lean_dec(x_1); +x_48 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7; +x_49 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(x_48, x_3, x_4, x_5, x_6, x_7, x_8); +return x_49; +} +else +{ +lean_object* x_50; +x_50 = lean_box(0); +x_13 = x_50; +goto block_45; +} +} +else +{ +lean_object* x_51; +x_51 = lean_box(0); +x_13 = x_51; +goto block_45; +} +block_45: +{ +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_dec(x_13); +lean_inc(x_12); +x_14 = l_Lean_Expr_toHeadIndex(x_12); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_14, x_3, x_4, x_5, x_6, x_7, x_8); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_17); +x_19 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_18); +x_20 = lean_mk_array(x_18, x_19); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_sub(x_18, x_21); +lean_dec(x_18); +x_23 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_20, x_22); +x_24 = lean_array_get_size(x_23); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_24); +lean_inc(x_12); +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask(x_12, x_24, x_4, x_5, x_6, x_7, x_16); +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, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_24); +lean_ctor_set(x_28, 2, x_21); +x_29 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2(x_26, x_28, x_28, x_23, x_17, lean_box(0), lean_box(0), x_3, x_4, x_5, x_6, x_7, x_27); +lean_dec(x_28); +lean_dec(x_26); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +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); +x_32 = l_Lean_mkAppN(x_12, x_31); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_29); +x_35 = l_Lean_mkAppN(x_12, x_33); +lean_dec(x_33); +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_12); +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 +{ +uint8_t x_41; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_41 = !lean_is_exclusive(x_25); +if (x_41 == 0) +{ +return x_25; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_25, 0); +x_43 = lean_ctor_get(x_25, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_25); +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; +} +} +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid pattern, it does not have pattern variables", 51, 51); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; +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_NormalizePattern_go(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: +{ +if (x_2 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = l_Lean_Expr_hasLooseBVars(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_1); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2; +x_13 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(x_12, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___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: +{ +lean_object* x_14; +x_14 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_9 = l_List_reverse___rarg(x_2); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 1); +x_14 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +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(x_15); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_16); +{ +lean_object* _tmp_0 = x_13; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_7 = x_17; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_8 = _tmp_7; +} +goto _start; +} +else +{ +uint8_t x_19; +lean_free_object(x_1); +lean_dec(x_13); +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_is_exclusive(x_15); +if (x_19 == 0) +{ +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_1, 0); +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_1); +x_25 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go(x_23, x_25, x_3, x_4, x_5, x_6, x_7, x_8); +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(x_26); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_2); +x_1 = x_24; +x_2 = x_29; +x_8 = x_28; +goto _start; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_24); +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_31 = lean_ctor_get(x_26, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_33 = x_26; +} else { + lean_dec_ref(x_26); + x_33 = lean_box(0); +} +if (lean_is_scalar(x_33)) { + x_34 = lean_alloc_ctor(1, 2, 0); +} else { + x_34 = x_33; +} +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(10u); +x_2 = lean_unsigned_to_nat(1u); +x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___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_NormalizePattern_main___closed__2; +x_3 = lean_mk_array(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Meta_Grind_NormalizePattern_main___closed__3; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_NormalizePattern_main___closed__1; +x_2 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_box(0); +x_8 = l_Lean_Meta_Grind_NormalizePattern_main___closed__5; +x_9 = lean_st_mk_ref(x_8, x_6); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +x_13 = l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(x_1, x_7, x_11, x_2, x_3, x_4, x_5, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_get(x_11, x_15); +lean_dec(x_11); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 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_16, 0); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_array_to_list(x_19); +x_21 = lean_ctor_get(x_18, 2); +lean_inc(x_21); +lean_dec(x_18); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_14); +lean_ctor_set(x_22, 1, x_9); +lean_ctor_set(x_16, 0, x_22); +return x_16; +} +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; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_16); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +x_26 = lean_array_to_list(x_25); +x_27 = lean_ctor_get(x_23, 2); +lean_inc(x_27); +lean_dec(x_23); +lean_ctor_set(x_9, 1, x_27); +lean_ctor_set(x_9, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_14); +lean_ctor_set(x_28, 1, x_9); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_24); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_free_object(x_9); +lean_dec(x_11); +x_30 = !lean_is_exclusive(x_13); +if (x_30 == 0) +{ +return x_13; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_13, 0); +x_32 = lean_ctor_get(x_13, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_13); +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_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_9, 0); +x_35 = lean_ctor_get(x_9, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_9); +lean_inc(x_34); +x_36 = l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(x_1, x_7, x_34, x_2, x_3, x_4, x_5, x_35); +if (lean_obj_tag(x_36) == 0) +{ +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; +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(x_36); +x_39 = lean_st_ref_get(x_34, x_38); +lean_dec(x_34); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_42 = x_39; +} else { + lean_dec_ref(x_39); + x_42 = lean_box(0); +} +x_43 = lean_ctor_get(x_40, 0); +lean_inc(x_43); +x_44 = lean_array_to_list(x_43); +x_45 = lean_ctor_get(x_40, 2); +lean_inc(x_45); +lean_dec(x_40); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_37); +lean_ctor_set(x_47, 1, x_46); +if (lean_is_scalar(x_42)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_42; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_41); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_34); +x_49 = lean_ctor_get(x_36, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_36, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_51 = x_36; +} else { + lean_dec_ref(x_36); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_array_uget(x_4, x_5); +x_9 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_1, x_8); +if (lean_obj_tag(x_9) == 0) +{ +size_t x_10; size_t x_11; +lean_dec(x_8); +x_10 = 1; +x_11 = lean_usize_add(x_5, x_10); +x_5 = x_11; +goto _start; +} +else +{ +lean_object* x_13; +lean_dec(x_9); +x_13 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_8); +lean_dec(x_8); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = 1; +return x_14; +} +else +{ +size_t x_15; size_t x_16; +lean_dec(x_13); +x_15 = 1; +x_16 = lean_usize_add(x_5, x_15); +x_5 = x_16; +goto _start; +} +} +} +else +{ +uint8_t x_18; +x_18 = 0; +return x_18; +} +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_4, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_1, x_7); +if (lean_obj_tag(x_8) == 0) +{ +size_t x_9; size_t x_10; +lean_dec(x_7); +x_9 = 1; +x_10 = lean_usize_add(x_4, x_9); +x_4 = x_10; +goto _start; +} +else +{ +lean_object* x_12; +lean_dec(x_8); +x_12 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_7); +lean_dec(x_7); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = 1; +return x_13; +} +else +{ +size_t x_14; size_t x_15; +lean_dec(x_12); +x_14 = 1; +x_15 = lean_usize_add(x_4, x_14); +x_4 = x_15; +goto _start; +} +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_3 = l_Lean_Meta_Grind_NormalizePattern_main___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(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; uint8_t x_9; +x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1; +x_5 = l_Lean_CollectFVars_main(x_3, x_4); +x_6 = lean_ctor_get(x_5, 2); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_6); +x_10 = 1; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_13 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2(x_1, x_2, x_6, x_11, x_12); +lean_dec(x_6); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 1; +return x_14; +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___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; uint8_t x_9; lean_object* x_10; +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_9 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1(x_1, x_2, x_3, x_4, x_7, x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_box(x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2___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; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__1___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___spec__2(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1; +x_2 = lean_box(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_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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, size_t x_7, 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) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_8, x_7); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_9); +x_17 = lean_array_uget(x_6, x_8); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_18 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +x_22 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_20); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +x_23 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2; +lean_ctor_set(x_18, 0, x_23); +return x_18; +} +else +{ +size_t x_24; size_t x_25; +lean_free_object(x_18); +x_24 = 1; +x_25 = lean_usize_add(x_8, x_24); +lean_inc(x_5); +{ +size_t _tmp_7 = x_25; +lean_object* _tmp_8 = x_5; +lean_object* _tmp_13 = x_21; +x_8 = _tmp_7; +x_9 = _tmp_8; +x_14 = _tmp_13; +} +goto _start; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_18); +x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +x_30 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; +} +else +{ +size_t x_32; size_t x_33; +x_32 = 1; +x_33 = lean_usize_add(x_8, x_32); +lean_inc(x_5); +{ +size_t _tmp_7 = x_33; +lean_object* _tmp_8 = x_5; +lean_object* _tmp_13 = x_28; +x_8 = _tmp_7; +x_9 = _tmp_8; +x_14 = _tmp_13; +} +goto _start; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +x_35 = !lean_is_exclusive(x_18); +if (x_35 == 0) +{ +return x_18; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_18, 0); +x_37 = lean_ctor_get(x_18, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_18); +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; +} +} +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("semiOutParam", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("outParam", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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, size_t x_7, 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) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_8, x_7); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_27; +x_17 = lean_array_uget(x_6, x_8); +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_28 = lean_ctor_get(x_9, 1); +x_29 = lean_ctor_get(x_9, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_28, 2); +lean_inc(x_32); +x_33 = lean_nat_dec_lt(x_31, x_32); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_17); +lean_inc(x_4); +lean_ctor_set(x_9, 0, x_4); +x_34 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_34, 0, x_9); +x_18 = x_34; +x_19 = x_14; +goto block_26; +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_28); +if (x_35 == 0) +{ +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_28, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_28, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_28, 0); +lean_dec(x_38); +x_39 = lean_array_fget(x_30, x_31); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_31, x_40); +lean_dec(x_31); +lean_ctor_set(x_28, 1, x_41); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_42 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2; +x_46 = l_Lean_Expr_isAppOf(x_43, x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4; +x_48 = l_Lean_Expr_isAppOf(x_43, x_47); +lean_dec(x_43); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_39); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1; +lean_ctor_set(x_9, 0, x_50); +x_51 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_51, 0, x_9); +x_18 = x_51; +x_19 = x_44; +goto block_26; +} +else +{ +lean_object* x_52; +lean_inc(x_4); +lean_ctor_set(x_9, 0, x_4); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_9); +x_18 = x_52; +x_19 = x_44; +goto block_26; +} +} +else +{ +lean_object* x_53; +lean_dec(x_39); +lean_inc(x_4); +lean_ctor_set(x_9, 0, x_4); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_9); +x_18 = x_53; +x_19 = x_44; +goto block_26; +} +} +else +{ +lean_object* x_54; +lean_dec(x_43); +lean_dec(x_39); +lean_inc(x_4); +lean_ctor_set(x_9, 0, x_4); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_9); +x_18 = x_54; +x_19 = x_44; +goto block_26; +} +} +else +{ +uint8_t x_55; +lean_dec(x_28); +lean_dec(x_39); +lean_free_object(x_9); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_55 = !lean_is_exclusive(x_42); +if (x_55 == 0) +{ +return x_42; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_42, 0); +x_57 = lean_ctor_get(x_42, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_42); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_28); +x_59 = lean_array_fget(x_30, x_31); +x_60 = lean_unsigned_to_nat(1u); +x_61 = lean_nat_add(x_31, x_60); +lean_dec(x_31); +x_62 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_62, 0, x_30); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_62, 2, x_32); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_63 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(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_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2; +x_67 = l_Lean_Expr_isAppOf(x_64, x_66); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4; +x_69 = l_Lean_Expr_isAppOf(x_64, x_68); +lean_dec(x_64); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_59); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1; +lean_ctor_set(x_9, 1, x_62); +lean_ctor_set(x_9, 0, x_71); +x_72 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_72, 0, x_9); +x_18 = x_72; +x_19 = x_65; +goto block_26; +} +else +{ +lean_object* x_73; +lean_inc(x_4); +lean_ctor_set(x_9, 1, x_62); +lean_ctor_set(x_9, 0, x_4); +x_73 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_73, 0, x_9); +x_18 = x_73; +x_19 = x_65; +goto block_26; +} +} +else +{ +lean_object* x_74; +lean_dec(x_59); +lean_inc(x_4); +lean_ctor_set(x_9, 1, x_62); +lean_ctor_set(x_9, 0, x_4); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_9); +x_18 = x_74; +x_19 = x_65; +goto block_26; +} +} +else +{ +lean_object* x_75; +lean_dec(x_64); +lean_dec(x_59); +lean_inc(x_4); +lean_ctor_set(x_9, 1, x_62); +lean_ctor_set(x_9, 0, x_4); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_9); +x_18 = x_75; +x_19 = x_65; +goto block_26; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_62); +lean_dec(x_59); +lean_free_object(x_9); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_76 = lean_ctor_get(x_63, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_63, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_78 = x_63; +} else { + lean_dec_ref(x_63); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_80 = lean_ctor_get(x_9, 1); +lean_inc(x_80); +lean_dec(x_9); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_80, 2); +lean_inc(x_83); +x_84 = lean_nat_dec_lt(x_82, x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_17); +lean_inc(x_4); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_4); +lean_ctor_set(x_85, 1, x_80); +x_86 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_86, 0, x_85); +x_18 = x_86; +x_19 = x_14; +goto block_26; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + x_87 = x_80; +} else { + lean_dec_ref(x_80); + x_87 = lean_box(0); +} +x_88 = lean_array_fget(x_81, x_82); +x_89 = lean_unsigned_to_nat(1u); +x_90 = lean_nat_add(x_82, x_89); +lean_dec(x_82); +if (lean_is_scalar(x_87)) { + x_91 = lean_alloc_ctor(0, 3, 0); +} else { + x_91 = x_87; +} +lean_ctor_set(x_91, 0, x_81); +lean_ctor_set(x_91, 1, x_90); +lean_ctor_set(x_91, 2, x_83); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_92 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2; +x_96 = l_Lean_Expr_isAppOf(x_93, x_95); +if (x_96 == 0) +{ +lean_object* x_97; uint8_t x_98; +x_97 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4; +x_98 = l_Lean_Expr_isAppOf(x_93, x_97); +lean_dec(x_93); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_1, x_2, x_88); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_91); +x_102 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_18 = x_102; +x_19 = x_94; +goto block_26; +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_inc(x_4); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_4); +lean_ctor_set(x_103, 1, x_91); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_18 = x_104; +x_19 = x_94; +goto block_26; +} +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_88); +lean_inc(x_4); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_4); +lean_ctor_set(x_105, 1, x_91); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +x_18 = x_106; +x_19 = x_94; +goto block_26; +} +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_93); +lean_dec(x_88); +lean_inc(x_4); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_4); +lean_ctor_set(x_107, 1, x_91); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_18 = x_108; +x_19 = x_94; +goto block_26; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_91); +lean_dec(x_88); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_109 = lean_ctor_get(x_92, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_92, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_111 = x_92; +} else { + lean_dec_ref(x_92); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_110); +return x_112; +} +} +} +block_26: +{ +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(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 +{ +lean_object* x_22; size_t x_23; size_t x_24; +x_22 = lean_ctor_get(x_18, 0); +lean_inc(x_22); +lean_dec(x_18); +x_23 = 1; +x_24 = lean_usize_add(x_8, x_23); +x_8 = x_24; +x_9 = x_22; +x_14 = x_19; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 1; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; lean_object* x_19; +x_14 = lean_array_get_size(x_1); +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_toSubarray___rarg(x_1, x_15, x_14); +lean_inc(x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_array_size(x_7); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_19 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2(x_3, x_4, x_5, x_2, x_7, x_7, x_18, x_6, x_17, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(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; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1; +x_24 = lean_box(0); +x_25 = lean_apply_6(x_23, x_24, x_9, x_10, x_11, x_12, x_22); +return x_25; +} +else +{ +uint8_t x_26; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_19, 0); +lean_dec(x_27); +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_28); +return x_19; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_dec(x_19); +x_30 = lean_ctor_get(x_21, 0); +lean_inc(x_30); +lean_dec(x_21); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) +{ +return x_19; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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) { +_start: +{ +lean_object* x_15; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_15 = lean_infer_type(x_1, 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; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +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(x_15); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_18); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_box_usize(x_8); +x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___boxed), 13, 6); +lean_closure_set(x_22, 0, x_3); +lean_closure_set(x_22, 1, x_4); +lean_closure_set(x_22, 2, x_5); +lean_closure_set(x_22, 3, x_6); +lean_closure_set(x_22, 4, x_7); +lean_closure_set(x_22, 5, x_21); +x_23 = 0; +x_24 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_16, x_20, x_22, x_23, x_10, x_11, x_12, x_13, x_17); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_25 = !lean_is_exclusive(x_15); +if (x_25 == 0) +{ +return x_15; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +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; +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(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_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +if (lean_obj_tag(x_5) == 5) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_5, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +lean_dec(x_5); +x_15 = lean_array_set(x_6, x_7, x_14); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_7, x_16); +lean_dec(x_7); +x_5 = x_13; +x_6 = x_15; +x_7 = x_17; +goto _start; +} +else +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_7); +x_19 = lean_box(0); +x_20 = lean_box(0); +x_21 = lean_array_size(x_3); +x_22 = 0; +x_23 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_24 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1(x_1, x_2, x_3, x_19, x_23, x_3, x_21, x_22, x_23, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +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_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_box(0); +x_29 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3(x_5, x_4, x_6, x_20, x_1, x_2, x_19, x_22, x_28, x_8, x_9, x_10, x_11, x_27); +return x_29; +} +else +{ +uint8_t x_30; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_24); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_24, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_32); +return x_24; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_dec(x_24); +x_34 = lean_ctor_get(x_26, 0); +lean_inc(x_34); +lean_dec(x_26); +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; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_24); +if (x_36 == 0) +{ +return x_24; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_24, 0); +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_24); +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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +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_unsigned_to_nat(0u); +x_11 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_4, x_10); +x_12 = l_Lean_Meta_Grind_ppPattern___closed__5; +lean_inc(x_11); +x_13 = lean_mk_array(x_11, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_11, x_14); +lean_dec(x_11); +lean_inc(x_4); +x_16 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3(x_1, x_2, x_3, x_4, x_4, x_13, x_15, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(lean_object* x_1, lean_object* x_2, 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; lean_object* x_11; +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___lambda__1___boxed), 9, 2); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_2); +x_10 = 0; +x_11 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_3, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___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: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; lean_object* x_15; +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; lean_object* x_16; +x_15 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_16 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_15, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +lean_dec(x_2); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_instInhabitedMetaM___boxed), 5, 1); +lean_closure_set(x_1, 0, lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1; +x_8 = lean_panic_fn(x_7, x_1); +x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_inc(x_1); +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 2); +x_5 = l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2(x_1, x_4); +lean_inc(x_3); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_3); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_Lean_Expr_fvarId_x21(x_5); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_Lean_Expr_fvarId_x21(x_9); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_RBTree_ofList___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__4(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +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_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Lean_RBTree_ofList___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__4(x_4); +x_6 = lean_box(0); +x_7 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_5, x_3, x_6); +return x_7; +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__5(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_4) == 0) +{ +lean_object* x_6; +x_6 = l_List_reverse___rarg(x_5); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_4); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +x_10 = lean_nat_sub(x_1, x_8); +lean_dec(x_8); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_10, x_11); +lean_dec(x_10); +x_13 = lean_nat_dec_lt(x_12, x_3); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_12); +x_14 = l_Lean_instInhabitedExpr; +x_15 = l_outOfBounds___rarg(x_14); +x_16 = l_Lean_Expr_fvarId_x21(x_15); +lean_dec(x_15); +lean_ctor_set(x_4, 1, x_5); +lean_ctor_set(x_4, 0, x_16); +{ +lean_object* _tmp_3 = x_9; +lean_object* _tmp_4 = x_4; +x_4 = _tmp_3; +x_5 = _tmp_4; +} +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_array_fget(x_2, x_12); +lean_dec(x_12); +x_19 = l_Lean_Expr_fvarId_x21(x_18); +lean_dec(x_18); +lean_ctor_set(x_4, 1, x_5); +lean_ctor_set(x_4, 0, x_19); +{ +lean_object* _tmp_3 = x_9; +lean_object* _tmp_4 = x_4; +x_4 = _tmp_3; +x_5 = _tmp_4; +} +goto _start; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_4, 0); +x_22 = lean_ctor_get(x_4, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_4); +x_23 = lean_nat_sub(x_1, x_21); +lean_dec(x_21); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_23, x_24); +lean_dec(x_23); +x_26 = lean_nat_dec_lt(x_25, x_3); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_25); +x_27 = l_Lean_instInhabitedExpr; +x_28 = l_outOfBounds___rarg(x_27); +x_29 = l_Lean_Expr_fvarId_x21(x_28); +lean_dec(x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_5); +x_4 = x_22; +x_5 = x_30; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_array_fget(x_2, x_25); +lean_dec(x_25); +x_33 = l_Lean_Expr_fvarId_x21(x_32); +lean_dec(x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_5); +x_4 = x_22; +x_5 = x_34; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_eq(x_4, x_5); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_8 = lean_array_uget(x_3, x_4); +x_9 = 1; +x_10 = lean_usize_add(x_4, x_9); +x_11 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_dec(x_8); +x_4 = x_10; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_6, x_8, x_13); +x_4 = x_10; +x_6 = x_14; +goto _start; +} +} +else +{ +return x_6; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7(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_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = lean_usize_add(x_3, x_8); +x_10 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_1, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_7); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +x_12 = lean_box(0); +x_13 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_5, x_7, x_12); +x_3 = x_9; +x_5 = x_13; +goto _start; +} +} +else +{ +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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, lean_object* x_14) { +_start: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_7, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_dec(x_7); +lean_inc(x_10); +x_18 = l_Lean_FVarId_getType(x_16, x_10, x_11, x_12, x_13, 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; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_box(0); +lean_inc(x_1); +x_22 = lean_array_mk(x_1); +x_23 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_22); +x_25 = l_Lean_CollectFVars_main(x_19, x_24); +x_26 = lean_ctor_get(x_25, 2); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_array_get_size(x_26); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_nat_dec_lt(x_28, x_27); +if (x_29 == 0) +{ +lean_dec(x_27); +lean_dec(x_26); +x_7 = x_17; +x_9 = lean_box(0); +x_14 = x_20; +goto _start; +} +else +{ +uint8_t x_31; +x_31 = lean_nat_dec_le(x_27, x_27); +if (x_31 == 0) +{ +lean_dec(x_27); +lean_dec(x_26); +x_7 = x_17; +x_9 = lean_box(0); +x_14 = x_20; +goto _start; +} +else +{ +size_t x_33; size_t x_34; lean_object* x_35; +x_33 = 0; +x_34 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_35 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7(x_3, x_26, x_33, x_34, x_8); +lean_dec(x_26); +x_7 = x_17; +x_8 = x_35; +x_9 = lean_box(0); +x_14 = x_20; +goto _start; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_18); +if (x_37 == 0) +{ +return x_18; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_18, 0); +x_39 = lean_ctor_get(x_18, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_18); +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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__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, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_14; +lean_dec(x_9); +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_6, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +lean_dec(x_6); +lean_inc(x_9); +x_17 = l_Lean_FVarId_getType(x_15, x_9, x_10, x_11, x_12, 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; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_box(0); +lean_inc(x_1); +x_21 = lean_array_mk(x_1); +x_22 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +lean_ctor_set(x_23, 2, x_21); +x_24 = l_Lean_CollectFVars_main(x_18, x_23); +x_25 = lean_ctor_get(x_24, 2); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_array_get_size(x_25); +x_27 = lean_unsigned_to_nat(0u); +x_28 = lean_nat_dec_lt(x_27, x_26); +if (x_28 == 0) +{ +lean_dec(x_26); +lean_dec(x_25); +x_6 = x_16; +x_8 = lean_box(0); +x_13 = x_19; +goto _start; +} +else +{ +uint8_t x_30; +x_30 = lean_nat_dec_le(x_26, x_26); +if (x_30 == 0) +{ +lean_dec(x_26); +lean_dec(x_25); +x_6 = x_16; +x_8 = lean_box(0); +x_13 = x_19; +goto _start; +} +else +{ +size_t x_32; size_t x_33; lean_object* x_34; +x_32 = 0; +x_33 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_34 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7(x_2, x_25, x_32, x_33, x_7); +lean_dec(x_25); +x_6 = x_16; +x_7 = x_34; +x_8 = lean_box(0); +x_13 = x_19; +goto _start; +} +} +} +else +{ +uint8_t x_36; +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_17); +if (x_36 == 0) +{ +return x_17; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_17, 0); +x_38 = lean_ctor_get(x_17, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_17); +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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_eq(x_4, x_5); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_8 = lean_array_uget(x_3, x_4); +x_9 = 1; +x_10 = lean_usize_add(x_4, x_9); +x_11 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_dec(x_8); +x_4 = x_10; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_6, x_8, x_13); +x_4 = x_10; +x_6 = x_14; +goto _start; +} +} +else +{ +return x_6; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(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_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = lean_usize_add(x_3, x_8); +x_10 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_1, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_7); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +x_12 = lean_box(0); +x_13 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_5, x_7, x_12); +x_3 = x_9; +x_5 = x_13; +goto _start; +} +} +else +{ +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12(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: +{ +uint8_t x_7; +x_7 = lean_usize_dec_eq(x_4, x_5); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_8 = lean_array_uget(x_3, x_4); +x_9 = 1; +x_10 = lean_usize_add(x_4, x_9); +x_11 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_dec(x_8); +x_4 = x_10; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_6, x_8, x_13); +x_4 = x_10; +x_6 = x_14; +goto _start; +} +} +else +{ +return x_6; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(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_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_array_uget(x_2, x_3); +x_8 = 1; +x_9 = lean_usize_add(x_3, x_8); +x_10 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_1, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_7); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +x_12 = lean_box(0); +x_13 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_5, x_7, x_12); +x_3 = x_9; +x_5 = x_13; +goto _start; +} +} +else +{ +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, 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) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_8, x_7); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_25; +x_17 = lean_array_uget(x_6, x_8); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_9, 1); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_9, 0); +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +x_31 = l_Lean_Expr_fvarId_x21(x_17); +x_32 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_30, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_33 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +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(x_33); +x_36 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_28, x_31); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_34); +x_37 = l_Lean_Meta_isProp(x_34, x_10, x_11, x_12, x_13, x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +lean_inc(x_10); +lean_inc(x_31); +x_41 = l_Lean_FVarId_getDecl(x_31, x_10, x_11, x_12, x_13, x_40); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_LocalDecl_binderInfo(x_42); +lean_dec(x_42); +x_45 = lean_box(x_44); +if (lean_obj_tag(x_45) == 3) +{ +lean_object* x_46; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_34); +lean_inc(x_28); +lean_inc(x_4); +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_4, x_28, x_34, x_10, x_11, x_12, x_13, x_43); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_unbox(x_47); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_34); +lean_dec(x_31); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_dec(x_46); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_9); +x_18 = x_50; +x_19 = x_49; +goto block_24; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; +lean_dec(x_29); +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_dec(x_46); +x_52 = lean_box(0); +lean_inc(x_31); +x_53 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_28, x_31, x_52); +x_54 = lean_box(0); +lean_inc(x_2); +x_55 = lean_array_mk(x_2); +x_56 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_57 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_54); +lean_ctor_set(x_57, 2, x_55); +x_58 = l_Lean_CollectFVars_main(x_34, x_57); +x_59 = lean_ctor_get(x_58, 2); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_array_get_size(x_59); +x_61 = lean_unsigned_to_nat(0u); +x_62 = lean_nat_dec_lt(x_61, x_60); +x_63 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_30, x_31, x_52); +if (x_62 == 0) +{ +uint8_t x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_60); +lean_dec(x_59); +x_64 = 1; +x_65 = lean_box(x_64); +lean_ctor_set(x_26, 1, x_63); +lean_ctor_set(x_26, 0, x_65); +lean_ctor_set(x_9, 0, x_53); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_9); +x_18 = x_66; +x_19 = x_51; +goto block_24; +} +else +{ +uint8_t x_67; +x_67 = lean_nat_dec_le(x_60, x_60); +if (x_67 == 0) +{ +uint8_t x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_60); +lean_dec(x_59); +x_68 = 1; +x_69 = lean_box(x_68); +lean_ctor_set(x_26, 1, x_63); +lean_ctor_set(x_26, 0, x_69); +lean_ctor_set(x_9, 0, x_53); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_9); +x_18 = x_70; +x_19 = x_51; +goto block_24; +} +else +{ +size_t x_71; size_t x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; +x_71 = 0; +x_72 = lean_usize_of_nat(x_60); +lean_dec(x_60); +x_73 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_4, x_59, x_71, x_72, x_53); +lean_dec(x_59); +x_74 = 1; +x_75 = lean_box(x_74); +lean_ctor_set(x_26, 1, x_63); +lean_ctor_set(x_26, 0, x_75); +lean_ctor_set(x_9, 0, x_73); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_9); +x_18 = x_76; +x_19 = x_51; +goto block_24; +} +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_34); +lean_dec(x_31); +lean_free_object(x_26); +lean_dec(x_30); +lean_dec(x_29); +lean_free_object(x_9); +lean_dec(x_28); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_77 = !lean_is_exclusive(x_46); +if (x_77 == 0) +{ +return x_46; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_46, 0); +x_79 = lean_ctor_get(x_46, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_46); +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_dec(x_45); +lean_dec(x_34); +lean_dec(x_31); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_9); +x_18 = x_81; +x_19 = x_43; +goto block_24; +} +} +else +{ +uint8_t x_82; +lean_dec(x_34); +lean_dec(x_31); +lean_free_object(x_26); +lean_dec(x_30); +lean_dec(x_29); +lean_free_object(x_9); +lean_dec(x_28); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_82 = !lean_is_exclusive(x_41); +if (x_82 == 0) +{ +return x_41; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_41, 0); +x_84 = lean_ctor_get(x_41, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_41); +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_86; uint8_t x_87; +x_86 = lean_ctor_get(x_37, 1); +lean_inc(x_86); +lean_dec(x_37); +x_87 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_4, x_28, x_34); +if (x_87 == 0) +{ +lean_object* x_88; +lean_dec(x_31); +x_88 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_88, 0, x_9); +x_18 = x_88; +x_19 = x_86; +goto block_24; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_29); +x_89 = lean_box(0); +lean_inc(x_31); +x_90 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_28, x_31, x_89); +x_91 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_30, x_31, x_89); +x_92 = 1; +x_93 = lean_box(x_92); +lean_ctor_set(x_26, 1, x_91); +lean_ctor_set(x_26, 0, x_93); +lean_ctor_set(x_9, 0, x_90); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_9); +x_18 = x_94; +x_19 = x_86; +goto block_24; +} +} +} +else +{ +uint8_t x_95; +lean_dec(x_34); +lean_dec(x_31); +lean_free_object(x_26); +lean_dec(x_30); +lean_dec(x_29); +lean_free_object(x_9); +lean_dec(x_28); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_95 = !lean_is_exclusive(x_37); +if (x_95 == 0) +{ +return x_37; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_37, 0); +x_97 = lean_ctor_get(x_37, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_37); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +else +{ +uint8_t x_99; +lean_dec(x_29); +x_99 = !lean_is_exclusive(x_36); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; +x_100 = lean_ctor_get(x_36, 0); +lean_dec(x_100); +x_101 = lean_box(0); +lean_inc(x_2); +x_102 = lean_array_mk(x_2); +x_103 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_104 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_101); +lean_ctor_set(x_104, 2, x_102); +x_105 = l_Lean_CollectFVars_main(x_34, x_104); +x_106 = lean_ctor_get(x_105, 2); +lean_inc(x_106); +lean_dec(x_105); +x_107 = lean_array_get_size(x_106); +x_108 = lean_unsigned_to_nat(0u); +x_109 = lean_nat_dec_lt(x_108, x_107); +x_110 = lean_box(0); +x_111 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_30, x_31, x_110); +if (x_109 == 0) +{ +uint8_t x_112; lean_object* x_113; +lean_dec(x_107); +lean_dec(x_106); +x_112 = 1; +x_113 = lean_box(x_112); +lean_ctor_set(x_26, 1, x_111); +lean_ctor_set(x_26, 0, x_113); +lean_ctor_set(x_36, 0, x_9); +x_18 = x_36; +x_19 = x_35; +goto block_24; +} +else +{ +uint8_t x_114; +x_114 = lean_nat_dec_le(x_107, x_107); +if (x_114 == 0) +{ +uint8_t x_115; lean_object* x_116; +lean_dec(x_107); +lean_dec(x_106); +x_115 = 1; +x_116 = lean_box(x_115); +lean_ctor_set(x_26, 1, x_111); +lean_ctor_set(x_26, 0, x_116); +lean_ctor_set(x_36, 0, x_9); +x_18 = x_36; +x_19 = x_35; +goto block_24; +} +else +{ +size_t x_117; size_t x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; +x_117 = 0; +x_118 = lean_usize_of_nat(x_107); +lean_dec(x_107); +x_119 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_4, x_106, x_117, x_118, x_28); +lean_dec(x_106); +x_120 = 1; +x_121 = lean_box(x_120); +lean_ctor_set(x_26, 1, x_111); +lean_ctor_set(x_26, 0, x_121); +lean_ctor_set(x_9, 0, x_119); +lean_ctor_set(x_36, 0, x_9); +x_18 = x_36; +x_19 = x_35; +goto block_24; +} +} +} +else +{ +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; uint8_t x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_36); +x_122 = lean_box(0); +lean_inc(x_2); +x_123 = lean_array_mk(x_2); +x_124 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_125 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_122); +lean_ctor_set(x_125, 2, x_123); +x_126 = l_Lean_CollectFVars_main(x_34, x_125); +x_127 = lean_ctor_get(x_126, 2); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_array_get_size(x_127); +x_129 = lean_unsigned_to_nat(0u); +x_130 = lean_nat_dec_lt(x_129, x_128); +x_131 = lean_box(0); +x_132 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_30, x_31, x_131); +if (x_130 == 0) +{ +uint8_t x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_128); +lean_dec(x_127); +x_133 = 1; +x_134 = lean_box(x_133); +lean_ctor_set(x_26, 1, x_132); +lean_ctor_set(x_26, 0, x_134); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_9); +x_18 = x_135; +x_19 = x_35; +goto block_24; +} +else +{ +uint8_t x_136; +x_136 = lean_nat_dec_le(x_128, x_128); +if (x_136 == 0) +{ +uint8_t x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_128); +lean_dec(x_127); +x_137 = 1; +x_138 = lean_box(x_137); +lean_ctor_set(x_26, 1, x_132); +lean_ctor_set(x_26, 0, x_138); +x_139 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_139, 0, x_9); +x_18 = x_139; +x_19 = x_35; +goto block_24; +} +else +{ +size_t x_140; size_t x_141; lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; +x_140 = 0; +x_141 = lean_usize_of_nat(x_128); +lean_dec(x_128); +x_142 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_4, x_127, x_140, x_141, x_28); +lean_dec(x_127); +x_143 = 1; +x_144 = lean_box(x_143); +lean_ctor_set(x_26, 1, x_132); +lean_ctor_set(x_26, 0, x_144); +lean_ctor_set(x_9, 0, x_142); +x_145 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_145, 0, x_9); +x_18 = x_145; +x_19 = x_35; +goto block_24; +} +} +} +} +} +else +{ +uint8_t x_146; +lean_dec(x_31); +lean_free_object(x_26); +lean_dec(x_30); +lean_dec(x_29); +lean_free_object(x_9); +lean_dec(x_28); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_146 = !lean_is_exclusive(x_33); +if (x_146 == 0) +{ +return x_33; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_33, 0); +x_148 = lean_ctor_get(x_33, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_33); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +return x_149; +} +} +} +else +{ +uint8_t x_150; +lean_dec(x_31); +lean_dec(x_17); +x_150 = !lean_is_exclusive(x_32); +if (x_150 == 0) +{ +lean_object* x_151; +x_151 = lean_ctor_get(x_32, 0); +lean_dec(x_151); +lean_ctor_set(x_32, 0, x_9); +x_18 = x_32; +x_19 = x_14; +goto block_24; +} +else +{ +lean_object* x_152; +lean_dec(x_32); +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_9); +x_18 = x_152; +x_19 = x_14; +goto block_24; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_153 = lean_ctor_get(x_9, 0); +x_154 = lean_ctor_get(x_26, 0); +x_155 = lean_ctor_get(x_26, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_26); +x_156 = l_Lean_Expr_fvarId_x21(x_17); +x_157 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_155, x_156); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_158 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +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(x_158); +x_161 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_153, x_156); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_159); +x_162 = l_Lean_Meta_isProp(x_159, x_10, x_11, x_12, x_13, x_160); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; uint8_t x_164; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_unbox(x_163); +lean_dec(x_163); +if (x_164 == 0) +{ +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_162, 1); +lean_inc(x_165); +lean_dec(x_162); +lean_inc(x_10); +lean_inc(x_156); +x_166 = l_Lean_FVarId_getDecl(x_156, x_10, x_11, x_12, x_13, x_165); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = l_Lean_LocalDecl_binderInfo(x_167); +lean_dec(x_167); +x_170 = lean_box(x_169); +if (lean_obj_tag(x_170) == 3) +{ +lean_object* x_171; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_159); +lean_inc(x_153); +lean_inc(x_4); +x_171 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_4, x_153, x_159, x_10, x_11, x_12, x_13, x_168); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; uint8_t x_173; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_unbox(x_172); +lean_dec(x_172); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_159); +lean_dec(x_156); +x_174 = lean_ctor_get(x_171, 1); +lean_inc(x_174); +lean_dec(x_171); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_154); +lean_ctor_set(x_175, 1, x_155); +lean_ctor_set(x_9, 1, x_175); +x_176 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_176, 0, x_9); +x_18 = x_176; +x_19 = x_174; +goto block_24; +} +else +{ +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; uint8_t x_188; lean_object* x_189; +lean_dec(x_154); +x_177 = lean_ctor_get(x_171, 1); +lean_inc(x_177); +lean_dec(x_171); +x_178 = lean_box(0); +lean_inc(x_156); +x_179 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_153, x_156, x_178); +x_180 = lean_box(0); +lean_inc(x_2); +x_181 = lean_array_mk(x_2); +x_182 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_183 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_180); +lean_ctor_set(x_183, 2, x_181); +x_184 = l_Lean_CollectFVars_main(x_159, x_183); +x_185 = lean_ctor_get(x_184, 2); +lean_inc(x_185); +lean_dec(x_184); +x_186 = lean_array_get_size(x_185); +x_187 = lean_unsigned_to_nat(0u); +x_188 = lean_nat_dec_lt(x_187, x_186); +x_189 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_155, x_156, x_178); +if (x_188 == 0) +{ +uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_186); +lean_dec(x_185); +x_190 = 1; +x_191 = lean_box(x_190); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_189); +lean_ctor_set(x_9, 1, x_192); +lean_ctor_set(x_9, 0, x_179); +x_193 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_193, 0, x_9); +x_18 = x_193; +x_19 = x_177; +goto block_24; +} +else +{ +uint8_t x_194; +x_194 = lean_nat_dec_le(x_186, x_186); +if (x_194 == 0) +{ +uint8_t x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_186); +lean_dec(x_185); +x_195 = 1; +x_196 = lean_box(x_195); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_189); +lean_ctor_set(x_9, 1, x_197); +lean_ctor_set(x_9, 0, x_179); +x_198 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_198, 0, x_9); +x_18 = x_198; +x_19 = x_177; +goto block_24; +} +else +{ +size_t x_199; size_t x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_199 = 0; +x_200 = lean_usize_of_nat(x_186); +lean_dec(x_186); +x_201 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_4, x_185, x_199, x_200, x_179); +lean_dec(x_185); +x_202 = 1; +x_203 = lean_box(x_202); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_189); +lean_ctor_set(x_9, 1, x_204); +lean_ctor_set(x_9, 0, x_201); +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_9); +x_18 = x_205; +x_19 = x_177; +goto block_24; +} +} +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_159); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_free_object(x_9); +lean_dec(x_153); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_206 = lean_ctor_get(x_171, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_171, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_208 = x_171; +} else { + lean_dec_ref(x_171); + 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; +} +} +else +{ +lean_object* x_210; lean_object* x_211; +lean_dec(x_170); +lean_dec(x_159); +lean_dec(x_156); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_154); +lean_ctor_set(x_210, 1, x_155); +lean_ctor_set(x_9, 1, x_210); +x_211 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_211, 0, x_9); +x_18 = x_211; +x_19 = x_168; +goto block_24; +} +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_159); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_free_object(x_9); +lean_dec(x_153); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_212 = lean_ctor_get(x_166, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_166, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + x_214 = x_166; +} else { + lean_dec_ref(x_166); + x_214 = lean_box(0); +} +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); +} else { + x_215 = x_214; +} +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +return x_215; +} +} +else +{ +lean_object* x_216; uint8_t x_217; +x_216 = lean_ctor_get(x_162, 1); +lean_inc(x_216); +lean_dec(x_162); +x_217 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_4, x_153, x_159); +if (x_217 == 0) +{ +lean_object* x_218; lean_object* x_219; +lean_dec(x_156); +x_218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_218, 0, x_154); +lean_ctor_set(x_218, 1, x_155); +lean_ctor_set(x_9, 1, x_218); +x_219 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_219, 0, x_9); +x_18 = x_219; +x_19 = x_216; +goto block_24; +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_154); +x_220 = lean_box(0); +lean_inc(x_156); +x_221 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_153, x_156, x_220); +x_222 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_155, x_156, x_220); +x_223 = 1; +x_224 = lean_box(x_223); +x_225 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_222); +lean_ctor_set(x_9, 1, x_225); +lean_ctor_set(x_9, 0, x_221); +x_226 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_226, 0, x_9); +x_18 = x_226; +x_19 = x_216; +goto block_24; +} +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_159); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_free_object(x_9); +lean_dec(x_153); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_227 = lean_ctor_get(x_162, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_162, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_229 = x_162; +} else { + lean_dec_ref(x_162); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_154); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + x_231 = x_161; +} else { + lean_dec_ref(x_161); + x_231 = lean_box(0); +} +x_232 = lean_box(0); +lean_inc(x_2); +x_233 = lean_array_mk(x_2); +x_234 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_235 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_232); +lean_ctor_set(x_235, 2, x_233); +x_236 = l_Lean_CollectFVars_main(x_159, x_235); +x_237 = lean_ctor_get(x_236, 2); +lean_inc(x_237); +lean_dec(x_236); +x_238 = lean_array_get_size(x_237); +x_239 = lean_unsigned_to_nat(0u); +x_240 = lean_nat_dec_lt(x_239, x_238); +x_241 = lean_box(0); +x_242 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_155, x_156, x_241); +if (x_240 == 0) +{ +uint8_t x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_238); +lean_dec(x_237); +x_243 = 1; +x_244 = lean_box(x_243); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_242); +lean_ctor_set(x_9, 1, x_245); +if (lean_is_scalar(x_231)) { + x_246 = lean_alloc_ctor(1, 1, 0); +} else { + x_246 = x_231; +} +lean_ctor_set(x_246, 0, x_9); +x_18 = x_246; +x_19 = x_160; +goto block_24; +} +else +{ +uint8_t x_247; +x_247 = lean_nat_dec_le(x_238, x_238); +if (x_247 == 0) +{ +uint8_t x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_238); +lean_dec(x_237); +x_248 = 1; +x_249 = lean_box(x_248); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_242); +lean_ctor_set(x_9, 1, x_250); +if (lean_is_scalar(x_231)) { + x_251 = lean_alloc_ctor(1, 1, 0); +} else { + x_251 = x_231; +} +lean_ctor_set(x_251, 0, x_9); +x_18 = x_251; +x_19 = x_160; +goto block_24; +} +else +{ +size_t x_252; size_t x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_252 = 0; +x_253 = lean_usize_of_nat(x_238); +lean_dec(x_238); +x_254 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_4, x_237, x_252, x_253, x_153); +lean_dec(x_237); +x_255 = 1; +x_256 = lean_box(x_255); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_242); +lean_ctor_set(x_9, 1, x_257); +lean_ctor_set(x_9, 0, x_254); +if (lean_is_scalar(x_231)) { + x_258 = lean_alloc_ctor(1, 1, 0); +} else { + x_258 = x_231; +} +lean_ctor_set(x_258, 0, x_9); +x_18 = x_258; +x_19 = x_160; +goto block_24; +} +} +} +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_free_object(x_9); +lean_dec(x_153); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_259 = lean_ctor_get(x_158, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_158, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_261 = x_158; +} else { + lean_dec_ref(x_158); + x_261 = lean_box(0); +} +if (lean_is_scalar(x_261)) { + x_262 = lean_alloc_ctor(1, 2, 0); +} else { + x_262 = x_261; +} +lean_ctor_set(x_262, 0, x_259); +lean_ctor_set(x_262, 1, x_260); +return x_262; +} +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_156); +lean_dec(x_17); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + x_263 = x_157; +} else { + lean_dec_ref(x_157); + x_263 = lean_box(0); +} +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_154); +lean_ctor_set(x_264, 1, x_155); +lean_ctor_set(x_9, 1, x_264); +if (lean_is_scalar(x_263)) { + x_265 = lean_alloc_ctor(1, 1, 0); +} else { + x_265 = x_263; +} +lean_ctor_set(x_265, 0, x_9); +x_18 = x_265; +x_19 = x_14; +goto block_24; +} +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_266 = lean_ctor_get(x_9, 1); +x_267 = lean_ctor_get(x_9, 0); +lean_inc(x_266); +lean_inc(x_267); +lean_dec(x_9); +x_268 = lean_ctor_get(x_266, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_266, 1); +lean_inc(x_269); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_270 = x_266; +} else { + lean_dec_ref(x_266); + x_270 = lean_box(0); +} +x_271 = l_Lean_Expr_fvarId_x21(x_17); +x_272 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_269, x_271); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_273 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +lean_dec(x_273); +x_276 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_267, x_271); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_274); +x_277 = l_Lean_Meta_isProp(x_274, x_10, x_11, x_12, x_13, x_275); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; uint8_t x_279; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_unbox(x_278); +lean_dec(x_278); +if (x_279 == 0) +{ +lean_object* x_280; lean_object* x_281; +x_280 = lean_ctor_get(x_277, 1); +lean_inc(x_280); +lean_dec(x_277); +lean_inc(x_10); +lean_inc(x_271); +x_281 = l_Lean_FVarId_getDecl(x_271, x_10, x_11, x_12, x_13, x_280); +if (lean_obj_tag(x_281) == 0) +{ +lean_object* x_282; lean_object* x_283; uint8_t x_284; lean_object* x_285; +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +x_284 = l_Lean_LocalDecl_binderInfo(x_282); +lean_dec(x_282); +x_285 = lean_box(x_284); +if (lean_obj_tag(x_285) == 3) +{ +lean_object* x_286; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_274); +lean_inc(x_267); +lean_inc(x_4); +x_286 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_4, x_267, x_274, x_10, x_11, x_12, x_13, x_283); +if (lean_obj_tag(x_286) == 0) +{ +lean_object* x_287; uint8_t x_288; +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_unbox(x_287); +lean_dec(x_287); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +lean_dec(x_274); +lean_dec(x_271); +x_289 = lean_ctor_get(x_286, 1); +lean_inc(x_289); +lean_dec(x_286); +if (lean_is_scalar(x_270)) { + x_290 = lean_alloc_ctor(0, 2, 0); +} else { + x_290 = x_270; +} +lean_ctor_set(x_290, 0, x_268); +lean_ctor_set(x_290, 1, x_269); +x_291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_291, 0, x_267); +lean_ctor_set(x_291, 1, x_290); +x_292 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_292, 0, x_291); +x_18 = x_292; +x_19 = x_289; +goto block_24; +} +else +{ +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_304; lean_object* x_305; +lean_dec(x_268); +x_293 = lean_ctor_get(x_286, 1); +lean_inc(x_293); +lean_dec(x_286); +x_294 = lean_box(0); +lean_inc(x_271); +x_295 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_267, x_271, x_294); +x_296 = lean_box(0); +lean_inc(x_2); +x_297 = lean_array_mk(x_2); +x_298 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_299 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_296); +lean_ctor_set(x_299, 2, x_297); +x_300 = l_Lean_CollectFVars_main(x_274, x_299); +x_301 = lean_ctor_get(x_300, 2); +lean_inc(x_301); +lean_dec(x_300); +x_302 = lean_array_get_size(x_301); +x_303 = lean_unsigned_to_nat(0u); +x_304 = lean_nat_dec_lt(x_303, x_302); +x_305 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_269, x_271, x_294); +if (x_304 == 0) +{ +uint8_t x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +lean_dec(x_302); +lean_dec(x_301); +x_306 = 1; +x_307 = lean_box(x_306); +if (lean_is_scalar(x_270)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_270; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_305); +x_309 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_309, 0, x_295); +lean_ctor_set(x_309, 1, x_308); +x_310 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_310, 0, x_309); +x_18 = x_310; +x_19 = x_293; +goto block_24; +} +else +{ +uint8_t x_311; +x_311 = lean_nat_dec_le(x_302, x_302); +if (x_311 == 0) +{ +uint8_t x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +lean_dec(x_302); +lean_dec(x_301); +x_312 = 1; +x_313 = lean_box(x_312); +if (lean_is_scalar(x_270)) { + x_314 = lean_alloc_ctor(0, 2, 0); +} else { + x_314 = x_270; +} +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_314, 1, x_305); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_295); +lean_ctor_set(x_315, 1, x_314); +x_316 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_316, 0, x_315); +x_18 = x_316; +x_19 = x_293; +goto block_24; +} +else +{ +size_t x_317; size_t x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_317 = 0; +x_318 = lean_usize_of_nat(x_302); +lean_dec(x_302); +x_319 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_4, x_301, x_317, x_318, x_295); +lean_dec(x_301); +x_320 = 1; +x_321 = lean_box(x_320); +if (lean_is_scalar(x_270)) { + x_322 = lean_alloc_ctor(0, 2, 0); +} else { + x_322 = x_270; +} +lean_ctor_set(x_322, 0, x_321); +lean_ctor_set(x_322, 1, x_305); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_319); +lean_ctor_set(x_323, 1, x_322); +x_324 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_324, 0, x_323); +x_18 = x_324; +x_19 = x_293; +goto block_24; +} +} +} +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +lean_dec(x_274); +lean_dec(x_271); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_325 = lean_ctor_get(x_286, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_286, 1); +lean_inc(x_326); +if (lean_is_exclusive(x_286)) { + lean_ctor_release(x_286, 0); + lean_ctor_release(x_286, 1); + x_327 = x_286; +} else { + lean_dec_ref(x_286); + x_327 = lean_box(0); +} +if (lean_is_scalar(x_327)) { + x_328 = lean_alloc_ctor(1, 2, 0); +} else { + x_328 = x_327; +} +lean_ctor_set(x_328, 0, x_325); +lean_ctor_set(x_328, 1, x_326); +return x_328; +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_285); +lean_dec(x_274); +lean_dec(x_271); +if (lean_is_scalar(x_270)) { + x_329 = lean_alloc_ctor(0, 2, 0); +} else { + x_329 = x_270; +} +lean_ctor_set(x_329, 0, x_268); +lean_ctor_set(x_329, 1, x_269); +x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_330, 0, x_267); +lean_ctor_set(x_330, 1, x_329); +x_331 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_331, 0, x_330); +x_18 = x_331; +x_19 = x_283; +goto block_24; +} +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +lean_dec(x_274); +lean_dec(x_271); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_332 = lean_ctor_get(x_281, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_281, 1); +lean_inc(x_333); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + x_334 = x_281; +} else { + lean_dec_ref(x_281); + x_334 = lean_box(0); +} +if (lean_is_scalar(x_334)) { + x_335 = lean_alloc_ctor(1, 2, 0); +} else { + x_335 = x_334; +} +lean_ctor_set(x_335, 0, x_332); +lean_ctor_set(x_335, 1, x_333); +return x_335; +} +} +else +{ +lean_object* x_336; uint8_t x_337; +x_336 = lean_ctor_get(x_277, 1); +lean_inc(x_336); +lean_dec(x_277); +x_337 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_4, x_267, x_274); +if (x_337 == 0) +{ +lean_object* x_338; lean_object* x_339; lean_object* x_340; +lean_dec(x_271); +if (lean_is_scalar(x_270)) { + x_338 = lean_alloc_ctor(0, 2, 0); +} else { + x_338 = x_270; +} +lean_ctor_set(x_338, 0, x_268); +lean_ctor_set(x_338, 1, x_269); +x_339 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_339, 0, x_267); +lean_ctor_set(x_339, 1, x_338); +x_340 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_340, 0, x_339); +x_18 = x_340; +x_19 = x_336; +goto block_24; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +lean_dec(x_268); +x_341 = lean_box(0); +lean_inc(x_271); +x_342 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_267, x_271, x_341); +x_343 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_269, x_271, x_341); +x_344 = 1; +x_345 = lean_box(x_344); +if (lean_is_scalar(x_270)) { + x_346 = lean_alloc_ctor(0, 2, 0); +} else { + x_346 = x_270; +} +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_343); +x_347 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_347, 0, x_342); +lean_ctor_set(x_347, 1, x_346); +x_348 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_348, 0, x_347); +x_18 = x_348; +x_19 = x_336; +goto block_24; +} +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +lean_dec(x_274); +lean_dec(x_271); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_349 = lean_ctor_get(x_277, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_277, 1); +lean_inc(x_350); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_351 = x_277; +} else { + lean_dec_ref(x_277); + x_351 = lean_box(0); +} +if (lean_is_scalar(x_351)) { + x_352 = lean_alloc_ctor(1, 2, 0); +} else { + x_352 = x_351; +} +lean_ctor_set(x_352, 0, x_349); +lean_ctor_set(x_352, 1, x_350); +return x_352; +} +} +else +{ +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; uint8_t x_362; lean_object* x_363; lean_object* x_364; +lean_dec(x_268); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + x_353 = x_276; +} else { + lean_dec_ref(x_276); + x_353 = lean_box(0); +} +x_354 = lean_box(0); +lean_inc(x_2); +x_355 = lean_array_mk(x_2); +x_356 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_357 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_354); +lean_ctor_set(x_357, 2, x_355); +x_358 = l_Lean_CollectFVars_main(x_274, x_357); +x_359 = lean_ctor_get(x_358, 2); +lean_inc(x_359); +lean_dec(x_358); +x_360 = lean_array_get_size(x_359); +x_361 = lean_unsigned_to_nat(0u); +x_362 = lean_nat_dec_lt(x_361, x_360); +x_363 = lean_box(0); +x_364 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_269, x_271, x_363); +if (x_362 == 0) +{ +uint8_t x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_360); +lean_dec(x_359); +x_365 = 1; +x_366 = lean_box(x_365); +if (lean_is_scalar(x_270)) { + x_367 = lean_alloc_ctor(0, 2, 0); +} else { + x_367 = x_270; +} +lean_ctor_set(x_367, 0, x_366); +lean_ctor_set(x_367, 1, x_364); +x_368 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_368, 0, x_267); +lean_ctor_set(x_368, 1, x_367); +if (lean_is_scalar(x_353)) { + x_369 = lean_alloc_ctor(1, 1, 0); +} else { + x_369 = x_353; +} +lean_ctor_set(x_369, 0, x_368); +x_18 = x_369; +x_19 = x_275; +goto block_24; +} +else +{ +uint8_t x_370; +x_370 = lean_nat_dec_le(x_360, x_360); +if (x_370 == 0) +{ +uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +lean_dec(x_360); +lean_dec(x_359); +x_371 = 1; +x_372 = lean_box(x_371); +if (lean_is_scalar(x_270)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_270; +} +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_364); +x_374 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_374, 0, x_267); +lean_ctor_set(x_374, 1, x_373); +if (lean_is_scalar(x_353)) { + x_375 = lean_alloc_ctor(1, 1, 0); +} else { + x_375 = x_353; +} +lean_ctor_set(x_375, 0, x_374); +x_18 = x_375; +x_19 = x_275; +goto block_24; +} +else +{ +size_t x_376; size_t x_377; lean_object* x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_376 = 0; +x_377 = lean_usize_of_nat(x_360); +lean_dec(x_360); +x_378 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_4, x_359, x_376, x_377, x_267); +lean_dec(x_359); +x_379 = 1; +x_380 = lean_box(x_379); +if (lean_is_scalar(x_270)) { + x_381 = lean_alloc_ctor(0, 2, 0); +} else { + x_381 = x_270; +} +lean_ctor_set(x_381, 0, x_380); +lean_ctor_set(x_381, 1, x_364); +x_382 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_382, 0, x_378); +lean_ctor_set(x_382, 1, x_381); +if (lean_is_scalar(x_353)) { + x_383 = lean_alloc_ctor(1, 1, 0); +} else { + x_383 = x_353; +} +lean_ctor_set(x_383, 0, x_382); +x_18 = x_383; +x_19 = x_275; +goto block_24; +} +} +} +} +else +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +lean_dec(x_271); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +x_384 = lean_ctor_get(x_273, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_273, 1); +lean_inc(x_385); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_386 = x_273; +} else { + lean_dec_ref(x_273); + x_386 = lean_box(0); +} +if (lean_is_scalar(x_386)) { + x_387 = lean_alloc_ctor(1, 2, 0); +} else { + x_387 = x_386; +} +lean_ctor_set(x_387, 0, x_384); +lean_ctor_set(x_387, 1, x_385); +return x_387; +} +} +else +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +lean_dec(x_271); +lean_dec(x_17); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + x_388 = x_272; +} else { + lean_dec_ref(x_272); + x_388 = lean_box(0); +} +if (lean_is_scalar(x_270)) { + x_389 = lean_alloc_ctor(0, 2, 0); +} else { + x_389 = x_270; +} +lean_ctor_set(x_389, 0, x_268); +lean_ctor_set(x_389, 1, x_269); +x_390 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_390, 0, x_267); +lean_ctor_set(x_390, 1, x_389); +if (lean_is_scalar(x_388)) { + x_391 = lean_alloc_ctor(1, 1, 0); +} else { + x_391 = x_388; +} +lean_ctor_set(x_391, 0, x_390); +x_18 = x_391; +x_19 = x_14; +goto block_24; +} +} +block_24: +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = lean_usize_add(x_8, x_21); +x_8 = x_22; +x_9 = x_20; +x_14 = x_19; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_7, x_6); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_24; +x_16 = lean_array_uget(x_5, x_7); +x_24 = !lean_is_exclusive(x_8); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_8, 1); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_8, 0); +x_28 = lean_ctor_get(x_25, 0); +x_29 = lean_ctor_get(x_25, 1); +x_30 = l_Lean_Expr_fvarId_x21(x_16); +x_31 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_29, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_32 = lean_infer_type(x_16, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +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(x_32); +x_35 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_27, x_30); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_33); +x_36 = l_Lean_Meta_isProp(x_33, x_9, x_10, x_11, x_12, x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_unbox(x_37); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +lean_inc(x_9); +lean_inc(x_30); +x_40 = l_Lean_FVarId_getDecl(x_30, x_9, x_10, x_11, x_12, x_39); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_LocalDecl_binderInfo(x_41); +lean_dec(x_41); +x_44 = lean_box(x_43); +if (lean_obj_tag(x_44) == 3) +{ +lean_object* x_45; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_27); +lean_inc(x_3); +x_45 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_3, x_27, x_33, x_9, x_10, x_11, x_12, x_42); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_unbox(x_46); +lean_dec(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_33); +lean_dec(x_30); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_8); +x_17 = x_49; +x_18 = x_48; +goto block_23; +} +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; uint8_t x_61; lean_object* x_62; +lean_dec(x_28); +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); +lean_dec(x_45); +x_51 = lean_box(0); +lean_inc(x_30); +x_52 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_27, x_30, x_51); +x_53 = lean_box(0); +lean_inc(x_2); +x_54 = lean_array_mk(x_2); +x_55 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_56 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +lean_ctor_set(x_56, 2, x_54); +x_57 = l_Lean_CollectFVars_main(x_33, x_56); +x_58 = lean_ctor_get(x_57, 2); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_array_get_size(x_58); +x_60 = lean_unsigned_to_nat(0u); +x_61 = lean_nat_dec_lt(x_60, x_59); +x_62 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_29, x_30, x_51); +if (x_61 == 0) +{ +uint8_t x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_59); +lean_dec(x_58); +x_63 = 1; +x_64 = lean_box(x_63); +lean_ctor_set(x_25, 1, x_62); +lean_ctor_set(x_25, 0, x_64); +lean_ctor_set(x_8, 0, x_52); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_8); +x_17 = x_65; +x_18 = x_50; +goto block_23; +} +else +{ +uint8_t x_66; +x_66 = lean_nat_dec_le(x_59, x_59); +if (x_66 == 0) +{ +uint8_t x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_59); +lean_dec(x_58); +x_67 = 1; +x_68 = lean_box(x_67); +lean_ctor_set(x_25, 1, x_62); +lean_ctor_set(x_25, 0, x_68); +lean_ctor_set(x_8, 0, x_52); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_8); +x_17 = x_69; +x_18 = x_50; +goto block_23; +} +else +{ +size_t x_70; size_t x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; +x_70 = 0; +x_71 = lean_usize_of_nat(x_59); +lean_dec(x_59); +x_72 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_3, x_58, x_70, x_71, x_52); +lean_dec(x_58); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_25, 1, x_62); +lean_ctor_set(x_25, 0, x_74); +lean_ctor_set(x_8, 0, x_72); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_8); +x_17 = x_75; +x_18 = x_50; +goto block_23; +} +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_33); +lean_dec(x_30); +lean_free_object(x_25); +lean_dec(x_29); +lean_dec(x_28); +lean_free_object(x_8); +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_76 = !lean_is_exclusive(x_45); +if (x_76 == 0) +{ +return x_45; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_45, 0); +x_78 = lean_ctor_get(x_45, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_45); +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 +{ +lean_object* x_80; +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_30); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_8); +x_17 = x_80; +x_18 = x_42; +goto block_23; +} +} +else +{ +uint8_t x_81; +lean_dec(x_33); +lean_dec(x_30); +lean_free_object(x_25); +lean_dec(x_29); +lean_dec(x_28); +lean_free_object(x_8); +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_81 = !lean_is_exclusive(x_40); +if (x_81 == 0) +{ +return x_40; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_40, 0); +x_83 = lean_ctor_get(x_40, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_40); +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; +} +} +} +else +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_36, 1); +lean_inc(x_85); +lean_dec(x_36); +x_86 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_3, x_27, x_33); +if (x_86 == 0) +{ +lean_object* x_87; +lean_dec(x_30); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_8); +x_17 = x_87; +x_18 = x_85; +goto block_23; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_28); +x_88 = lean_box(0); +lean_inc(x_30); +x_89 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_27, x_30, x_88); +x_90 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_29, x_30, x_88); +x_91 = 1; +x_92 = lean_box(x_91); +lean_ctor_set(x_25, 1, x_90); +lean_ctor_set(x_25, 0, x_92); +lean_ctor_set(x_8, 0, x_89); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_8); +x_17 = x_93; +x_18 = x_85; +goto block_23; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_33); +lean_dec(x_30); +lean_free_object(x_25); +lean_dec(x_29); +lean_dec(x_28); +lean_free_object(x_8); +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_94 = !lean_is_exclusive(x_36); +if (x_94 == 0) +{ +return x_36; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_36, 0); +x_96 = lean_ctor_get(x_36, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_36); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_28); +x_98 = !lean_is_exclusive(x_35); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_99 = lean_ctor_get(x_35, 0); +lean_dec(x_99); +x_100 = lean_box(0); +lean_inc(x_2); +x_101 = lean_array_mk(x_2); +x_102 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_103 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); +lean_ctor_set(x_103, 2, x_101); +x_104 = l_Lean_CollectFVars_main(x_33, x_103); +x_105 = lean_ctor_get(x_104, 2); +lean_inc(x_105); +lean_dec(x_104); +x_106 = lean_array_get_size(x_105); +x_107 = lean_unsigned_to_nat(0u); +x_108 = lean_nat_dec_lt(x_107, x_106); +x_109 = lean_box(0); +x_110 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_29, x_30, x_109); +if (x_108 == 0) +{ +uint8_t x_111; lean_object* x_112; +lean_dec(x_106); +lean_dec(x_105); +x_111 = 1; +x_112 = lean_box(x_111); +lean_ctor_set(x_25, 1, x_110); +lean_ctor_set(x_25, 0, x_112); +lean_ctor_set(x_35, 0, x_8); +x_17 = x_35; +x_18 = x_34; +goto block_23; +} +else +{ +uint8_t x_113; +x_113 = lean_nat_dec_le(x_106, x_106); +if (x_113 == 0) +{ +uint8_t x_114; lean_object* x_115; +lean_dec(x_106); +lean_dec(x_105); +x_114 = 1; +x_115 = lean_box(x_114); +lean_ctor_set(x_25, 1, x_110); +lean_ctor_set(x_25, 0, x_115); +lean_ctor_set(x_35, 0, x_8); +x_17 = x_35; +x_18 = x_34; +goto block_23; +} +else +{ +size_t x_116; size_t x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_116 = 0; +x_117 = lean_usize_of_nat(x_106); +lean_dec(x_106); +x_118 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_3, x_105, x_116, x_117, x_27); +lean_dec(x_105); +x_119 = 1; +x_120 = lean_box(x_119); +lean_ctor_set(x_25, 1, x_110); +lean_ctor_set(x_25, 0, x_120); +lean_ctor_set(x_8, 0, x_118); +lean_ctor_set(x_35, 0, x_8); +x_17 = x_35; +x_18 = x_34; +goto block_23; +} +} +} +else +{ +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_35); +x_121 = lean_box(0); +lean_inc(x_2); +x_122 = lean_array_mk(x_2); +x_123 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_124 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_121); +lean_ctor_set(x_124, 2, x_122); +x_125 = l_Lean_CollectFVars_main(x_33, x_124); +x_126 = lean_ctor_get(x_125, 2); +lean_inc(x_126); +lean_dec(x_125); +x_127 = lean_array_get_size(x_126); +x_128 = lean_unsigned_to_nat(0u); +x_129 = lean_nat_dec_lt(x_128, x_127); +x_130 = lean_box(0); +x_131 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_29, x_30, x_130); +if (x_129 == 0) +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_127); +lean_dec(x_126); +x_132 = 1; +x_133 = lean_box(x_132); +lean_ctor_set(x_25, 1, x_131); +lean_ctor_set(x_25, 0, x_133); +x_134 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_134, 0, x_8); +x_17 = x_134; +x_18 = x_34; +goto block_23; +} +else +{ +uint8_t x_135; +x_135 = lean_nat_dec_le(x_127, x_127); +if (x_135 == 0) +{ +uint8_t x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_127); +lean_dec(x_126); +x_136 = 1; +x_137 = lean_box(x_136); +lean_ctor_set(x_25, 1, x_131); +lean_ctor_set(x_25, 0, x_137); +x_138 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_138, 0, x_8); +x_17 = x_138; +x_18 = x_34; +goto block_23; +} +else +{ +size_t x_139; size_t x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; +x_139 = 0; +x_140 = lean_usize_of_nat(x_127); +lean_dec(x_127); +x_141 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_3, x_126, x_139, x_140, x_27); +lean_dec(x_126); +x_142 = 1; +x_143 = lean_box(x_142); +lean_ctor_set(x_25, 1, x_131); +lean_ctor_set(x_25, 0, x_143); +lean_ctor_set(x_8, 0, x_141); +x_144 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_144, 0, x_8); +x_17 = x_144; +x_18 = x_34; +goto block_23; +} +} +} +} +} +else +{ +uint8_t x_145; +lean_dec(x_30); +lean_free_object(x_25); +lean_dec(x_29); +lean_dec(x_28); +lean_free_object(x_8); +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_145 = !lean_is_exclusive(x_32); +if (x_145 == 0) +{ +return x_32; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_32, 0); +x_147 = lean_ctor_get(x_32, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_32); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; +} +} +} +else +{ +uint8_t x_149; +lean_dec(x_30); +lean_dec(x_16); +x_149 = !lean_is_exclusive(x_31); +if (x_149 == 0) +{ +lean_object* x_150; +x_150 = lean_ctor_get(x_31, 0); +lean_dec(x_150); +lean_ctor_set(x_31, 0, x_8); +x_17 = x_31; +x_18 = x_13; +goto block_23; +} +else +{ +lean_object* x_151; +lean_dec(x_31); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_8); +x_17 = x_151; +x_18 = x_13; +goto block_23; +} +} +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_152 = lean_ctor_get(x_8, 0); +x_153 = lean_ctor_get(x_25, 0); +x_154 = lean_ctor_get(x_25, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_25); +x_155 = l_Lean_Expr_fvarId_x21(x_16); +x_156 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_154, x_155); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_157 = lean_infer_type(x_16, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_152, x_155); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_158); +x_161 = l_Lean_Meta_isProp(x_158, x_9, x_10, x_11, x_12, x_159); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; uint8_t x_163; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_unbox(x_162); +lean_dec(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); +lean_dec(x_161); +lean_inc(x_9); +lean_inc(x_155); +x_165 = l_Lean_FVarId_getDecl(x_155, x_9, x_10, x_11, x_12, x_164); +if (lean_obj_tag(x_165) == 0) +{ +lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = l_Lean_LocalDecl_binderInfo(x_166); +lean_dec(x_166); +x_169 = lean_box(x_168); +if (lean_obj_tag(x_169) == 3) +{ +lean_object* x_170; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_158); +lean_inc(x_152); +lean_inc(x_3); +x_170 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_3, x_152, x_158, x_9, x_10, x_11, x_12, x_167); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; uint8_t x_172; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_unbox(x_171); +lean_dec(x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_158); +lean_dec(x_155); +x_173 = lean_ctor_get(x_170, 1); +lean_inc(x_173); +lean_dec(x_170); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_153); +lean_ctor_set(x_174, 1, x_154); +lean_ctor_set(x_8, 1, x_174); +x_175 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_175, 0, x_8); +x_17 = x_175; +x_18 = x_173; +goto block_23; +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; +lean_dec(x_153); +x_176 = lean_ctor_get(x_170, 1); +lean_inc(x_176); +lean_dec(x_170); +x_177 = lean_box(0); +lean_inc(x_155); +x_178 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_152, x_155, x_177); +x_179 = lean_box(0); +lean_inc(x_2); +x_180 = lean_array_mk(x_2); +x_181 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_182 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_179); +lean_ctor_set(x_182, 2, x_180); +x_183 = l_Lean_CollectFVars_main(x_158, x_182); +x_184 = lean_ctor_get(x_183, 2); +lean_inc(x_184); +lean_dec(x_183); +x_185 = lean_array_get_size(x_184); +x_186 = lean_unsigned_to_nat(0u); +x_187 = lean_nat_dec_lt(x_186, x_185); +x_188 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_154, x_155, x_177); +if (x_187 == 0) +{ +uint8_t x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_185); +lean_dec(x_184); +x_189 = 1; +x_190 = lean_box(x_189); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_188); +lean_ctor_set(x_8, 1, x_191); +lean_ctor_set(x_8, 0, x_178); +x_192 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_192, 0, x_8); +x_17 = x_192; +x_18 = x_176; +goto block_23; +} +else +{ +uint8_t x_193; +x_193 = lean_nat_dec_le(x_185, x_185); +if (x_193 == 0) +{ +uint8_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_185); +lean_dec(x_184); +x_194 = 1; +x_195 = lean_box(x_194); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_188); +lean_ctor_set(x_8, 1, x_196); +lean_ctor_set(x_8, 0, x_178); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_8); +x_17 = x_197; +x_18 = x_176; +goto block_23; +} +else +{ +size_t x_198; size_t x_199; lean_object* x_200; uint8_t x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_198 = 0; +x_199 = lean_usize_of_nat(x_185); +lean_dec(x_185); +x_200 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_3, x_184, x_198, x_199, x_178); +lean_dec(x_184); +x_201 = 1; +x_202 = lean_box(x_201); +x_203 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_188); +lean_ctor_set(x_8, 1, x_203); +lean_ctor_set(x_8, 0, x_200); +x_204 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_204, 0, x_8); +x_17 = x_204; +x_18 = x_176; +goto block_23; +} +} +} +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_158); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_free_object(x_8); +lean_dec(x_152); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_205 = lean_ctor_get(x_170, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_170, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_207 = x_170; +} else { + lean_dec_ref(x_170); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_169); +lean_dec(x_158); +lean_dec(x_155); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_153); +lean_ctor_set(x_209, 1, x_154); +lean_ctor_set(x_8, 1, x_209); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_8); +x_17 = x_210; +x_18 = x_167; +goto block_23; +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_158); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_free_object(x_8); +lean_dec(x_152); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_211 = lean_ctor_get(x_165, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_165, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_213 = x_165; +} else { + lean_dec_ref(x_165); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_212); +return x_214; +} +} +else +{ +lean_object* x_215; uint8_t x_216; +x_215 = lean_ctor_get(x_161, 1); +lean_inc(x_215); +lean_dec(x_161); +x_216 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_3, x_152, x_158); +if (x_216 == 0) +{ +lean_object* x_217; lean_object* x_218; +lean_dec(x_155); +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_153); +lean_ctor_set(x_217, 1, x_154); +lean_ctor_set(x_8, 1, x_217); +x_218 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_218, 0, x_8); +x_17 = x_218; +x_18 = x_215; +goto block_23; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_dec(x_153); +x_219 = lean_box(0); +lean_inc(x_155); +x_220 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_152, x_155, x_219); +x_221 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_154, x_155, x_219); +x_222 = 1; +x_223 = lean_box(x_222); +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_221); +lean_ctor_set(x_8, 1, x_224); +lean_ctor_set(x_8, 0, x_220); +x_225 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_225, 0, x_8); +x_17 = x_225; +x_18 = x_215; +goto block_23; +} +} +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_158); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_free_object(x_8); +lean_dec(x_152); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_226 = lean_ctor_get(x_161, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_161, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_228 = x_161; +} else { + lean_dec_ref(x_161); + x_228 = lean_box(0); +} +if (lean_is_scalar(x_228)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_228; +} +lean_ctor_set(x_229, 0, x_226); +lean_ctor_set(x_229, 1, x_227); +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_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_153); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + x_230 = x_160; +} else { + lean_dec_ref(x_160); + x_230 = lean_box(0); +} +x_231 = lean_box(0); +lean_inc(x_2); +x_232 = lean_array_mk(x_2); +x_233 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_234 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_231); +lean_ctor_set(x_234, 2, x_232); +x_235 = l_Lean_CollectFVars_main(x_158, x_234); +x_236 = lean_ctor_get(x_235, 2); +lean_inc(x_236); +lean_dec(x_235); +x_237 = lean_array_get_size(x_236); +x_238 = lean_unsigned_to_nat(0u); +x_239 = lean_nat_dec_lt(x_238, x_237); +x_240 = lean_box(0); +x_241 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_154, x_155, x_240); +if (x_239 == 0) +{ +uint8_t x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_dec(x_237); +lean_dec(x_236); +x_242 = 1; +x_243 = lean_box(x_242); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_241); +lean_ctor_set(x_8, 1, x_244); +if (lean_is_scalar(x_230)) { + x_245 = lean_alloc_ctor(1, 1, 0); +} else { + x_245 = x_230; +} +lean_ctor_set(x_245, 0, x_8); +x_17 = x_245; +x_18 = x_159; +goto block_23; +} +else +{ +uint8_t x_246; +x_246 = lean_nat_dec_le(x_237, x_237); +if (x_246 == 0) +{ +uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_237); +lean_dec(x_236); +x_247 = 1; +x_248 = lean_box(x_247); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_241); +lean_ctor_set(x_8, 1, x_249); +if (lean_is_scalar(x_230)) { + x_250 = lean_alloc_ctor(1, 1, 0); +} else { + x_250 = x_230; +} +lean_ctor_set(x_250, 0, x_8); +x_17 = x_250; +x_18 = x_159; +goto block_23; +} +else +{ +size_t x_251; size_t x_252; lean_object* x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_251 = 0; +x_252 = lean_usize_of_nat(x_237); +lean_dec(x_237); +x_253 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_3, x_236, x_251, x_252, x_152); +lean_dec(x_236); +x_254 = 1; +x_255 = lean_box(x_254); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_241); +lean_ctor_set(x_8, 1, x_256); +lean_ctor_set(x_8, 0, x_253); +if (lean_is_scalar(x_230)) { + x_257 = lean_alloc_ctor(1, 1, 0); +} else { + x_257 = x_230; +} +lean_ctor_set(x_257, 0, x_8); +x_17 = x_257; +x_18 = x_159; +goto block_23; +} +} +} +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_free_object(x_8); +lean_dec(x_152); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_258 = lean_ctor_get(x_157, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_157, 1); +lean_inc(x_259); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_260 = x_157; +} else { + lean_dec_ref(x_157); + x_260 = lean_box(0); +} +if (lean_is_scalar(x_260)) { + x_261 = lean_alloc_ctor(1, 2, 0); +} else { + x_261 = x_260; +} +lean_ctor_set(x_261, 0, x_258); +lean_ctor_set(x_261, 1, x_259); +return x_261; +} +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; +lean_dec(x_155); +lean_dec(x_16); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + x_262 = x_156; +} else { + lean_dec_ref(x_156); + x_262 = lean_box(0); +} +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_153); +lean_ctor_set(x_263, 1, x_154); +lean_ctor_set(x_8, 1, x_263); +if (lean_is_scalar(x_262)) { + x_264 = lean_alloc_ctor(1, 1, 0); +} else { + x_264 = x_262; +} +lean_ctor_set(x_264, 0, x_8); +x_17 = x_264; +x_18 = x_13; +goto block_23; +} +} +} +else +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_265 = lean_ctor_get(x_8, 1); +x_266 = lean_ctor_get(x_8, 0); +lean_inc(x_265); +lean_inc(x_266); +lean_dec(x_8); +x_267 = lean_ctor_get(x_265, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_265, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_269 = x_265; +} else { + lean_dec_ref(x_265); + x_269 = lean_box(0); +} +x_270 = l_Lean_Expr_fvarId_x21(x_16); +x_271 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_268, x_270); +if (lean_obj_tag(x_271) == 0) +{ +lean_object* x_272; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_272 = lean_infer_type(x_16, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_272, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +lean_dec(x_272); +x_275 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_266, x_270); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_273); +x_276 = l_Lean_Meta_isProp(x_273, x_9, x_10, x_11, x_12, x_274); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; uint8_t x_278; +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_unbox(x_277); +lean_dec(x_277); +if (x_278 == 0) +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_276, 1); +lean_inc(x_279); +lean_dec(x_276); +lean_inc(x_9); +lean_inc(x_270); +x_280 = l_Lean_FVarId_getDecl(x_270, x_9, x_10, x_11, x_12, x_279); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_280, 1); +lean_inc(x_282); +lean_dec(x_280); +x_283 = l_Lean_LocalDecl_binderInfo(x_281); +lean_dec(x_281); +x_284 = lean_box(x_283); +if (lean_obj_tag(x_284) == 3) +{ +lean_object* x_285; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_273); +lean_inc(x_266); +lean_inc(x_3); +x_285 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized(x_3, x_266, x_273, x_9, x_10, x_11, x_12, x_282); +if (lean_obj_tag(x_285) == 0) +{ +lean_object* x_286; uint8_t x_287; +x_286 = lean_ctor_get(x_285, 0); +lean_inc(x_286); +x_287 = lean_unbox(x_286); +lean_dec(x_286); +if (x_287 == 0) +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_273); +lean_dec(x_270); +x_288 = lean_ctor_get(x_285, 1); +lean_inc(x_288); +lean_dec(x_285); +if (lean_is_scalar(x_269)) { + x_289 = lean_alloc_ctor(0, 2, 0); +} else { + x_289 = x_269; +} +lean_ctor_set(x_289, 0, x_267); +lean_ctor_set(x_289, 1, x_268); +x_290 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_290, 0, x_266); +lean_ctor_set(x_290, 1, x_289); +x_291 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_291, 0, x_290); +x_17 = x_291; +x_18 = x_288; +goto block_23; +} +else +{ +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_303; lean_object* x_304; +lean_dec(x_267); +x_292 = lean_ctor_get(x_285, 1); +lean_inc(x_292); +lean_dec(x_285); +x_293 = lean_box(0); +lean_inc(x_270); +x_294 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_266, x_270, x_293); +x_295 = lean_box(0); +lean_inc(x_2); +x_296 = lean_array_mk(x_2); +x_297 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_298 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_295); +lean_ctor_set(x_298, 2, x_296); +x_299 = l_Lean_CollectFVars_main(x_273, x_298); +x_300 = lean_ctor_get(x_299, 2); +lean_inc(x_300); +lean_dec(x_299); +x_301 = lean_array_get_size(x_300); +x_302 = lean_unsigned_to_nat(0u); +x_303 = lean_nat_dec_lt(x_302, x_301); +x_304 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_268, x_270, x_293); +if (x_303 == 0) +{ +uint8_t x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +lean_dec(x_301); +lean_dec(x_300); +x_305 = 1; +x_306 = lean_box(x_305); +if (lean_is_scalar(x_269)) { + x_307 = lean_alloc_ctor(0, 2, 0); +} else { + x_307 = x_269; +} +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_304); +x_308 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_308, 0, x_294); +lean_ctor_set(x_308, 1, x_307); +x_309 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_309, 0, x_308); +x_17 = x_309; +x_18 = x_292; +goto block_23; +} +else +{ +uint8_t x_310; +x_310 = lean_nat_dec_le(x_301, x_301); +if (x_310 == 0) +{ +uint8_t x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +lean_dec(x_301); +lean_dec(x_300); +x_311 = 1; +x_312 = lean_box(x_311); +if (lean_is_scalar(x_269)) { + x_313 = lean_alloc_ctor(0, 2, 0); +} else { + x_313 = x_269; +} +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_304); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_294); +lean_ctor_set(x_314, 1, x_313); +x_315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_315, 0, x_314); +x_17 = x_315; +x_18 = x_292; +goto block_23; +} +else +{ +size_t x_316; size_t x_317; lean_object* x_318; uint8_t x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_316 = 0; +x_317 = lean_usize_of_nat(x_301); +lean_dec(x_301); +x_318 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_3, x_300, x_316, x_317, x_294); +lean_dec(x_300); +x_319 = 1; +x_320 = lean_box(x_319); +if (lean_is_scalar(x_269)) { + x_321 = lean_alloc_ctor(0, 2, 0); +} else { + x_321 = x_269; +} +lean_ctor_set(x_321, 0, x_320); +lean_ctor_set(x_321, 1, x_304); +x_322 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_322, 0, x_318); +lean_ctor_set(x_322, 1, x_321); +x_323 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_323, 0, x_322); +x_17 = x_323; +x_18 = x_292; +goto block_23; +} +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_273); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_324 = lean_ctor_get(x_285, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_285, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_326 = x_285; +} else { + lean_dec_ref(x_285); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; +lean_dec(x_284); +lean_dec(x_273); +lean_dec(x_270); +if (lean_is_scalar(x_269)) { + x_328 = lean_alloc_ctor(0, 2, 0); +} else { + x_328 = x_269; +} +lean_ctor_set(x_328, 0, x_267); +lean_ctor_set(x_328, 1, x_268); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_266); +lean_ctor_set(x_329, 1, x_328); +x_330 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_330, 0, x_329); +x_17 = x_330; +x_18 = x_282; +goto block_23; +} +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +lean_dec(x_273); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_331 = lean_ctor_get(x_280, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_280, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + x_333 = x_280; +} else { + lean_dec_ref(x_280); + x_333 = lean_box(0); +} +if (lean_is_scalar(x_333)) { + x_334 = lean_alloc_ctor(1, 2, 0); +} else { + x_334 = x_333; +} +lean_ctor_set(x_334, 0, x_331); +lean_ctor_set(x_334, 1, x_332); +return x_334; +} +} +else +{ +lean_object* x_335; uint8_t x_336; +x_335 = lean_ctor_get(x_276, 1); +lean_inc(x_335); +lean_dec(x_276); +x_336 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars(x_3, x_266, x_273); +if (x_336 == 0) +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +lean_dec(x_270); +if (lean_is_scalar(x_269)) { + x_337 = lean_alloc_ctor(0, 2, 0); +} else { + x_337 = x_269; +} +lean_ctor_set(x_337, 0, x_267); +lean_ctor_set(x_337, 1, x_268); +x_338 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_338, 0, x_266); +lean_ctor_set(x_338, 1, x_337); +x_339 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_339, 0, x_338); +x_17 = x_339; +x_18 = x_335; +goto block_23; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +lean_dec(x_267); +x_340 = lean_box(0); +lean_inc(x_270); +x_341 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_266, x_270, x_340); +x_342 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_268, x_270, x_340); +x_343 = 1; +x_344 = lean_box(x_343); +if (lean_is_scalar(x_269)) { + x_345 = lean_alloc_ctor(0, 2, 0); +} else { + x_345 = x_269; +} +lean_ctor_set(x_345, 0, x_344); +lean_ctor_set(x_345, 1, x_342); +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_341); +lean_ctor_set(x_346, 1, x_345); +x_347 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_347, 0, x_346); +x_17 = x_347; +x_18 = x_335; +goto block_23; +} +} +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_273); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_348 = lean_ctor_get(x_276, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_276, 1); +lean_inc(x_349); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_350 = x_276; +} else { + lean_dec_ref(x_276); + x_350 = lean_box(0); +} +if (lean_is_scalar(x_350)) { + x_351 = lean_alloc_ctor(1, 2, 0); +} else { + x_351 = x_350; +} +lean_ctor_set(x_351, 0, x_348); +lean_ctor_set(x_351, 1, x_349); +return x_351; +} +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_object* x_362; lean_object* x_363; +lean_dec(x_267); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + x_352 = x_275; +} else { + lean_dec_ref(x_275); + x_352 = lean_box(0); +} +x_353 = lean_box(0); +lean_inc(x_2); +x_354 = lean_array_mk(x_2); +x_355 = l_Lean_Meta_Grind_NormalizePattern_main___closed__4; +x_356 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_353); +lean_ctor_set(x_356, 2, x_354); +x_357 = l_Lean_CollectFVars_main(x_273, x_356); +x_358 = lean_ctor_get(x_357, 2); +lean_inc(x_358); +lean_dec(x_357); +x_359 = lean_array_get_size(x_358); +x_360 = lean_unsigned_to_nat(0u); +x_361 = lean_nat_dec_lt(x_360, x_359); +x_362 = lean_box(0); +x_363 = l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(x_268, x_270, x_362); +if (x_361 == 0) +{ +uint8_t x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; +lean_dec(x_359); +lean_dec(x_358); +x_364 = 1; +x_365 = lean_box(x_364); +if (lean_is_scalar(x_269)) { + x_366 = lean_alloc_ctor(0, 2, 0); +} else { + x_366 = x_269; +} +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_363); +x_367 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_367, 0, x_266); +lean_ctor_set(x_367, 1, x_366); +if (lean_is_scalar(x_352)) { + x_368 = lean_alloc_ctor(1, 1, 0); +} else { + x_368 = x_352; +} +lean_ctor_set(x_368, 0, x_367); +x_17 = x_368; +x_18 = x_274; +goto block_23; +} +else +{ +uint8_t x_369; +x_369 = lean_nat_dec_le(x_359, x_359); +if (x_369 == 0) +{ +uint8_t x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +lean_dec(x_359); +lean_dec(x_358); +x_370 = 1; +x_371 = lean_box(x_370); +if (lean_is_scalar(x_269)) { + x_372 = lean_alloc_ctor(0, 2, 0); +} else { + x_372 = x_269; +} +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_363); +x_373 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_373, 0, x_266); +lean_ctor_set(x_373, 1, x_372); +if (lean_is_scalar(x_352)) { + x_374 = lean_alloc_ctor(1, 1, 0); +} else { + x_374 = x_352; +} +lean_ctor_set(x_374, 0, x_373); +x_17 = x_374; +x_18 = x_274; +goto block_23; +} +else +{ +size_t x_375; size_t x_376; lean_object* x_377; uint8_t x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; +x_375 = 0; +x_376 = lean_usize_of_nat(x_359); +lean_dec(x_359); +x_377 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_3, x_358, x_375, x_376, x_266); +lean_dec(x_358); +x_378 = 1; +x_379 = lean_box(x_378); +if (lean_is_scalar(x_269)) { + x_380 = lean_alloc_ctor(0, 2, 0); +} else { + x_380 = x_269; +} +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_363); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_377); +lean_ctor_set(x_381, 1, x_380); +if (lean_is_scalar(x_352)) { + x_382 = lean_alloc_ctor(1, 1, 0); +} else { + x_382 = x_352; +} +lean_ctor_set(x_382, 0, x_381); +x_17 = x_382; +x_18 = x_274; +goto block_23; +} +} +} +} +else +{ +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_2); +x_383 = lean_ctor_get(x_272, 0); +lean_inc(x_383); +x_384 = lean_ctor_get(x_272, 1); +lean_inc(x_384); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_385 = x_272; +} else { + lean_dec_ref(x_272); + x_385 = lean_box(0); +} +if (lean_is_scalar(x_385)) { + x_386 = lean_alloc_ctor(1, 2, 0); +} else { + x_386 = x_385; +} +lean_ctor_set(x_386, 0, x_383); +lean_ctor_set(x_386, 1, x_384); +return x_386; +} +} +else +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +lean_dec(x_270); +lean_dec(x_16); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + x_387 = x_271; +} else { + lean_dec_ref(x_271); + x_387 = lean_box(0); +} +if (lean_is_scalar(x_269)) { + x_388 = lean_alloc_ctor(0, 2, 0); +} else { + x_388 = x_269; +} +lean_ctor_set(x_388, 0, x_267); +lean_ctor_set(x_388, 1, x_268); +x_389 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_389, 0, x_266); +lean_ctor_set(x_389, 1, x_388); +if (lean_is_scalar(x_387)) { + x_390 = lean_alloc_ctor(1, 1, 0); +} else { + x_390 = x_387; +} +lean_ctor_set(x_390, 0, x_389); +x_17 = x_390; +x_18 = x_13; +goto block_23; +} +} +block_23: +{ +lean_object* x_19; size_t x_20; size_t x_21; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = lean_usize_add(x_7, x_20); +x_7 = x_21; +x_8 = x_19; +x_13 = x_18; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_box(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_3); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_10); +return x_16; +} +else +{ +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_17 = lean_box(x_1); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_2); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_10); +return x_22; +} +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_dec(x_7); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_13, 1); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = lean_box(0); +x_19 = 0; +x_20 = lean_box(x_19); +lean_ctor_set(x_15, 0, x_20); +x_21 = lean_array_size(x_2); +x_22 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_5); +lean_inc(x_3); +x_23 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_5, x_18, x_2, x_21, x_22, x_13, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_23, 1); +x_28 = lean_ctor_get(x_23, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_25); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_25, 0); +x_34 = lean_ctor_get(x_25, 1); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_35, x_30); +x_37 = lean_nat_dec_eq(x_36, x_1); +lean_dec(x_36); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; +lean_free_object(x_25); +lean_free_object(x_24); +lean_free_object(x_23); +x_38 = lean_box(0); +x_39 = lean_unbox(x_33); +lean_dec(x_33); +lean_inc(x_6); +x_40 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_39, x_34, x_30, x_6, x_38, x_8, x_9, x_10, x_11, x_27); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_42 = !lean_is_exclusive(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 0); +lean_dec(x_43); +x_44 = lean_ctor_get(x_41, 0); +lean_inc(x_44); +lean_dec(x_41); +lean_ctor_set(x_40, 0, x_44); +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 1); +lean_inc(x_45); +lean_dec(x_40); +x_46 = lean_ctor_get(x_41, 0); +lean_inc(x_46); +lean_dec(x_41); +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 +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_dec(x_40); +x_49 = lean_ctor_get(x_41, 0); +lean_inc(x_49); +lean_dec(x_41); +x_7 = x_49; +x_12 = x_48; +goto _start; +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_51 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_24); +lean_ctor_set(x_23, 0, x_52); +return x_23; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_53 = lean_ctor_get(x_25, 0); +x_54 = lean_ctor_get(x_25, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_25); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_55, x_30); +x_57 = lean_nat_dec_eq(x_56, x_1); +lean_dec(x_56); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; +lean_free_object(x_24); +lean_free_object(x_23); +x_58 = lean_box(0); +x_59 = lean_unbox(x_53); +lean_dec(x_53); +lean_inc(x_6); +x_60 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_59, x_54, x_30, x_6, x_58, x_8, x_9, x_10, x_11, x_27); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = lean_ctor_get(x_61, 0); +lean_inc(x_64); +lean_dec(x_61); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_62); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); +x_67 = lean_ctor_get(x_61, 0); +lean_inc(x_67); +lean_dec(x_61); +x_7 = x_67; +x_12 = x_66; +goto _start; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_53); +lean_ctor_set(x_69, 1, x_54); +lean_ctor_set(x_24, 1, x_69); +x_70 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_24); +lean_ctor_set(x_23, 0, x_71); +return x_23; +} +} +} +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; uint8_t x_78; +x_72 = lean_ctor_get(x_24, 0); +lean_inc(x_72); +lean_dec(x_24); +x_73 = lean_ctor_get(x_25, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_25, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_75 = x_25; +} else { + lean_dec_ref(x_25); + x_75 = lean_box(0); +} +x_76 = lean_unsigned_to_nat(0u); +x_77 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_76, x_72); +x_78 = lean_nat_dec_eq(x_77, x_1); +lean_dec(x_77); +if (x_78 == 0) +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_75); +lean_free_object(x_23); +x_79 = lean_box(0); +x_80 = lean_unbox(x_73); +lean_dec(x_73); +lean_inc(x_6); +x_81 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_80, x_74, x_72, x_6, x_79, x_8, x_9, x_10, x_11, x_27); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; +} else { + lean_dec_ref(x_81); + x_84 = lean_box(0); +} +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +lean_dec(x_82); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +lean_dec(x_81); +x_88 = lean_ctor_get(x_82, 0); +lean_inc(x_88); +lean_dec(x_82); +x_7 = x_88; +x_12 = x_87; +goto _start; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +if (lean_is_scalar(x_75)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_75; +} +lean_ctor_set(x_90, 0, x_73); +lean_ctor_set(x_90, 1, x_74); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_72); +lean_ctor_set(x_91, 1, x_90); +x_92 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +lean_ctor_set(x_23, 0, x_93); +return x_23; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_94 = lean_ctor_get(x_23, 1); +lean_inc(x_94); +lean_dec(x_23); +x_95 = lean_ctor_get(x_24, 0); +lean_inc(x_95); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_96 = x_24; +} else { + lean_dec_ref(x_24); + x_96 = lean_box(0); +} +x_97 = lean_ctor_get(x_25, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_25, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_99 = x_25; +} else { + lean_dec_ref(x_25); + x_99 = lean_box(0); +} +x_100 = lean_unsigned_to_nat(0u); +x_101 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_100, x_95); +x_102 = lean_nat_dec_eq(x_101, x_1); +lean_dec(x_101); +if (x_102 == 0) +{ +lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_99); +lean_dec(x_96); +x_103 = lean_box(0); +x_104 = lean_unbox(x_97); +lean_dec(x_97); +lean_inc(x_6); +x_105 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_104, x_98, x_95, x_6, x_103, x_8, x_9, x_10, x_11, x_94); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; +} else { + lean_dec_ref(x_105); + x_108 = lean_box(0); +} +x_109 = lean_ctor_get(x_106, 0); +lean_inc(x_109); +lean_dec(x_106); +if (lean_is_scalar(x_108)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_108; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_107); +return x_110; +} +else +{ +lean_object* x_111; lean_object* x_112; +x_111 = lean_ctor_get(x_105, 1); +lean_inc(x_111); +lean_dec(x_105); +x_112 = lean_ctor_get(x_106, 0); +lean_inc(x_112); +lean_dec(x_106); +x_7 = x_112; +x_12 = x_111; +goto _start; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +if (lean_is_scalar(x_99)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_99; +} +lean_ctor_set(x_114, 0, x_97); +lean_ctor_set(x_114, 1, x_98); +if (lean_is_scalar(x_96)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_96; +} +lean_ctor_set(x_115, 0, x_95); +lean_ctor_set(x_115, 1, x_114); +x_116 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_94); +return x_118; +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_119 = !lean_is_exclusive(x_23); +if (x_119 == 0) +{ +return x_23; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_23, 0); +x_121 = lean_ctor_get(x_23, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_23); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; size_t x_128; size_t x_129; lean_object* x_130; +x_123 = lean_ctor_get(x_15, 1); +lean_inc(x_123); +lean_dec(x_15); +x_124 = lean_box(0); +x_125 = 0; +x_126 = lean_box(x_125); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_123); +lean_ctor_set(x_13, 1, x_127); +x_128 = lean_array_size(x_2); +x_129 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_5); +lean_inc(x_3); +x_130 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_5, x_124, x_2, x_128, x_129, x_13, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_130) == 0) +{ +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; uint8_t x_142; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +x_133 = lean_ctor_get(x_130, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_134 = x_130; +} else { + lean_dec_ref(x_130); + x_134 = lean_box(0); +} +x_135 = lean_ctor_get(x_131, 0); +lean_inc(x_135); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_136 = x_131; +} else { + lean_dec_ref(x_131); + x_136 = lean_box(0); +} +x_137 = lean_ctor_get(x_132, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_132, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_139 = x_132; +} else { + lean_dec_ref(x_132); + x_139 = lean_box(0); +} +x_140 = lean_unsigned_to_nat(0u); +x_141 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_140, x_135); +x_142 = lean_nat_dec_eq(x_141, x_1); +lean_dec(x_141); +if (x_142 == 0) +{ +lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_139); +lean_dec(x_136); +lean_dec(x_134); +x_143 = lean_box(0); +x_144 = lean_unbox(x_137); +lean_dec(x_137); +lean_inc(x_6); +x_145 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_144, x_138, x_135, x_6, x_143, x_8, x_9, x_10, x_11, x_133); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = lean_ctor_get(x_146, 0); +lean_inc(x_149); +lean_dec(x_146); +if (lean_is_scalar(x_148)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_148; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_147); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +x_151 = lean_ctor_get(x_145, 1); +lean_inc(x_151); +lean_dec(x_145); +x_152 = lean_ctor_get(x_146, 0); +lean_inc(x_152); +lean_dec(x_146); +x_7 = x_152; +x_12 = x_151; +goto _start; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +if (lean_is_scalar(x_139)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_139; +} +lean_ctor_set(x_154, 0, x_137); +lean_ctor_set(x_154, 1, x_138); +if (lean_is_scalar(x_136)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_136; +} +lean_ctor_set(x_155, 0, x_135); +lean_ctor_set(x_155, 1, x_154); +x_156 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +if (lean_is_scalar(x_134)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_134; +} +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_133); +return x_158; +} +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_159 = lean_ctor_get(x_130, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_130, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_161 = x_130; +} else { + lean_dec_ref(x_130); + x_161 = lean_box(0); +} +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); +} else { + x_162 = x_161; +} +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; +} +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; size_t x_172; size_t x_173; lean_object* x_174; +x_163 = lean_ctor_get(x_13, 1); +x_164 = lean_ctor_get(x_13, 0); +lean_inc(x_163); +lean_inc(x_164); +lean_dec(x_13); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +x_167 = lean_box(0); +x_168 = 0; +x_169 = lean_box(x_168); +if (lean_is_scalar(x_166)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_166; +} +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_165); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_array_size(x_2); +x_173 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_5); +lean_inc(x_3); +x_174 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_5, x_167, x_2, x_172, x_173, x_171, x_8, x_9, x_10, x_11, x_12); +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; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_175, 1); +lean_inc(x_176); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_178 = x_174; +} else { + lean_dec_ref(x_174); + x_178 = lean_box(0); +} +x_179 = lean_ctor_get(x_175, 0); +lean_inc(x_179); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_180 = x_175; +} else { + lean_dec_ref(x_175); + x_180 = lean_box(0); +} +x_181 = lean_ctor_get(x_176, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_176, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_183 = x_176; +} else { + lean_dec_ref(x_176); + x_183 = lean_box(0); +} +x_184 = lean_unsigned_to_nat(0u); +x_185 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_184, x_179); +x_186 = lean_nat_dec_eq(x_185, x_1); +lean_dec(x_185); +if (x_186 == 0) +{ +lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_183); +lean_dec(x_180); +lean_dec(x_178); +x_187 = lean_box(0); +x_188 = lean_unbox(x_181); +lean_dec(x_181); +lean_inc(x_6); +x_189 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_188, x_182, x_179, x_6, x_187, x_8, x_9, x_10, x_11, x_177); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; +} else { + lean_dec_ref(x_189); + x_192 = lean_box(0); +} +x_193 = lean_ctor_get(x_190, 0); +lean_inc(x_193); +lean_dec(x_190); +if (lean_is_scalar(x_192)) { + x_194 = lean_alloc_ctor(0, 2, 0); +} else { + x_194 = x_192; +} +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_191); +return x_194; +} +else +{ +lean_object* x_195; lean_object* x_196; +x_195 = lean_ctor_get(x_189, 1); +lean_inc(x_195); +lean_dec(x_189); +x_196 = lean_ctor_get(x_190, 0); +lean_inc(x_196); +lean_dec(x_190); +x_7 = x_196; +x_12 = x_195; +goto _start; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +if (lean_is_scalar(x_183)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_183; +} +lean_ctor_set(x_198, 0, x_181); +lean_ctor_set(x_198, 1, x_182); +if (lean_is_scalar(x_180)) { + x_199 = lean_alloc_ctor(0, 2, 0); +} else { + x_199 = x_180; +} +lean_ctor_set(x_199, 0, x_179); +lean_ctor_set(x_199, 1, x_198); +x_200 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_199); +if (lean_is_scalar(x_178)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_178; +} +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_177); +return x_202; +} +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_203 = lean_ctor_get(x_174, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_174, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_205 = x_174; +} else { + lean_dec_ref(x_174); + x_205 = lean_box(0); +} +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(1, 2, 0); +} else { + x_206 = x_205; +} +lean_ctor_set(x_206, 0, x_203); +lean_ctor_set(x_206, 1, x_204); +return x_206; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_13; +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_dec(x_6); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_12, 1); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = lean_box(0); +x_18 = 0; +x_19 = lean_box(x_18); +lean_ctor_set(x_14, 0, x_19); +x_20 = lean_array_size(x_2); +x_21 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_4); +lean_inc(x_3); +x_22 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_4, x_17, x_2, x_20, x_21, x_12, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_22, 1); +x_27 = lean_ctor_get(x_22, 0); +lean_dec(x_27); +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_dec(x_30); +x_31 = !lean_is_exclusive(x_24); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_24, 0); +x_33 = lean_ctor_get(x_24, 1); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_34, x_29); +x_36 = lean_nat_dec_eq(x_35, x_1); +lean_dec(x_35); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +lean_free_object(x_24); +lean_free_object(x_23); +lean_free_object(x_22); +x_37 = lean_box(0); +x_38 = lean_unbox(x_32); +lean_dec(x_32); +lean_inc(x_5); +x_39 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_38, x_33, x_29, x_5, x_37, x_7, x_8, x_9, x_10, x_26); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +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); +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_40, 0); +lean_inc(x_43); +lean_dec(x_40); +lean_ctor_set(x_39, 0, x_43); +return x_39; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +lean_dec(x_39); +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +lean_dec(x_40); +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 +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_39, 1); +lean_inc(x_47); +lean_dec(x_39); +x_48 = lean_ctor_get(x_40, 0); +lean_inc(x_48); +lean_dec(x_40); +x_6 = x_48; +x_11 = x_47; +goto _start; +} +} +else +{ +lean_object* x_50; lean_object* x_51; +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); +x_50 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_23); +lean_ctor_set(x_22, 0, x_51); +return x_22; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_52 = lean_ctor_get(x_24, 0); +x_53 = lean_ctor_get(x_24, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_24); +x_54 = lean_unsigned_to_nat(0u); +x_55 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_54, x_29); +x_56 = lean_nat_dec_eq(x_55, x_1); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +lean_free_object(x_23); +lean_free_object(x_22); +x_57 = lean_box(0); +x_58 = lean_unbox(x_52); +lean_dec(x_52); +lean_inc(x_5); +x_59 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_58, x_53, x_29, x_5, x_57, x_7, x_8, x_9, x_10, x_26); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +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); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +x_63 = lean_ctor_get(x_60, 0); +lean_inc(x_63); +lean_dec(x_60); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_61); +return x_64; +} +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); +x_66 = lean_ctor_get(x_60, 0); +lean_inc(x_66); +lean_dec(x_60); +x_6 = x_66; +x_11 = x_65; +goto _start; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +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); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_52); +lean_ctor_set(x_68, 1, x_53); +lean_ctor_set(x_23, 1, x_68); +x_69 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_23); +lean_ctor_set(x_22, 0, x_70); +return x_22; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_71 = lean_ctor_get(x_23, 0); +lean_inc(x_71); +lean_dec(x_23); +x_72 = lean_ctor_get(x_24, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_24, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_74 = x_24; +} else { + lean_dec_ref(x_24); + x_74 = lean_box(0); +} +x_75 = lean_unsigned_to_nat(0u); +x_76 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_75, x_71); +x_77 = lean_nat_dec_eq(x_76, x_1); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_74); +lean_free_object(x_22); +x_78 = lean_box(0); +x_79 = lean_unbox(x_72); +lean_dec(x_72); +lean_inc(x_5); +x_80 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_79, x_73, x_71, x_5, x_78, x_7, x_8, x_9, x_10, x_26); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +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); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_83 = x_80; +} else { + lean_dec_ref(x_80); + x_83 = lean_box(0); +} +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +lean_dec(x_81); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_83; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_80, 1); +lean_inc(x_86); +lean_dec(x_80); +x_87 = lean_ctor_get(x_81, 0); +lean_inc(x_87); +lean_dec(x_81); +x_6 = x_87; +x_11 = x_86; +goto _start; +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +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); +if (lean_is_scalar(x_74)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_74; +} +lean_ctor_set(x_89, 0, x_72); +lean_ctor_set(x_89, 1, x_73); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_71); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_22, 0, x_92); +return x_22; +} +} +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_93 = lean_ctor_get(x_22, 1); +lean_inc(x_93); +lean_dec(x_22); +x_94 = lean_ctor_get(x_23, 0); +lean_inc(x_94); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_95 = x_23; +} else { + lean_dec_ref(x_23); + x_95 = lean_box(0); +} +x_96 = lean_ctor_get(x_24, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_24, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_98 = x_24; +} else { + lean_dec_ref(x_24); + x_98 = lean_box(0); +} +x_99 = lean_unsigned_to_nat(0u); +x_100 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_99, x_94); +x_101 = lean_nat_dec_eq(x_100, x_1); +lean_dec(x_100); +if (x_101 == 0) +{ +lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_95); +x_102 = lean_box(0); +x_103 = lean_unbox(x_96); +lean_dec(x_96); +lean_inc(x_5); +x_104 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_103, x_97, x_94, x_5, x_102, x_7, x_8, x_9, x_10, x_93); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +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); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_107 = x_104; +} else { + lean_dec_ref(x_104); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_105, 0); +lean_inc(x_108); +lean_dec(x_105); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +return x_109; +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_104, 1); +lean_inc(x_110); +lean_dec(x_104); +x_111 = lean_ctor_get(x_105, 0); +lean_inc(x_111); +lean_dec(x_105); +x_6 = x_111; +x_11 = x_110; +goto _start; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +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); +if (lean_is_scalar(x_98)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_98; +} +lean_ctor_set(x_113, 0, x_96); +lean_ctor_set(x_113, 1, x_97); +if (lean_is_scalar(x_95)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_95; +} +lean_ctor_set(x_114, 0, x_94); +lean_ctor_set(x_114, 1, x_113); +x_115 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_93); +return x_117; +} +} +} +else +{ +uint8_t x_118; +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); +x_118 = !lean_is_exclusive(x_22); +if (x_118 == 0) +{ +return x_22; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_22, 0); +x_120 = lean_ctor_get(x_22, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_22); +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; +} +} +} +else +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; size_t x_127; size_t x_128; lean_object* x_129; +x_122 = lean_ctor_get(x_14, 1); +lean_inc(x_122); +lean_dec(x_14); +x_123 = lean_box(0); +x_124 = 0; +x_125 = lean_box(x_124); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_122); +lean_ctor_set(x_12, 1, x_126); +x_127 = lean_array_size(x_2); +x_128 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_4); +lean_inc(x_3); +x_129 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_4, x_123, x_2, x_127, x_128, x_12, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_129) == 0) +{ +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; uint8_t x_141; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_129, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_133 = x_129; +} else { + lean_dec_ref(x_129); + x_133 = lean_box(0); +} +x_134 = lean_ctor_get(x_130, 0); +lean_inc(x_134); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_135 = x_130; +} else { + lean_dec_ref(x_130); + x_135 = lean_box(0); +} +x_136 = lean_ctor_get(x_131, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_131, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_138 = x_131; +} else { + lean_dec_ref(x_131); + x_138 = lean_box(0); +} +x_139 = lean_unsigned_to_nat(0u); +x_140 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_139, x_134); +x_141 = lean_nat_dec_eq(x_140, x_1); +lean_dec(x_140); +if (x_141 == 0) +{ +lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_138); +lean_dec(x_135); +lean_dec(x_133); +x_142 = lean_box(0); +x_143 = lean_unbox(x_136); +lean_dec(x_136); +lean_inc(x_5); +x_144 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_143, x_137, x_134, x_5, x_142, x_7, x_8, x_9, x_10, x_132); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; +} else { + lean_dec_ref(x_144); + x_147 = lean_box(0); +} +x_148 = lean_ctor_get(x_145, 0); +lean_inc(x_148); +lean_dec(x_145); +if (lean_is_scalar(x_147)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_147; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_146); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_144, 1); +lean_inc(x_150); +lean_dec(x_144); +x_151 = lean_ctor_get(x_145, 0); +lean_inc(x_151); +lean_dec(x_145); +x_6 = x_151; +x_11 = x_150; +goto _start; +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +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); +if (lean_is_scalar(x_138)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_138; +} +lean_ctor_set(x_153, 0, x_136); +lean_ctor_set(x_153, 1, x_137); +if (lean_is_scalar(x_135)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_135; +} +lean_ctor_set(x_154, 0, x_134); +lean_ctor_set(x_154, 1, x_153); +x_155 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +if (lean_is_scalar(x_133)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_133; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_132); +return x_157; +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +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); +x_158 = lean_ctor_get(x_129, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_129, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_160 = x_129; +} else { + lean_dec_ref(x_129); + x_160 = lean_box(0); +} +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; +} +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; size_t x_171; size_t x_172; lean_object* x_173; +x_162 = lean_ctor_get(x_12, 1); +x_163 = lean_ctor_get(x_12, 0); +lean_inc(x_162); +lean_inc(x_163); +lean_dec(x_12); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_165 = x_162; +} else { + lean_dec_ref(x_162); + x_165 = lean_box(0); +} +x_166 = lean_box(0); +x_167 = 0; +x_168 = lean_box(x_167); +if (lean_is_scalar(x_165)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_165; +} +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_164); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_163); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_array_size(x_2); +x_172 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_4); +lean_inc(x_3); +x_173 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_2, x_3, x_4, x_166, x_2, x_171, x_172, x_170, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_174, 1); +lean_inc(x_175); +x_176 = lean_ctor_get(x_173, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_177 = x_173; +} else { + lean_dec_ref(x_173); + x_177 = lean_box(0); +} +x_178 = lean_ctor_get(x_174, 0); +lean_inc(x_178); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_179 = x_174; +} else { + lean_dec_ref(x_174); + x_179 = lean_box(0); +} +x_180 = lean_ctor_get(x_175, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_175, 1); +lean_inc(x_181); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_182 = x_175; +} else { + lean_dec_ref(x_175); + x_182 = lean_box(0); +} +x_183 = lean_unsigned_to_nat(0u); +x_184 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_183, x_178); +x_185 = lean_nat_dec_eq(x_184, x_1); +lean_dec(x_184); +if (x_185 == 0) +{ +lean_object* x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_182); +lean_dec(x_179); +lean_dec(x_177); +x_186 = lean_box(0); +x_187 = lean_unbox(x_180); +lean_dec(x_180); +lean_inc(x_5); +x_188 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_187, x_181, x_178, x_5, x_186, x_7, x_8, x_9, x_10, x_176); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +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); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_191 = x_188; +} else { + lean_dec_ref(x_188); + x_191 = lean_box(0); +} +x_192 = lean_ctor_get(x_189, 0); +lean_inc(x_192); +lean_dec(x_189); +if (lean_is_scalar(x_191)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_191; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_190); +return x_193; +} +else +{ +lean_object* x_194; lean_object* x_195; +x_194 = lean_ctor_get(x_188, 1); +lean_inc(x_194); +lean_dec(x_188); +x_195 = lean_ctor_get(x_189, 0); +lean_inc(x_195); +lean_dec(x_189); +x_6 = x_195; +x_11 = x_194; +goto _start; +} +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +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); +if (lean_is_scalar(x_182)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_182; +} +lean_ctor_set(x_197, 0, x_180); +lean_ctor_set(x_197, 1, x_181); +if (lean_is_scalar(x_179)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_179; +} +lean_ctor_set(x_198, 0, x_178); +lean_ctor_set(x_198, 1, x_197); +x_199 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1; +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +if (lean_is_scalar(x_177)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_177; +} +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_176); +return x_201; +} +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +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); +x_202 = lean_ctor_get(x_173, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_173, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_204 = x_173; +} else { + lean_dec_ref(x_173); + x_204 = lean_box(0); +} +if (lean_is_scalar(x_204)) { + x_205 = lean_alloc_ctor(1, 2, 0); +} else { + x_205 = x_204; +} +lean_ctor_set(x_205, 0, x_202); +lean_ctor_set(x_205, 1, x_203); +return x_205; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_5, 1); +x_16 = lean_nat_dec_lt(x_7, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_array_fget(x_1, x_7); +x_19 = l_Lean_Expr_fvarId_x21(x_18); +lean_dec(x_18); +x_20 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_3, x_19); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_inc(x_7); +x_21 = lean_array_push(x_6, x_7); +x_22 = lean_ctor_get(x_5, 2); +x_23 = lean_nat_add(x_7, x_22); +lean_dec(x_7); +x_6 = x_21; +x_7 = x_23; +x_8 = lean_box(0); +x_9 = lean_box(0); +goto _start; +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_20); +x_25 = lean_ctor_get(x_5, 2); +x_26 = lean_nat_add(x_7, x_25); +lean_dec(x_7); +x_7 = x_26; +x_8 = lean_box(0); +x_9 = lean_box(0); +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_4, 1); +x_15 = lean_nat_dec_lt(x_6, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_array_fget(x_1, x_6); +x_18 = l_Lean_Expr_fvarId_x21(x_17); +lean_dec(x_17); +x_19 = l_Lean_RBNode_findCore___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2(x_2, x_18); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_inc(x_6); +x_20 = lean_array_push(x_5, x_6); +x_21 = lean_ctor_get(x_4, 2); +x_22 = lean_nat_add(x_6, x_21); +lean_dec(x_6); +x_5 = x_20; +x_6 = x_22; +x_7 = lean_box(0); +x_8 = lean_box(0); +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_19); +x_24 = lean_ctor_get(x_4, 2); +x_25 = lean_nat_add(x_6, x_24); +lean_dec(x_6); +x_6 = x_25; +x_7 = lean_box(0); +x_8 = lean_box(0); +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20(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) +{ +size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; +x_6 = 1; +x_7 = lean_usize_sub(x_2, x_6); +x_8 = lean_array_uget(x_1, x_7); +x_9 = l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2(x_4, x_8); +lean_dec(x_8); +lean_dec(x_4); +x_2 = x_7; +x_4 = x_9; +goto _start; +} +else +{ +return x_4; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +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_11 = lean_array_mk(x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_2); +lean_ctor_set(x_14, 2, x_13); +x_15 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__19(x_3, x_4, x_14, x_14, x_11, x_12, lean_box(0), lean_box(0), x_6, x_7, x_8, x_9, x_10); +lean_dec(x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_array_to_list(x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_15, 0, x_19); +return x_15; +} +else +{ +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_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_array_to_list(x_20); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_box(0); +x_15 = 0; +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_1); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_18); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_4); +x_20 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17(x_2, x_3, x_4, x_5, x_14, 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; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +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_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_ctor_get(x_22, 0); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__1(x_4, x_6, x_3, x_25, x_26, x_9, x_10, x_11, x_12, x_24); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_25); +return x_27; +} +else +{ +uint8_t x_28; +lean_dec(x_22); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_20, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_23, 0); +lean_inc(x_30); +lean_dec(x_23); +lean_ctor_set(x_20, 0, x_30); +return x_20; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_dec(x_20); +x_32 = lean_ctor_get(x_23, 0); +lean_inc(x_32); +lean_dec(x_23); +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; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_20); +if (x_34 == 0) +{ +return x_20; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_20, 0); +x_36 = lean_ctor_get(x_20, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_20); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("numParams == xs.size\n ", 25, 25); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.EMatchTheorem.0.Lean.Meta.Grind.checkCoverage", 77, 77); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___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; +x_1 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3; +x_3 = lean_unsigned_to_nat(263u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__2; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_3); +x_11 = lean_nat_dec_eq(x_1, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_10); +lean_dec(x_3); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4; +x_13 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1(x_12, x_5, x_6, x_7, x_8, x_9); +return x_13; +} +else +{ +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_48; uint8_t x_49; +x_14 = lean_box(0); +x_15 = lean_ctor_get(x_2, 1); +x_16 = lean_array_get_size(x_15); +lean_inc(x_3); +x_17 = lean_array_to_list(x_3); +x_18 = l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__3(x_17, x_14); +x_19 = l_Lean_RBTree_ofList___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__4(x_18); +x_20 = lean_box(0); +x_48 = lean_unsigned_to_nat(0u); +x_49 = lean_nat_dec_lt(x_48, x_16); +if (x_49 == 0) +{ +lean_dec(x_16); +x_21 = x_14; +goto block_47; +} +else +{ +size_t x_50; size_t x_51; lean_object* x_52; +x_50 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_51 = 0; +x_52 = l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20(x_15, x_50, x_51, x_14); +x_21 = x_52; +goto block_47; +} +block_47: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__5(x_1, x_3, x_10, x_21, x_14); +lean_inc(x_22); +x_23 = l_Lean_RBTree_ofList___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__4(x_22); +lean_inc(x_5); +lean_inc(x_23); +lean_inc(x_22); +x_24 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__9(x_14, x_19, x_20, x_22, x_22, x_22, x_23, lean_box(0), x_5, x_6, x_7, x_8, x_9); +lean_dec(x_22); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_28, x_26); +x_30 = lean_nat_dec_eq(x_29, x_1); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_free_object(x_24); +x_31 = lean_box(0); +x_32 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2(x_23, x_1, x_3, x_14, x_19, x_10, x_26, x_31, x_5, x_6, x_7, x_8, x_27); +lean_dec(x_3); +return x_32; +} +else +{ +lean_object* x_33; +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_33 = lean_box(0); +lean_ctor_set(x_24, 0, x_33); +return x_24; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_34 = lean_ctor_get(x_24, 0); +x_35 = lean_ctor_get(x_24, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_24); +x_36 = lean_unsigned_to_nat(0u); +x_37 = l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(x_36, x_34); +x_38 = lean_nat_dec_eq(x_37, x_1); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_box(0); +x_40 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2(x_23, x_1, x_3, x_14, x_19, x_10, x_34, x_39, x_5, x_6, x_7, x_8, x_35); +lean_dec(x_3); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_35); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_24); +if (x_43 == 0) +{ +return x_24; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_24, 0); +x_45 = lean_ctor_get(x_24, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_24); +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; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_10 = lean_infer_type(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 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_inc(x_12); +lean_dec(x_10); +lean_inc(x_2); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_2); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___boxed), 9, 2); +lean_closure_set(x_14, 0, x_2); +lean_closure_set(x_14, 1, x_3); +x_15 = 0; +x_16 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_11, x_13, x_14, x_15, x_5, x_6, x_7, x_8, x_12); +return x_16; +} +else +{ +uint8_t x_17; +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_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) +{ +return x_10; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_10); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage(lean_object* x_1, lean_object* x_2, 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 = lean_ctor_get(x_3, 0); +lean_inc(x_9); +x_10 = lean_nat_dec_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__4(x_1, x_2, x_3, x_11, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +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_8); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_DHashMap_Internal_AssocList_foldrM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__5___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_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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) { +_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_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7___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_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__6___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__7(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__8___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_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_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11___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_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__10___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__11(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___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) { +_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_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13___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_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__12___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__13(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___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: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15___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: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_16 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__14___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__15(x_1, x_2, x_3, x_4, x_5, x_14, x_15, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___lambda__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16(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_4); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__17(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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__19___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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__18___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__19(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20___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_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__20(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__1(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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" : ", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_1); +x_11 = lean_infer_type(x_1, x_6, x_7, x_8, x_9, 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; 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_13 = lean_ctor_get(x_11, 0); +x_14 = l_Lean_MessageData_ofExpr(x_1); +lean_inc(x_2); +x_15 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2; +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_MessageData_ofExpr(x_13); +x_19 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_2); +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_box(x_3); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_11, 0, x_24); +return x_11; +} +else +{ +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; +x_25 = lean_ctor_get(x_11, 0); +x_26 = lean_ctor_get(x_11, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_11); +x_27 = l_Lean_MessageData_ofExpr(x_1); +lean_inc(x_2); +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_2); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2; +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_MessageData_ofExpr(x_25); +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_2); +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_4); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_box(x_3); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_26); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_4); +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; +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___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) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_5, 1); +x_16 = lean_nat_dec_lt(x_7, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_6); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_6, 0); +x_20 = lean_ctor_get(x_6, 1); +x_21 = l_List_elem___at_Lean_Meta_Occurrences_contains___spec__1(x_7, x_1); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_5, 2); +x_23 = lean_nat_add(x_7, x_22); +lean_dec(x_7); +x_7 = x_23; +x_8 = lean_box(0); +x_9 = lean_box(0); +goto _start; +} +else +{ +lean_object* x_25; uint8_t x_26; +lean_free_object(x_6); +x_25 = lean_array_fget(x_2, x_7); +x_26 = lean_unbox(x_19); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_27 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3; +x_28 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_box(0); +x_30 = lean_unbox(x_19); +lean_dec(x_19); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +x_31 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(x_25, x_3, x_30, x_28, x_29, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_33 = !lean_is_exclusive(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); +lean_dec(x_32); +lean_ctor_set(x_31, 0, x_35); +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +lean_dec(x_31); +x_37 = lean_ctor_get(x_32, 0); +lean_inc(x_37); +lean_dec(x_32); +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 +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_dec(x_31); +x_40 = lean_ctor_get(x_32, 0); +lean_inc(x_40); +lean_dec(x_32); +x_41 = lean_ctor_get(x_5, 2); +x_42 = lean_nat_add(x_7, x_41); +lean_dec(x_7); +x_6 = x_40; +x_7 = x_42; +x_8 = lean_box(0); +x_9 = lean_box(0); +x_14 = x_39; +goto _start; +} +} +else +{ +uint8_t x_44; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_31); +if (x_44 == 0) +{ +return x_31; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_31, 0); +x_46 = lean_ctor_get(x_31, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_31); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_19); +x_48 = 0; +x_49 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +x_50 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(x_25, x_3, x_48, x_20, x_49, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) +{ +uint8_t x_52; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_52 = !lean_is_exclusive(x_50); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 0); +lean_dec(x_53); +x_54 = lean_ctor_get(x_51, 0); +lean_inc(x_54); +lean_dec(x_51); +lean_ctor_set(x_50, 0, x_54); +return x_50; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +lean_dec(x_50); +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +lean_dec(x_51); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_50, 1); +lean_inc(x_58); +lean_dec(x_50); +x_59 = lean_ctor_get(x_51, 0); +lean_inc(x_59); +lean_dec(x_51); +x_60 = lean_ctor_get(x_5, 2); +x_61 = lean_nat_add(x_7, x_60); +lean_dec(x_7); +x_6 = x_59; +x_7 = x_61; +x_8 = lean_box(0); +x_9 = lean_box(0); +x_14 = x_58; +goto _start; +} +} +else +{ +uint8_t x_63; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_50); +if (x_63 == 0) +{ +return x_50; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_50, 0); +x_65 = lean_ctor_get(x_50, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_50); +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 +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_6, 0); +x_68 = lean_ctor_get(x_6, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_6); +x_69 = l_List_elem___at_Lean_Meta_Occurrences_contains___spec__1(x_7, x_1); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_ctor_get(x_5, 2); +x_72 = lean_nat_add(x_7, x_71); +lean_dec(x_7); +x_6 = x_70; +x_7 = x_72; +x_8 = lean_box(0); +x_9 = lean_box(0); +goto _start; +} +else +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_array_fget(x_2, x_7); +x_75 = lean_unbox(x_67); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; +x_76 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3; +x_77 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_77, 0, x_68); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_box(0); +x_79 = lean_unbox(x_67); +lean_dec(x_67); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +x_80 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(x_74, x_3, x_79, x_77, x_78, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_83 = x_80; +} else { + lean_dec_ref(x_80); + x_83 = lean_box(0); +} +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +lean_dec(x_81); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_83; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_80, 1); +lean_inc(x_86); +lean_dec(x_80); +x_87 = lean_ctor_get(x_81, 0); +lean_inc(x_87); +lean_dec(x_81); +x_88 = lean_ctor_get(x_5, 2); +x_89 = lean_nat_add(x_7, x_88); +lean_dec(x_7); +x_6 = x_87; +x_7 = x_89; +x_8 = lean_box(0); +x_9 = lean_box(0); +x_14 = x_86; +goto _start; +} +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_91 = lean_ctor_get(x_80, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_80, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_93 = x_80; +} else { + lean_dec_ref(x_80); + 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 +{ +uint8_t x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_67); +x_95 = 0; +x_96 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +x_97 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(x_74, x_3, x_95, x_68, x_96, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; +} else { + lean_dec_ref(x_97); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +lean_dec(x_98); +if (lean_is_scalar(x_100)) { + x_102 = lean_alloc_ctor(0, 2, 0); +} else { + x_102 = x_100; +} +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_99); +return x_102; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_97, 1); +lean_inc(x_103); +lean_dec(x_97); +x_104 = lean_ctor_get(x_98, 0); +lean_inc(x_104); +lean_dec(x_98); +x_105 = lean_ctor_get(x_5, 2); +x_106 = lean_nat_add(x_7, x_105); +lean_dec(x_7); +x_6 = x_104; +x_7 = x_106; +x_8 = lean_box(0); +x_9 = lean_box(0); +x_14 = x_103; +goto _start; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_3); +x_108 = lean_ctor_get(x_97, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_97, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_110 = x_97; +} else { + lean_dec_ref(x_97); + 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; +} +} +} +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = 1; +x_2 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_3 = lean_box(x_1); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_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; +x_9 = lean_array_get_size(x_2); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_9); +lean_ctor_set(x_12, 2, x_11); +x_13 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_15 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1(x_1, x_2, x_13, x_12, x_12, x_14, x_10, lean_box(0), lean_box(0), x_4, x_5, x_6, x_7, x_8); +lean_dec(x_12); +if (lean_obj_tag(x_15) == 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_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_18, x_4, x_5, x_6, x_7, x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt(lean_object* x_1, lean_object* x_2, 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_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_2); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___boxed), 8, 1); +lean_closure_set(x_13, 0, x_3); +x_14 = 0; +x_15 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_10, x_12, x_13, x_14, x_4, x_5, x_6, x_7, x_11); +return x_15; +} +else +{ +uint8_t x_16; +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_16 = !lean_is_exclusive(x_9); +if (x_16 == 0) +{ +return x_9; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 0); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_9); +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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___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); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_addEMatchTheorem___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1; +x_8 = lean_panic_fn(x_7, x_1); +x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2; +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; +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +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_6, 6); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_st_ref_take(x_7, x_8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = !lean_is_exclusive(x_11); +if (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; uint8_t x_23; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_ctor_get(x_11, 4); +lean_dec(x_15); +x_16 = l_Lean_ScopedEnvExtension_addCore___rarg(x_14, x_1, x_2, x_3, x_9); +x_17 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1; +lean_ctor_set(x_11, 4, x_17); +lean_ctor_set(x_11, 0, x_16); +x_18 = lean_st_ref_set(x_7, x_11, x_12); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_st_ref_take(x_5, x_19); +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(x_20); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_21, 1); +lean_dec(x_24); +x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2; +lean_ctor_set(x_21, 1, x_25); +x_26 = lean_st_ref_set(x_5, x_21, x_22); +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 +{ +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_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 2); +x_35 = lean_ctor_get(x_21, 3); +x_36 = lean_ctor_get(x_21, 4); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_21); +x_37 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2; +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_38, 2, x_34); +lean_ctor_set(x_38, 3, x_35); +lean_ctor_set(x_38, 4, x_36); +x_39 = lean_st_ref_set(x_5, x_38, x_22); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +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; 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; +x_44 = lean_ctor_get(x_11, 0); +x_45 = lean_ctor_get(x_11, 1); +x_46 = lean_ctor_get(x_11, 2); +x_47 = lean_ctor_get(x_11, 3); +x_48 = lean_ctor_get(x_11, 5); +x_49 = lean_ctor_get(x_11, 6); +x_50 = lean_ctor_get(x_11, 7); +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_dec(x_11); +x_51 = l_Lean_ScopedEnvExtension_addCore___rarg(x_44, x_1, x_2, x_3, x_9); +x_52 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1; +x_53 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_45); +lean_ctor_set(x_53, 2, x_46); +lean_ctor_set(x_53, 3, x_47); +lean_ctor_set(x_53, 4, x_52); +lean_ctor_set(x_53, 5, x_48); +lean_ctor_set(x_53, 6, x_49); +lean_ctor_set(x_53, 7, x_50); +x_54 = lean_st_ref_set(x_7, x_53, x_12); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_5, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_57, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 3); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 4); +lean_inc(x_62); +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); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +x_64 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2; +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 5, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_65, 2, x_60); +lean_ctor_set(x_65, 3, x_61); +lean_ctor_set(x_65, 4, x_62); +x_66 = lean_st_ref_set(x_5, x_65, x_58); +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); +} +x_69 = lean_box(0); +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_68; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_67); +return x_70; +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_Lean_Meta_Grind_ppPattern(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_Lean_Meta_Grind_ppPattern(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_5; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_2); +x_1 = x_8; +x_2 = x_9; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_addEMatchTheorem___lambda__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +uint8_t x_2; +x_2 = 1; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_13 = lean_array_mk(x_1); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_2); +x_15 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_3); +lean_ctor_set(x_15, 2, x_4); +lean_ctor_set(x_15, 3, x_5); +lean_ctor_set(x_15, 4, x_6); +lean_ctor_set(x_15, 5, x_14); +x_16 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1; +x_17 = 0; +x_18 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2(x_16, x_15, x_17, x_8, x_9, x_10, x_11, x_12); +return x_18; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid pattern(s) for `", 24, 24); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\nthe following theorem parameters cannot be instantiated:", 57, 57); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_2); +lean_inc(x_1); +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage(x_1, x_2, x_3, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +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_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__2(x_4, x_5, x_1, x_2, x_6, x_7, x_17, x_9, x_10, x_11, x_12, x_16); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +return x_18; +} +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; lean_object* x_26; lean_object* x_27; +lean_dec(x_7); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = lean_ctor_get(x_15, 0); +lean_inc(x_20); +lean_dec(x_15); +lean_inc(x_4); +x_21 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_6, x_4); +x_22 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_21, x_4); +x_23 = l_Lean_MessageData_ofList(x_22); +x_24 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_27 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt(x_1, x_2, x_20, x_9, x_10, x_11, x_12, x_19); +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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +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_27); +x_30 = l_Lean_MessageData_ofName(x_5); +x_31 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4; +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_indentD(x_26); +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6; +x_38 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_indentD(x_28); +x_40 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_24); +x_42 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_41, x_9, x_10, x_11, x_12, x_29); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_42); +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_dec(x_26); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +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 +{ +uint8_t x_51; +lean_dec(x_12); +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_14); +if (x_51 == 0) +{ +return x_14; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_14, 0); +x_53 = lean_ctor_get(x_14, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_14); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` is not a theorem, you cannot assign patterns to non-theorems for the `grind` tactic", 85, 85); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_addEMatchTheorem___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("symbols.all fun s => s matches .const _\n ", 42, 42); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; +x_2 = l_Lean_Meta_Grind_addEMatchTheorem___closed__4; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.addEMatchTheorem", 32, 32); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__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_EMatchTheorems_insert___closed__1; +x_2 = l_Lean_Meta_Grind_addEMatchTheorem___closed__6; +x_3 = lean_unsigned_to_nat(340u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l_Lean_Meta_Grind_addEMatchTheorem___closed__5; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ematch", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("pattern", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_mkGroundPattern___closed__1; +x_2 = l_Lean_Meta_Grind_addEMatchTheorem___closed__8; +x_3 = l_Lean_Meta_Grind_addEMatchTheorem___closed__9; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(": ", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_addEMatchTheorem___closed__11; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem(lean_object* x_1, lean_object* x_2, 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_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 2) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_16 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_14, x_15); +lean_inc(x_1); +x_17 = l_Lean_Expr_const___override(x_1, x_16); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_18 = l_Lean_Meta_Grind_NormalizePattern_main(x_3, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_19, 0); +x_24 = lean_ctor_get(x_19, 1); +lean_dec(x_24); +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +x_28 = l_Lean_Meta_Grind_addEMatchTheorem___closed__3; +lean_inc(x_26); +x_29 = l_List_all___rarg(x_26, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_free_object(x_20); +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_19); +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_2); +lean_dec(x_1); +x_30 = l_Lean_Meta_Grind_addEMatchTheorem___closed__7; +x_31 = l_panic___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_30, x_4, x_5, x_6, x_7, x_21); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = l_Lean_Meta_Grind_addEMatchTheorem___closed__10; +x_33 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_32, x_4, x_5, x_6, x_7, x_21); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_unbox(x_34); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_free_object(x_20); +lean_free_object(x_19); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_box(0); +x_38 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_27, x_15, x_1, x_23, x_26, x_37, x_4, x_5, x_6, x_7, x_36); +return x_38; +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_33); +if (x_39 == 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; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_40 = lean_ctor_get(x_33, 1); +x_41 = lean_ctor_get(x_33, 0); +lean_dec(x_41); +lean_inc(x_1); +x_42 = l_Lean_MessageData_ofName(x_1); +x_43 = l_Lean_Meta_Grind_ppPattern___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_42); +lean_ctor_set(x_33, 0, x_43); +x_44 = l_Lean_Meta_Grind_addEMatchTheorem___closed__12; +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_44); +lean_ctor_set(x_20, 0, x_33); +lean_inc(x_23); +x_45 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_23, x_15); +x_46 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_45, x_15); +x_47 = l_Lean_MessageData_ofList(x_46); +lean_ctor_set_tag(x_19, 7); +lean_ctor_set(x_19, 1, x_47); +lean_ctor_set(x_19, 0, x_20); +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_19); +lean_ctor_set(x_48, 1, x_43); +x_49 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_32, x_48, x_4, x_5, x_6, x_7, x_40); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_27, x_15, x_1, x_23, x_26, x_50, x_4, x_5, x_6, x_7, x_51); +lean_dec(x_50); +return x_52; +} +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; +x_53 = lean_ctor_get(x_33, 1); +lean_inc(x_53); +lean_dec(x_33); +lean_inc(x_1); +x_54 = l_Lean_MessageData_ofName(x_1); +x_55 = l_Lean_Meta_Grind_ppPattern___closed__4; +x_56 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_Meta_Grind_addEMatchTheorem___closed__12; +lean_ctor_set_tag(x_20, 7); +lean_ctor_set(x_20, 1, x_57); +lean_ctor_set(x_20, 0, x_56); +lean_inc(x_23); +x_58 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_23, x_15); +x_59 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_58, x_15); +x_60 = l_Lean_MessageData_ofList(x_59); +lean_ctor_set_tag(x_19, 7); +lean_ctor_set(x_19, 1, x_60); +lean_ctor_set(x_19, 0, x_20); +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_19); +lean_ctor_set(x_61, 1, x_55); +x_62 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_32, x_61, x_4, x_5, x_6, x_7, x_53); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_27, x_15, x_1, x_23, x_26, x_63, x_4, x_5, x_6, x_7, x_64); +lean_dec(x_63); +return x_65; +} +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_20, 0); +x_67 = lean_ctor_get(x_20, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_20); +x_68 = l_Lean_Meta_Grind_addEMatchTheorem___closed__3; +lean_inc(x_66); +x_69 = l_List_all___rarg(x_66, x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_67); +lean_dec(x_66); +lean_free_object(x_19); +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_2); +lean_dec(x_1); +x_70 = l_Lean_Meta_Grind_addEMatchTheorem___closed__7; +x_71 = l_panic___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_70, x_4, x_5, x_6, x_7, x_21); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_72 = l_Lean_Meta_Grind_addEMatchTheorem___closed__10; +x_73 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_72, x_4, x_5, x_6, x_7, x_21); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_unbox(x_74); +lean_dec(x_74); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_free_object(x_19); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_box(0); +x_78 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_67, x_15, x_1, x_23, x_66, x_77, x_4, x_5, x_6, x_7, 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_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_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_80 = x_73; +} else { + lean_dec_ref(x_73); + x_80 = lean_box(0); +} +lean_inc(x_1); +x_81 = l_Lean_MessageData_ofName(x_1); +x_82 = l_Lean_Meta_Grind_ppPattern___closed__4; +if (lean_is_scalar(x_80)) { + x_83 = lean_alloc_ctor(7, 2, 0); +} else { + x_83 = x_80; + lean_ctor_set_tag(x_83, 7); +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_81); +x_84 = l_Lean_Meta_Grind_addEMatchTheorem___closed__12; +x_85 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +lean_inc(x_23); +x_86 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_23, x_15); +x_87 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_86, x_15); +x_88 = l_Lean_MessageData_ofList(x_87); +lean_ctor_set_tag(x_19, 7); +lean_ctor_set(x_19, 1, x_88); +lean_ctor_set(x_19, 0, x_85); +x_89 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_89, 0, x_19); +lean_ctor_set(x_89, 1, x_82); +x_90 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_72, x_89, x_4, x_5, x_6, x_7, x_79); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_67, x_15, x_1, x_23, x_66, x_91, x_4, x_5, x_6, x_7, x_92); +lean_dec(x_91); +return x_93; +} +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_94 = lean_ctor_get(x_19, 0); +lean_inc(x_94); +lean_dec(x_19); +x_95 = lean_ctor_get(x_20, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_20, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_97 = x_20; +} else { + lean_dec_ref(x_20); + x_97 = lean_box(0); +} +x_98 = l_Lean_Meta_Grind_addEMatchTheorem___closed__3; +lean_inc(x_95); +x_99 = l_List_all___rarg(x_95, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_17); +lean_dec(x_2); +lean_dec(x_1); +x_100 = l_Lean_Meta_Grind_addEMatchTheorem___closed__7; +x_101 = l_panic___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_100, x_4, x_5, x_6, x_7, x_21); +return x_101; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_102 = l_Lean_Meta_Grind_addEMatchTheorem___closed__10; +x_103 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_102, x_4, x_5, x_6, x_7, x_21); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_unbox(x_104); +lean_dec(x_104); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_97); +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_box(0); +x_108 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_96, x_15, x_1, x_94, x_95, x_107, x_4, x_5, x_6, x_7, x_106); +return x_108; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_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); +} +lean_inc(x_1); +x_111 = l_Lean_MessageData_ofName(x_1); +x_112 = l_Lean_Meta_Grind_ppPattern___closed__4; +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(7, 2, 0); +} else { + x_113 = x_110; + lean_ctor_set_tag(x_113, 7); +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +x_114 = l_Lean_Meta_Grind_addEMatchTheorem___closed__12; +if (lean_is_scalar(x_97)) { + x_115 = lean_alloc_ctor(7, 2, 0); +} else { + x_115 = x_97; + lean_ctor_set_tag(x_115, 7); +} +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +lean_inc(x_94); +x_116 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_94, x_15); +x_117 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_116, x_15); +x_118 = l_Lean_MessageData_ofList(x_117); +x_119 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_119, 0, x_115); +lean_ctor_set(x_119, 1, x_118); +x_120 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_112); +x_121 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_102, x_120, x_4, x_5, x_6, x_7, x_109); +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(x_121); +x_124 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_17, x_2, x_96, x_15, x_1, x_94, x_95, x_122, x_4, x_5, x_6, x_7, x_123); +lean_dec(x_122); +return x_124; +} +} +} +} +else +{ +uint8_t x_125; +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_125 = !lean_is_exclusive(x_18); +if (x_125 == 0) +{ +return x_18; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_18, 0); +x_127 = lean_ctor_get(x_18, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_18); +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_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +x_129 = lean_ctor_get(x_9, 1); +lean_inc(x_129); +lean_dec(x_9); +x_130 = l_Lean_MessageData_ofName(x_1); +x_131 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4; +x_132 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_130); +x_133 = l_Lean_Meta_Grind_addEMatchTheorem___closed__2; +x_134 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_134, x_4, x_5, x_6, x_7, x_129); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_135; +} +} +else +{ +uint8_t x_136; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_136 = !lean_is_exclusive(x_9); +if (x_136 == 0) +{ +return x_9; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_9, 0); +x_138 = lean_ctor_get(x_9, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_9); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_st_ref_get(x_1, x_2); +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; lean_object* x_9; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1; +x_8 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1; +x_9 = l_Lean_ScopedEnvExtension_getState___rarg(x_7, x_8, x_6); +lean_dec(x_6); +lean_ctor_set(x_3, 0, x_9); +return x_3; +} +else +{ +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_3, 0); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_3); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1; +x_14 = l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1; +x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, x_12); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_getEMatchTheorems___rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_getEMatchTheorems___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_getEMatchTheorems(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* initialize_Lean_HeadIndex(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_PrettyPrinter(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Util_FoldConsts(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Util_CollectFVars(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_InferType(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; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_HeadIndex(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_PrettyPrinter(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_FoldConsts(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_CollectFVars(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_InferType(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_instInhabitedOrigin___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedOrigin___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedOrigin___closed__1); +l_Lean_Meta_Grind_instInhabitedOrigin = _init_l_Lean_Meta_Grind_instInhabitedOrigin(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedOrigin); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__8); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__9); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__10); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__11); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__12); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__13); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__14); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__15); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__16); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_51____closed__17); +l_Lean_Meta_Grind_instReprOrigin___closed__1 = _init_l_Lean_Meta_Grind_instReprOrigin___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instReprOrigin___closed__1); +l_Lean_Meta_Grind_instReprOrigin = _init_l_Lean_Meta_Grind_instReprOrigin(); +lean_mark_persistent(l_Lean_Meta_Grind_instReprOrigin); +l_Lean_Meta_Grind_Origin_key___closed__1 = _init_l_Lean_Meta_Grind_Origin_key___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_key___closed__1); +l_Lean_Meta_Grind_Origin_key___closed__2 = _init_l_Lean_Meta_Grind_Origin_key___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_key___closed__2); +l_Lean_Meta_Grind_Origin_pp___rarg___closed__1 = _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___rarg___closed__1); +l_Lean_Meta_Grind_Origin_pp___rarg___closed__2 = _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___rarg___closed__2); +l_Lean_Meta_Grind_Origin_pp___rarg___closed__3 = _init_l_Lean_Meta_Grind_Origin_pp___rarg___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_Origin_pp___rarg___closed__3); +l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__1); +l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2); +l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3 = _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3); +l_Lean_Meta_Grind_instInhabitedEMatchTheorem = _init_l_Lean_Meta_Grind_instInhabitedEMatchTheorem(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedEMatchTheorem); +l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1 = _init_l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__1); +l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2 = _init_l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1___closed__2); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1(); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2(); +l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___closed__1); +l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1 = _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1); +l_Lean_Meta_Grind_EMatchTheorems_insert___closed__2 = _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_insert___closed__2); +l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3 = _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3); +l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4 = _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_insert___closed__4); +l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__1 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__1); +l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2(); +lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1___closed__2); +l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____spec__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__8); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__9); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__10); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__11); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__12); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__13); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__14); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__15); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__16); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__17); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__18); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__19); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687____closed__20); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_687_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt = lean_io_result_get_value(res); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt); +lean_dec_ref(res); +}l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare); +l_Lean_Meta_Grind_mkGroundPattern___closed__1 = _init_l_Lean_Meta_Grind_mkGroundPattern___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGroundPattern___closed__1); +l_Lean_Meta_Grind_mkGroundPattern___closed__2 = _init_l_Lean_Meta_Grind_mkGroundPattern___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGroundPattern___closed__2); +l_Lean_Meta_Grind_mkGroundPattern___closed__3 = _init_l_Lean_Meta_Grind_mkGroundPattern___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGroundPattern___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3); +l_Lean_Meta_Grind_ppPattern___closed__1 = _init_l_Lean_Meta_Grind_ppPattern___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__1); +l_Lean_Meta_Grind_ppPattern___closed__2 = _init_l_Lean_Meta_Grind_ppPattern___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__2); +l_Lean_Meta_Grind_ppPattern___closed__3 = _init_l_Lean_Meta_Grind_ppPattern___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__3); +l_Lean_Meta_Grind_ppPattern___closed__4 = _init_l_Lean_Meta_Grind_ppPattern___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__4); +l_Lean_Meta_Grind_ppPattern___closed__5 = _init_l_Lean_Meta_Grind_ppPattern___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__5); +l_Lean_Meta_Grind_ppPattern___closed__6 = _init_l_Lean_Meta_Grind_ppPattern___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__6); +l_Lean_Meta_Grind_ppPattern___closed__7 = _init_l_Lean_Meta_Grind_ppPattern___closed__7(); +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_ppPattern___closed__10 = _init_l_Lean_Meta_Grind_ppPattern___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__10); +l_Lean_Meta_Grind_ppPattern___closed__11 = _init_l_Lean_Meta_Grind_ppPattern___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__11); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFunMask___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__2); +l_Lean_Meta_Grind_NormalizePattern_main___closed__1 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__1); +l_Lean_Meta_Grind_NormalizePattern_main___closed__2 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__2); +l_Lean_Meta_Grind_NormalizePattern_main___closed__3 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__3); +l_Lean_Meta_Grind_NormalizePattern_main___closed__4 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__4); +l_Lean_Meta_Grind_NormalizePattern_main___closed__5 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__2); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__3); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4); +l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___lambda__2___closed__1); +l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1 = _init_l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__3___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__1___closed__1); +l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___spec__16___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__1); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___lambda__1___closed__2); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__1); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__2); +l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___spec__1___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ppParamsAt___lambda__1___closed__1); +l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__1); +l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__2___closed__2); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__2___closed__1); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__1); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__2); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__3); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__4); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__5); +l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6 = _init_l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___lambda__3___closed__6); +l_Lean_Meta_Grind_addEMatchTheorem___closed__1 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__1); +l_Lean_Meta_Grind_addEMatchTheorem___closed__2 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__2); +l_Lean_Meta_Grind_addEMatchTheorem___closed__3 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__3); +l_Lean_Meta_Grind_addEMatchTheorem___closed__4 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__4); +l_Lean_Meta_Grind_addEMatchTheorem___closed__5 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__5); +l_Lean_Meta_Grind_addEMatchTheorem___closed__6 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__6); +l_Lean_Meta_Grind_addEMatchTheorem___closed__7 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__7); +l_Lean_Meta_Grind_addEMatchTheorem___closed__8 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__8); +l_Lean_Meta_Grind_addEMatchTheorem___closed__9 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__9); +l_Lean_Meta_Grind_addEMatchTheorem___closed__10 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__10); +l_Lean_Meta_Grind_addEMatchTheorem___closed__11 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__11); +l_Lean_Meta_Grind_addEMatchTheorem___closed__12 = _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_addEMatchTheorem___closed__12); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c new file mode 100644 index 0000000000..65165f8e3b --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c @@ -0,0 +1,574 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.ForallProp +// Imports: Init.Grind.Lemmas Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Internalize Lean.Meta.Tactic.Grind.Simp +#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_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_Result_getProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +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*); +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__6; +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__2; +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8; +lean_object* l_Lean_Meta_Grind_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__5; +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__3; +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1; +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_getGeneration(lean_object*, 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_propagateForallProp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4; +lean_object* l_Lean_Meta_Grind_mkEqTrueProof(lean_object*, 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_propagateForallProp(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_isEqTrue(lean_object*, 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_propagateForallProp___lambda__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* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7; +lean_object* l_Lean_Meta_Grind_internalize(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* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("of_eq_true", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___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_propagateForallProp___lambda__1___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4() { +_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_propagateForallProp___lambda__1___closed__5() { +_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_propagateForallProp___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("forall_propagator", 17, 17); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4; +x_2 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__5; +x_3 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__6; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1(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_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_1); +x_16 = l_Lean_Meta_Grind_mkEqTrueProof(x_1, x_7, 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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(x_16); +x_19 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__3; +lean_inc(x_17); +lean_inc(x_1); +x_20 = l_Lean_mkAppB(x_19, x_1, x_17); +x_21 = lean_expr_instantiate1(x_2, x_20); +lean_dec(x_20); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_9); +x_22 = l_Lean_Meta_Grind_simp(x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +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; +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(x_22); +lean_inc(x_1); +x_25 = l_Lean_Expr_lam___override(x_3, x_1, x_2, x_4); +x_26 = lean_ctor_get(x_23, 0); +lean_inc(x_26); +lean_inc(x_5); +x_27 = l_Lean_Meta_Grind_getGeneration(x_5, 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_27); +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_26); +x_30 = l_Lean_Meta_Grind_internalize(x_26, x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); +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(x_30); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_32 = l_Lean_Meta_Simp_Result_getProof(x_23, x_11, x_12, x_13, x_14, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; +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(x_32); +x_35 = l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8; +lean_inc(x_26); +x_36 = l_Lean_mkApp5(x_35, x_1, x_25, x_26, x_17, x_33); +x_37 = 0; +x_38 = l_Lean_Meta_Grind_pushEqCore(x_5, x_26, x_36, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_34); +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(x_8); +lean_dec(x_7); +return x_38; +} +else +{ +uint8_t x_39; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_32); +if (x_39 == 0) +{ +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_32, 0); +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(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 +{ +uint8_t x_43; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_30); +if (x_43 == 0) +{ +return x_30; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_30, 0); +x_45 = lean_ctor_get(x_30, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_30); +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_dec(x_26); +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(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 +{ +uint8_t x_51; +lean_dec(x_17); +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(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_22); +if (x_51 == 0) +{ +return x_22; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_22, 0); +x_53 = lean_ctor_get(x_22, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_22); +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; +} +} +} +else +{ +uint8_t x_55; +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(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_16); +if (x_55 == 0) +{ +return x_16; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_16, 0); +x_57 = lean_ctor_get(x_16, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_16); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallProp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +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(x_13); +x_14 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_12); +x_15 = l_Lean_Meta_Grind_isEqTrue(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_15, 0); +lean_dec(x_19); +x_20 = lean_box(0); +lean_ctor_set(x_15, 0, x_20); +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_dec(x_15); +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; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_box(0); +x_26 = l_Lean_Meta_Grind_propagateForallProp___lambda__1(x_12, x_13, x_11, x_14, x_1, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_15); +if (x_27 == 0) +{ +return x_15; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* 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 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_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); +lean_dec(x_1); +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_10); +return x_32; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallProp___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_4); +lean_dec(x_4); +x_17 = l_Lean_Meta_Grind_propagateForallProp___lambda__1(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); +lean_dec(x_6); +return x_17; +} +} +lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Internalize(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Simp(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_ForallProp(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_Init_Grind_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_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_Internalize(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); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__1); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__2); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__3 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__3); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__4); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__5 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__5); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__6 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__6); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__7); +l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8 = _init_l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateForallProp___lambda__1___closed__8); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c index a07cb790a0..c0a9bbeba7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Internalize -// Imports: Init.Grind.Util Lean.Meta.LitValues Lean.Meta.Tactic.Grind.Types +// Imports: Init.Grind.Util Lean.Meta.LitValues Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,30 +13,45 @@ #ifdef __cplusplus extern "C" { #endif +extern lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5___closed__1; static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__1; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__3; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__9; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___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_PersistentHashMap_insertAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3; +lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__2___boxed(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_addCongrTable___closed__4; +lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_addCongrTable___spec__6(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__2; +lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__6(lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); lean_object* l_Lean_Meta_Grind_mkENode(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_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntry_x3f___at_Lean_Meta_Grind_addCongrTable___spec__1(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_isCongruent(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__6(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__7; lean_object* l_Lean_Expr_sort___override(lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); @@ -44,32 +59,54 @@ static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_internalize___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_mk_array(lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; uint64_t l_Lean_Meta_Grind_congrHash(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(lean_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*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9; +lean_object* l_Lean_Meta_Grind_normalizeLevels___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); 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*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1; static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__2; lean_object* l_Lean_Meta_Grind_setENode(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_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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_findEntryAtAux___at_Lean_Meta_Grind_addCongrTable___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_internalize___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7; static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__3; lean_object* l_Lean_Meta_Grind_propagateUp(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_isBVar(lean_object*); extern lean_object* l_instInhabitedPUnit; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9___closed__2; +lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__2; +lean_object* l_Lean_PersistentHashMap_isUnaryNode___rarg(lean_object*); +lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_addCongrTable___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_groundPattern_x3f(lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_outOfBounds___rarg(lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -88,16 +125,21 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__1(lean_object*, static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_addCongrTable___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_alreadyInternalized(lean_object*, 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_addCongrTable___spec__8___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_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(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_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__2(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__6; +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; +lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_hasSameType(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___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -105,66 +147,99 @@ lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__1; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(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_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_mkGroundPattern(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAtAux___at_Lean_Meta_Grind_addCongrTable___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_internalize___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_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_shareCommon(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_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_registerParent(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_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___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*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__5; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Name_hash___override(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___boxed(lean_object**); +lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(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___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getENode(lean_object*, 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_internalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___spec__1(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_addCongrTable___lambda__2___closed__6; lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_internalize___spec__2___boxed(lean_object**); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_internalize___lambda__2___closed__5; +lean_object* l_List_reverse___rarg(lean_object*); static double l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9___closed__1; size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9___closed__3; +lean_object* lean_array_uget(lean_object*, size_t); +size_t lean_array_size(lean_object*); lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern(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_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__1; uint8_t l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__8; +lean_object* l_Lean_Meta_Grind_canon(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_addCongrTable___closed__2; +static lean_object* l_Lean_Meta_Grind_internalize___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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* l_Lean_Meta_Grind_Origin_key(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Grind_congrPlaceholderProof; lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -uint8_t l_Lean_Expr_isConst(lean_object*); uint64_t l_Lean_HeadIndex_hash(lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__3; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__2; +lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; lean_object* l_ReaderT_instMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_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_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5; static lean_object* l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAtAux___at_Lean_Meta_Grind_addCongrTable___spec__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) { _start: @@ -1485,7 +1560,6 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_1); return x_19; } else @@ -1536,7 +1610,6 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_1); return x_35; } } @@ -1583,30 +1656,39 @@ static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("congr", 5, 5); +x_1 = lean_mk_string_unchecked("debug", 5, 5); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; -x_2 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("congr", 5, 5); +return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; +x_2 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__2; +x_3 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6() { _start: { lean_object* x_1; @@ -1614,11 +1696,11 @@ x_1 = lean_mk_string_unchecked(" = ", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -1627,7 +1709,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2(lean_object _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__3; +x_13 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -1655,11 +1737,11 @@ x_22 = lean_ctor_get(x_14, 0); lean_dec(x_22); lean_inc(x_1); x_23 = l_Lean_MessageData_ofExpr(x_1); -x_24 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; +x_24 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; lean_ctor_set_tag(x_14, 7); lean_ctor_set(x_14, 1, x_23); lean_ctor_set(x_14, 0, x_24); -x_25 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6; +x_25 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7; x_26 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_26, 0, x_14); lean_ctor_set(x_26, 1, x_25); @@ -1689,11 +1771,11 @@ lean_inc(x_34); lean_dec(x_14); lean_inc(x_1); x_35 = l_Lean_MessageData_ofExpr(x_1); -x_36 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; +x_36 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; x_37 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6; +x_38 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7; x_39 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -1823,7 +1905,7 @@ lean_inc(x_1); x_16 = l_Lean_PersistentHashMap_findEntry_x3f___at_Lean_Meta_Grind_addCongrTable___spec__1(x_13, x_15, x_1); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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_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; 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; uint8_t x_37; lean_free_object(x_11); lean_dec(x_9); lean_dec(x_8); @@ -1850,418 +1932,448 @@ x_24 = lean_ctor_get(x_18, 4); lean_inc(x_24); x_25 = lean_ctor_get(x_18, 5); lean_inc(x_25); -x_26 = lean_ctor_get_uint8(x_18, sizeof(void*)*8); +x_26 = lean_ctor_get_uint8(x_18, sizeof(void*)*14); x_27 = lean_ctor_get(x_18, 6); lean_inc(x_27); x_28 = lean_ctor_get(x_18, 7); lean_inc(x_28); -x_29 = lean_box(0); +x_29 = lean_ctor_get(x_18, 8); +lean_inc(x_29); +x_30 = lean_ctor_get(x_18, 9); +lean_inc(x_30); +x_31 = lean_ctor_get(x_18, 10); +lean_inc(x_31); +x_32 = lean_ctor_get(x_18, 11); +lean_inc(x_32); +x_33 = lean_ctor_get(x_18, 12); +lean_inc(x_33); +x_34 = lean_ctor_get(x_18, 13); +lean_inc(x_34); +x_35 = lean_box(0); lean_inc(x_18); -x_30 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_addCongrTable___spec__4(x_18, x_23, x_1, x_29); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) +x_36 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_addCongrTable___spec__4(x_18, x_23, x_1, x_35); +x_37 = !lean_is_exclusive(x_18); +if (x_37 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_32 = lean_ctor_get(x_18, 7); -lean_dec(x_32); -x_33 = lean_ctor_get(x_18, 6); -lean_dec(x_33); -x_34 = lean_ctor_get(x_18, 5); -lean_dec(x_34); -x_35 = lean_ctor_get(x_18, 4); -lean_dec(x_35); -x_36 = lean_ctor_get(x_18, 3); -lean_dec(x_36); -x_37 = lean_ctor_get(x_18, 2); -lean_dec(x_37); -x_38 = lean_ctor_get(x_18, 1); +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; uint8_t x_53; +x_38 = lean_ctor_get(x_18, 13); lean_dec(x_38); -x_39 = lean_ctor_get(x_18, 0); +x_39 = lean_ctor_get(x_18, 12); lean_dec(x_39); -lean_ctor_set(x_18, 3, x_30); -x_40 = lean_st_ref_set(x_2, x_18, x_19); -lean_dec(x_2); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -lean_ctor_set(x_40, 0, x_29); -return x_40; -} -else -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); +x_40 = lean_ctor_get(x_18, 11); lean_dec(x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_29); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_18); -x_45 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_45, 0, x_20); -lean_ctor_set(x_45, 1, x_21); -lean_ctor_set(x_45, 2, x_22); -lean_ctor_set(x_45, 3, x_30); -lean_ctor_set(x_45, 4, x_24); -lean_ctor_set(x_45, 5, x_25); -lean_ctor_set(x_45, 6, x_27); -lean_ctor_set(x_45, 7, x_28); -lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_26); -x_46 = lean_st_ref_set(x_2, x_45, x_19); +x_41 = lean_ctor_get(x_18, 10); +lean_dec(x_41); +x_42 = lean_ctor_get(x_18, 9); +lean_dec(x_42); +x_43 = lean_ctor_get(x_18, 8); +lean_dec(x_43); +x_44 = lean_ctor_get(x_18, 7); +lean_dec(x_44); +x_45 = lean_ctor_get(x_18, 6); +lean_dec(x_45); +x_46 = lean_ctor_get(x_18, 5); +lean_dec(x_46); +x_47 = lean_ctor_get(x_18, 4); +lean_dec(x_47); +x_48 = lean_ctor_get(x_18, 3); +lean_dec(x_48); +x_49 = lean_ctor_get(x_18, 2); +lean_dec(x_49); +x_50 = lean_ctor_get(x_18, 1); +lean_dec(x_50); +x_51 = lean_ctor_get(x_18, 0); +lean_dec(x_51); +lean_ctor_set(x_18, 3, x_36); +x_52 = lean_st_ref_set(x_2, x_18, x_19); lean_dec(x_2); -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_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_52, 0); +lean_dec(x_54); +lean_ctor_set(x_52, 0, x_35); +return x_52; } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_29); -lean_ctor_set(x_49, 1, x_47); -return x_49; +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_35); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } else { -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_16, 0); -lean_inc(x_50); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_18); +x_57 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_57, 0, x_20); +lean_ctor_set(x_57, 1, x_21); +lean_ctor_set(x_57, 2, x_22); +lean_ctor_set(x_57, 3, x_36); +lean_ctor_set(x_57, 4, x_24); +lean_ctor_set(x_57, 5, x_25); +lean_ctor_set(x_57, 6, x_27); +lean_ctor_set(x_57, 7, x_28); +lean_ctor_set(x_57, 8, x_29); +lean_ctor_set(x_57, 9, x_30); +lean_ctor_set(x_57, 10, x_31); +lean_ctor_set(x_57, 11, x_32); +lean_ctor_set(x_57, 12, x_33); +lean_ctor_set(x_57, 13, x_34); +lean_ctor_set_uint8(x_57, sizeof(void*)*14, x_26); +x_58 = lean_st_ref_set(x_2, x_57, x_19); +lean_dec(x_2); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_60 = x_58; +} else { + lean_dec_ref(x_58); + 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_35); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +else +{ +lean_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_16, 0); +lean_inc(x_62); lean_dec(x_16); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_52 = lean_ctor_get(x_50, 0); -x_53 = lean_ctor_get(x_50, 1); -lean_dec(x_53); -x_54 = l_Lean_Expr_getAppFn(x_1); -x_55 = l_Lean_Expr_getAppFn(x_52); -x_56 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_54, x_55); -if (x_56 == 0) +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_62, 1); +lean_dec(x_65); +x_66 = l_Lean_Expr_getAppFn(x_1); +x_67 = l_Lean_Expr_getAppFn(x_64); +x_68 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_66, x_67); +if (x_68 == 0) { -lean_object* x_57; +lean_object* x_69; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_57 = l_Lean_Meta_Grind_hasSameType(x_54, x_55, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_57) == 0) +x_69 = l_Lean_Meta_Grind_hasSameType(x_66, x_67, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_58; uint8_t x_59; -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) +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_unbox(x_70); +lean_dec(x_70); +if (x_71 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -x_61 = l_Lean_Meta_Grind_addCongrTable___closed__2; -x_62 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_60); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = l_Lean_Meta_Grind_addCongrTable___closed__2; +x_74 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_72); +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_64 = lean_ctor_get(x_62, 0); -x_65 = lean_ctor_get(x_62, 1); -x_66 = l_Lean_Meta_Grind_addCongrTable___closed__3; -x_67 = lean_unbox(x_64); -lean_dec(x_64); -if (x_67 == 0) +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_ctor_get(x_74, 0); +x_77 = lean_ctor_get(x_74, 1); +x_78 = l_Lean_Meta_Grind_addCongrTable___closed__3; +x_79 = lean_unbox(x_76); +lean_dec(x_76); +if (x_79 == 0) { -lean_object* x_68; lean_object* x_69; +lean_object* x_80; lean_object* x_81; +lean_free_object(x_74); lean_free_object(x_62); -lean_free_object(x_50); -lean_dec(x_52); +lean_dec(x_64); lean_free_object(x_11); lean_dec(x_1); -x_68 = lean_box(0); -x_69 = lean_apply_10(x_66, x_68, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_65); +x_80 = lean_box(0); +x_81 = lean_apply_10(x_78, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_77); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_82 = l_Lean_indentExpr(x_1); +x_83 = l_Lean_Meta_Grind_addCongrTable___closed__5; +lean_ctor_set_tag(x_74, 7); +lean_ctor_set(x_74, 1, x_82); +lean_ctor_set(x_74, 0, x_83); +x_84 = l_Lean_Meta_Grind_addCongrTable___closed__7; +lean_ctor_set_tag(x_62, 7); +lean_ctor_set(x_62, 1, x_84); +lean_ctor_set(x_62, 0, x_74); +x_85 = l_Lean_indentExpr(x_64); +lean_ctor_set_tag(x_11, 7); +lean_ctor_set(x_11, 1, x_85); +lean_ctor_set(x_11, 0, x_62); +x_86 = l_Lean_Meta_Grind_addCongrTable___closed__9; +x_87 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_87, 0, x_11); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_73, x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_77); +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(x_88); +x_91 = lean_apply_10(x_78, x_89, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_90); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; +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 = l_Lean_Meta_Grind_addCongrTable___closed__3; +x_95 = lean_unbox(x_92); +lean_dec(x_92); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; +lean_free_object(x_62); +lean_dec(x_64); +lean_free_object(x_11); +lean_dec(x_1); +x_96 = lean_box(0); +x_97 = lean_apply_10(x_94, x_96, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_93); +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; lean_object* x_108; +x_98 = l_Lean_indentExpr(x_1); +x_99 = l_Lean_Meta_Grind_addCongrTable___closed__5; +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Grind_addCongrTable___closed__7; +lean_ctor_set_tag(x_62, 7); +lean_ctor_set(x_62, 1, x_101); +lean_ctor_set(x_62, 0, x_100); +x_102 = l_Lean_indentExpr(x_64); +lean_ctor_set_tag(x_11, 7); +lean_ctor_set(x_11, 1, x_102); +lean_ctor_set(x_11, 0, x_62); +x_103 = l_Lean_Meta_Grind_addCongrTable___closed__9; +x_104 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_104, 0, x_11); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_73, x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_93); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_apply_10(x_94, x_106, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_107); +return x_108; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_free_object(x_62); +lean_free_object(x_11); +x_109 = lean_ctor_get(x_69, 1); +lean_inc(x_109); +lean_dec(x_69); +x_110 = lean_box(0); +x_111 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_64, x_110, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_109); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_111; +} +} +else +{ +uint8_t x_112; +lean_free_object(x_62); +lean_dec(x_64); +lean_free_object(x_11); +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); +lean_dec(x_1); +x_112 = !lean_is_exclusive(x_69); +if (x_112 == 0) +{ return x_69; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_70 = l_Lean_indentExpr(x_1); -x_71 = l_Lean_Meta_Grind_addCongrTable___closed__5; -lean_ctor_set_tag(x_62, 7); -lean_ctor_set(x_62, 1, x_70); -lean_ctor_set(x_62, 0, x_71); -x_72 = l_Lean_Meta_Grind_addCongrTable___closed__7; -lean_ctor_set_tag(x_50, 7); -lean_ctor_set(x_50, 1, x_72); -lean_ctor_set(x_50, 0, x_62); -x_73 = l_Lean_indentExpr(x_52); -lean_ctor_set_tag(x_11, 7); -lean_ctor_set(x_11, 1, x_73); -lean_ctor_set(x_11, 0, x_50); -x_74 = l_Lean_Meta_Grind_addCongrTable___closed__9; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_11); -lean_ctor_set(x_75, 1, x_74); -x_76 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_61, x_75, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_65); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_apply_10(x_66, x_77, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_78); -return x_79; +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_69, 0); +x_114 = lean_ctor_get(x_69, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_69); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = lean_ctor_get(x_62, 0); -x_81 = lean_ctor_get(x_62, 1); -lean_inc(x_81); -lean_inc(x_80); +lean_object* x_116; lean_object* x_117; +lean_dec(x_67); +lean_dec(x_66); +lean_free_object(x_62); +lean_free_object(x_11); +x_116 = lean_box(0); +x_117 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_64, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_117; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_118 = lean_ctor_get(x_62, 0); +lean_inc(x_118); lean_dec(x_62); -x_82 = l_Lean_Meta_Grind_addCongrTable___closed__3; -x_83 = lean_unbox(x_80); -lean_dec(x_80); -if (x_83 == 0) +x_119 = l_Lean_Expr_getAppFn(x_1); +x_120 = l_Lean_Expr_getAppFn(x_118); +x_121 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_119, x_120); +if (x_121 == 0) { -lean_object* x_84; lean_object* x_85; -lean_free_object(x_50); -lean_dec(x_52); -lean_free_object(x_11); -lean_dec(x_1); -x_84 = lean_box(0); -x_85 = lean_apply_10(x_82, x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_81); -return x_85; -} -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; -x_86 = l_Lean_indentExpr(x_1); -x_87 = l_Lean_Meta_Grind_addCongrTable___closed__5; -x_88 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = l_Lean_Meta_Grind_addCongrTable___closed__7; -lean_ctor_set_tag(x_50, 7); -lean_ctor_set(x_50, 1, x_89); -lean_ctor_set(x_50, 0, x_88); -x_90 = l_Lean_indentExpr(x_52); -lean_ctor_set_tag(x_11, 7); -lean_ctor_set(x_11, 1, x_90); -lean_ctor_set(x_11, 0, x_50); -x_91 = l_Lean_Meta_Grind_addCongrTable___closed__9; -x_92 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_92, 0, x_11); -lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_61, x_92, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_81); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_apply_10(x_82, x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_95); -return x_96; -} -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_free_object(x_50); -lean_free_object(x_11); -x_97 = lean_ctor_get(x_57, 1); -lean_inc(x_97); -lean_dec(x_57); -x_98 = lean_box(0); -x_99 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_52, x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_97); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_99; -} -} -else -{ -uint8_t x_100; -lean_free_object(x_50); -lean_dec(x_52); -lean_free_object(x_11); -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); -lean_dec(x_1); -x_100 = !lean_is_exclusive(x_57); -if (x_100 == 0) -{ -return x_57; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_57, 0); -x_102 = lean_ctor_get(x_57, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_57); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; -} -} -} -else -{ -lean_object* x_104; lean_object* x_105; -lean_dec(x_55); -lean_dec(x_54); -lean_free_object(x_50); -lean_free_object(x_11); -x_104 = lean_box(0); -x_105 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_52, x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_105; -} -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_106 = lean_ctor_get(x_50, 0); -lean_inc(x_106); -lean_dec(x_50); -x_107 = l_Lean_Expr_getAppFn(x_1); -x_108 = l_Lean_Expr_getAppFn(x_106); -x_109 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_107, x_108); -if (x_109 == 0) -{ -lean_object* x_110; +lean_object* x_122; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_110 = l_Lean_Meta_Grind_hasSameType(x_107, x_108, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_110) == 0) +x_122 = l_Lean_Meta_Grind_hasSameType(x_119, x_120, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_111; uint8_t x_112; -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_unbox(x_111); -lean_dec(x_111); -if (x_112 == 0) +lean_object* x_123; uint8_t x_124; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_unbox(x_123); +lean_dec(x_123); +if (x_124 == 0) { -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; uint8_t x_120; -x_113 = lean_ctor_get(x_110, 1); -lean_inc(x_113); -lean_dec(x_110); -x_114 = l_Lean_Meta_Grind_addCongrTable___closed__2; -x_115 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_114, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_113); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +lean_dec(x_122); +x_126 = l_Lean_Meta_Grind_addCongrTable___closed__2; +x_127 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_126, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_125); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -x_119 = l_Lean_Meta_Grind_addCongrTable___closed__3; -x_120 = lean_unbox(x_116); -lean_dec(x_116); -if (x_120 == 0) +x_131 = l_Lean_Meta_Grind_addCongrTable___closed__3; +x_132 = lean_unbox(x_128); +lean_dec(x_128); +if (x_132 == 0) { -lean_object* x_121; lean_object* x_122; +lean_object* x_133; lean_object* x_134; +lean_dec(x_130); lean_dec(x_118); -lean_dec(x_106); lean_free_object(x_11); lean_dec(x_1); -x_121 = lean_box(0); -x_122 = lean_apply_10(x_119, x_121, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_117); -return x_122; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_123 = l_Lean_indentExpr(x_1); -x_124 = l_Lean_Meta_Grind_addCongrTable___closed__5; -if (lean_is_scalar(x_118)) { - x_125 = lean_alloc_ctor(7, 2, 0); -} else { - x_125 = x_118; - lean_ctor_set_tag(x_125, 7); -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_123); -x_126 = l_Lean_Meta_Grind_addCongrTable___closed__7; -x_127 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_indentExpr(x_106); -lean_ctor_set_tag(x_11, 7); -lean_ctor_set(x_11, 1, x_128); -lean_ctor_set(x_11, 0, x_127); -x_129 = l_Lean_Meta_Grind_addCongrTable___closed__9; -x_130 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_130, 0, x_11); -lean_ctor_set(x_130, 1, x_129); -x_131 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_114, x_130, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_117); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_apply_10(x_119, x_132, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_133); +x_133 = lean_box(0); +x_134 = lean_apply_10(x_131, x_133, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); return x_134; } +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_135 = l_Lean_indentExpr(x_1); +x_136 = l_Lean_Meta_Grind_addCongrTable___closed__5; +if (lean_is_scalar(x_130)) { + x_137 = lean_alloc_ctor(7, 2, 0); +} else { + x_137 = x_130; + lean_ctor_set_tag(x_137, 7); +} +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = l_Lean_Meta_Grind_addCongrTable___closed__7; +x_139 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +x_140 = l_Lean_indentExpr(x_118); +lean_ctor_set_tag(x_11, 7); +lean_ctor_set(x_11, 1, x_140); +lean_ctor_set(x_11, 0, x_139); +x_141 = l_Lean_Meta_Grind_addCongrTable___closed__9; +x_142 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_142, 0, x_11); +lean_ctor_set(x_142, 1, x_141); +x_143 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_126, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = lean_apply_10(x_131, x_144, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_145); +return x_146; +} } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_free_object(x_11); -x_135 = lean_ctor_get(x_110, 1); -lean_inc(x_135); -lean_dec(x_110); -x_136 = lean_box(0); -x_137 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_106, x_136, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_135); +x_147 = lean_ctor_get(x_122, 1); +lean_inc(x_147); +lean_dec(x_122); +x_148 = lean_box(0); +x_149 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_118, x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_147); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_137; +return x_149; } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_106); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_118); lean_free_object(x_11); lean_dec(x_9); lean_dec(x_8); @@ -2272,60 +2384,60 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_138 = lean_ctor_get(x_110, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_110, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_140 = x_110; +x_150 = lean_ctor_get(x_122, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_122, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_152 = x_122; } else { - lean_dec_ref(x_110); - x_140 = lean_box(0); + lean_dec_ref(x_122); + x_152 = lean_box(0); } -if (lean_is_scalar(x_140)) { - x_141 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); } else { - x_141 = x_140; + x_153 = x_152; } -lean_ctor_set(x_141, 0, x_138); -lean_ctor_set(x_141, 1, x_139); -return x_141; +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; } } else { -lean_object* x_142; lean_object* x_143; -lean_dec(x_108); -lean_dec(x_107); +lean_object* x_154; lean_object* x_155; +lean_dec(x_120); +lean_dec(x_119); lean_free_object(x_11); -x_142 = lean_box(0); -x_143 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_106, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_154 = lean_box(0); +x_155 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_118, x_154, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_143; +return x_155; } } } } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_144 = lean_ctor_get(x_11, 0); -x_145 = lean_ctor_get(x_11, 1); -lean_inc(x_145); -lean_inc(x_144); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_ctor_get(x_11, 0); +x_157 = lean_ctor_get(x_11, 1); +lean_inc(x_157); +lean_inc(x_156); lean_dec(x_11); -x_146 = lean_ctor_get(x_144, 3); -lean_inc(x_146); +x_158 = lean_ctor_get(x_156, 3); +lean_inc(x_158); lean_inc(x_1); -x_147 = l_Lean_PersistentHashMap_findEntry_x3f___at_Lean_Meta_Grind_addCongrTable___spec__1(x_144, x_146, x_1); -if (lean_obj_tag(x_147) == 0) +x_159 = l_Lean_PersistentHashMap_findEntry_x3f___at_Lean_Meta_Grind_addCongrTable___spec__1(x_156, x_158, x_1); +if (lean_obj_tag(x_159) == 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; uint8_t 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_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2333,210 +2445,234 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_148 = lean_st_ref_take(x_2, x_145); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); -x_151 = lean_ctor_get(x_149, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_149, 1); -lean_inc(x_152); -x_153 = lean_ctor_get(x_149, 2); -lean_inc(x_153); -x_154 = lean_ctor_get(x_149, 3); -lean_inc(x_154); -x_155 = lean_ctor_get(x_149, 4); -lean_inc(x_155); -x_156 = lean_ctor_get(x_149, 5); -lean_inc(x_156); -x_157 = lean_ctor_get_uint8(x_149, sizeof(void*)*8); -x_158 = lean_ctor_get(x_149, 6); -lean_inc(x_158); -x_159 = lean_ctor_get(x_149, 7); -lean_inc(x_159); -x_160 = lean_box(0); -lean_inc(x_149); -x_161 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_addCongrTable___spec__4(x_149, x_154, x_1, x_160); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - lean_ctor_release(x_149, 2); - lean_ctor_release(x_149, 3); - lean_ctor_release(x_149, 4); - lean_ctor_release(x_149, 5); - lean_ctor_release(x_149, 6); - lean_ctor_release(x_149, 7); - x_162 = x_149; -} else { - lean_dec_ref(x_149); - x_162 = lean_box(0); -} -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(0, 8, 1); -} else { - x_163 = x_162; -} -lean_ctor_set(x_163, 0, x_151); -lean_ctor_set(x_163, 1, x_152); -lean_ctor_set(x_163, 2, x_153); -lean_ctor_set(x_163, 3, x_161); -lean_ctor_set(x_163, 4, x_155); -lean_ctor_set(x_163, 5, x_156); -lean_ctor_set(x_163, 6, x_158); -lean_ctor_set(x_163, 7, x_159); -lean_ctor_set_uint8(x_163, sizeof(void*)*8, x_157); -x_164 = lean_st_ref_set(x_2, x_163, x_150); -lean_dec(x_2); -x_165 = lean_ctor_get(x_164, 1); +x_160 = lean_st_ref_take(x_2, x_157); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = lean_ctor_get(x_161, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_161, 2); lean_inc(x_165); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_166 = x_164; +x_166 = lean_ctor_get(x_161, 3); +lean_inc(x_166); +x_167 = lean_ctor_get(x_161, 4); +lean_inc(x_167); +x_168 = lean_ctor_get(x_161, 5); +lean_inc(x_168); +x_169 = lean_ctor_get_uint8(x_161, sizeof(void*)*14); +x_170 = lean_ctor_get(x_161, 6); +lean_inc(x_170); +x_171 = lean_ctor_get(x_161, 7); +lean_inc(x_171); +x_172 = lean_ctor_get(x_161, 8); +lean_inc(x_172); +x_173 = lean_ctor_get(x_161, 9); +lean_inc(x_173); +x_174 = lean_ctor_get(x_161, 10); +lean_inc(x_174); +x_175 = lean_ctor_get(x_161, 11); +lean_inc(x_175); +x_176 = lean_ctor_get(x_161, 12); +lean_inc(x_176); +x_177 = lean_ctor_get(x_161, 13); +lean_inc(x_177); +x_178 = lean_box(0); +lean_inc(x_161); +x_179 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_addCongrTable___spec__4(x_161, x_166, x_1, x_178); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + lean_ctor_release(x_161, 2); + lean_ctor_release(x_161, 3); + lean_ctor_release(x_161, 4); + lean_ctor_release(x_161, 5); + lean_ctor_release(x_161, 6); + lean_ctor_release(x_161, 7); + lean_ctor_release(x_161, 8); + lean_ctor_release(x_161, 9); + lean_ctor_release(x_161, 10); + lean_ctor_release(x_161, 11); + lean_ctor_release(x_161, 12); + lean_ctor_release(x_161, 13); + x_180 = x_161; } else { - lean_dec_ref(x_164); - x_166 = lean_box(0); + lean_dec_ref(x_161); + x_180 = lean_box(0); } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(0, 14, 1); } else { - x_167 = x_166; + x_181 = x_180; } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_165); -return x_167; +lean_ctor_set(x_181, 0, x_163); +lean_ctor_set(x_181, 1, x_164); +lean_ctor_set(x_181, 2, x_165); +lean_ctor_set(x_181, 3, x_179); +lean_ctor_set(x_181, 4, x_167); +lean_ctor_set(x_181, 5, x_168); +lean_ctor_set(x_181, 6, x_170); +lean_ctor_set(x_181, 7, x_171); +lean_ctor_set(x_181, 8, x_172); +lean_ctor_set(x_181, 9, x_173); +lean_ctor_set(x_181, 10, x_174); +lean_ctor_set(x_181, 11, x_175); +lean_ctor_set(x_181, 12, x_176); +lean_ctor_set(x_181, 13, x_177); +lean_ctor_set_uint8(x_181, sizeof(void*)*14, x_169); +x_182 = lean_st_ref_set(x_2, x_181, x_162); +lean_dec(x_2); +x_183 = lean_ctor_get(x_182, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_184 = x_182; +} else { + lean_dec_ref(x_182); + x_184 = lean_box(0); +} +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(0, 2, 0); +} else { + x_185 = x_184; +} +lean_ctor_set(x_185, 0, x_178); +lean_ctor_set(x_185, 1, x_183); +return x_185; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_168 = lean_ctor_get(x_147, 0); -lean_inc(x_168); -lean_dec(x_147); -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_170 = x_168; +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_186 = lean_ctor_get(x_159, 0); +lean_inc(x_186); +lean_dec(x_159); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_188 = x_186; } else { - lean_dec_ref(x_168); - x_170 = lean_box(0); + lean_dec_ref(x_186); + x_188 = lean_box(0); } -x_171 = l_Lean_Expr_getAppFn(x_1); -x_172 = l_Lean_Expr_getAppFn(x_169); -x_173 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_171, x_172); -if (x_173 == 0) +x_189 = l_Lean_Expr_getAppFn(x_1); +x_190 = l_Lean_Expr_getAppFn(x_187); +x_191 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_189, x_190); +if (x_191 == 0) { -lean_object* x_174; +lean_object* x_192; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_174 = l_Lean_Meta_Grind_hasSameType(x_171, x_172, x_6, x_7, x_8, x_9, x_145); -if (lean_obj_tag(x_174) == 0) +x_192 = l_Lean_Meta_Grind_hasSameType(x_189, x_190, x_6, x_7, x_8, x_9, x_157); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_175; uint8_t x_176; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_unbox(x_175); -lean_dec(x_175); -if (x_176 == 0) +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_unbox(x_193); +lean_dec(x_193); +if (x_194 == 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; uint8_t x_184; -x_177 = lean_ctor_get(x_174, 1); -lean_inc(x_177); -lean_dec(x_174); -x_178 = l_Lean_Meta_Grind_addCongrTable___closed__2; -x_179 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_178, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_177); -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 = l_Lean_Meta_Grind_addCongrTable___closed__3; -x_184 = lean_unbox(x_180); -lean_dec(x_180); -if (x_184 == 0) -{ -lean_object* x_185; lean_object* x_186; -lean_dec(x_182); -lean_dec(x_170); -lean_dec(x_169); -lean_dec(x_1); -x_185 = lean_box(0); -x_186 = lean_apply_10(x_183, x_185, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_181); -return x_186; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_187 = l_Lean_indentExpr(x_1); -x_188 = l_Lean_Meta_Grind_addCongrTable___closed__5; -if (lean_is_scalar(x_182)) { - x_189 = lean_alloc_ctor(7, 2, 0); -} else { - x_189 = x_182; - lean_ctor_set_tag(x_189, 7); -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_187); -x_190 = l_Lean_Meta_Grind_addCongrTable___closed__7; -if (lean_is_scalar(x_170)) { - x_191 = lean_alloc_ctor(7, 2, 0); -} else { - x_191 = x_170; - lean_ctor_set_tag(x_191, 7); -} -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -x_192 = l_Lean_indentExpr(x_169); -x_193 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -x_194 = l_Lean_Meta_Grind_addCongrTable___closed__9; -x_195 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -x_196 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_178, x_195, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_181); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); +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_195 = lean_ctor_get(x_192, 1); +lean_inc(x_195); +lean_dec(x_192); +x_196 = l_Lean_Meta_Grind_addCongrTable___closed__2; +x_197 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_196, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_195); +x_198 = lean_ctor_get(x_197, 0); lean_inc(x_198); -lean_dec(x_196); -x_199 = lean_apply_10(x_183, x_197, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_198); -return x_199; +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_200 = x_197; +} else { + lean_dec_ref(x_197); + x_200 = lean_box(0); +} +x_201 = l_Lean_Meta_Grind_addCongrTable___closed__3; +x_202 = lean_unbox(x_198); +lean_dec(x_198); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; +lean_dec(x_200); +lean_dec(x_188); +lean_dec(x_187); +lean_dec(x_1); +x_203 = lean_box(0); +x_204 = lean_apply_10(x_201, x_203, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_199); +return x_204; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_205 = l_Lean_indentExpr(x_1); +x_206 = l_Lean_Meta_Grind_addCongrTable___closed__5; +if (lean_is_scalar(x_200)) { + x_207 = lean_alloc_ctor(7, 2, 0); +} else { + x_207 = x_200; + lean_ctor_set_tag(x_207, 7); +} +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +x_208 = l_Lean_Meta_Grind_addCongrTable___closed__7; +if (lean_is_scalar(x_188)) { + x_209 = lean_alloc_ctor(7, 2, 0); +} else { + x_209 = x_188; + lean_ctor_set_tag(x_209, 7); +} +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +x_210 = l_Lean_indentExpr(x_187); +x_211 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +x_212 = l_Lean_Meta_Grind_addCongrTable___closed__9; +x_213 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +x_214 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_196, x_213, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_199); +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +x_217 = lean_apply_10(x_201, x_215, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_216); +return x_217; } } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_170); -x_200 = lean_ctor_get(x_174, 1); -lean_inc(x_200); -lean_dec(x_174); -x_201 = lean_box(0); -x_202 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_169, x_201, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_200); +lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec(x_188); +x_218 = lean_ctor_get(x_192, 1); +lean_inc(x_218); +lean_dec(x_192); +x_219 = lean_box(0); +x_220 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_187, x_219, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_218); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_202; +return x_220; } } else { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_170); -lean_dec(x_169); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_188); +lean_dec(x_187); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2546,41 +2682,41 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_203 = lean_ctor_get(x_174, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_174, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_205 = x_174; +x_221 = lean_ctor_get(x_192, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_192, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_223 = x_192; } else { - lean_dec_ref(x_174); - x_205 = lean_box(0); + lean_dec_ref(x_192); + x_223 = lean_box(0); } -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); } else { - x_206 = x_205; + x_224 = x_223; } -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -return x_206; +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; } } else { -lean_object* x_207; lean_object* x_208; -lean_dec(x_172); -lean_dec(x_171); -lean_dec(x_170); -x_207 = lean_box(0); -x_208 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_169, x_207, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_145); +lean_object* x_225; lean_object* x_226; +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_188); +x_225 = lean_box(0); +x_226 = l_Lean_Meta_Grind_addCongrTable___lambda__2(x_1, x_187, x_225, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_157); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_208; +return x_226; } } } @@ -3492,7 +3628,7 @@ return x_36; } 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; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_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_37 = lean_ctor_get(x_12, 1); x_38 = lean_ctor_get(x_14, 0); x_39 = lean_ctor_get(x_14, 1); @@ -3500,9 +3636,21 @@ x_40 = lean_ctor_get(x_14, 2); x_41 = lean_ctor_get(x_14, 3); x_42 = lean_ctor_get(x_14, 4); x_43 = lean_ctor_get(x_14, 5); -x_44 = lean_ctor_get_uint8(x_14, sizeof(void*)*8); +x_44 = lean_ctor_get_uint8(x_14, sizeof(void*)*14); x_45 = lean_ctor_get(x_14, 6); x_46 = lean_ctor_get(x_14, 7); +x_47 = lean_ctor_get(x_14, 8); +x_48 = lean_ctor_get(x_14, 9); +x_49 = lean_ctor_get(x_14, 10); +x_50 = lean_ctor_get(x_14, 11); +x_51 = lean_ctor_get(x_14, 12); +x_52 = lean_ctor_get(x_14, 13); +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_inc(x_43); @@ -3513,217 +3661,259 @@ lean_inc(x_39); lean_inc(x_38); lean_dec(x_14); lean_inc(x_42); -x_47 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_42, x_11); -if (lean_obj_tag(x_47) == 0) +x_53 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_42, x_11); +if (lean_obj_tag(x_53) == 0) { -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; -x_48 = lean_box(0); -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 1, x_48); -lean_ctor_set(x_12, 0, x_1); -x_49 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_42, x_11, x_12); -x_50 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_50, 0, x_38); -lean_ctor_set(x_50, 1, x_39); -lean_ctor_set(x_50, 2, x_40); -lean_ctor_set(x_50, 3, x_41); -lean_ctor_set(x_50, 4, x_49); -lean_ctor_set(x_50, 5, x_43); -lean_ctor_set(x_50, 6, x_45); -lean_ctor_set(x_50, 7, x_46); -lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_44); -x_51 = lean_st_ref_set(x_2, x_50, x_37); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_53 = x_51; -} else { - lean_dec_ref(x_51); - x_53 = lean_box(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; x_54 = lean_box(0); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -return x_55; -} -else -{ -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_56 = lean_ctor_get(x_47, 0); -lean_inc(x_56); -lean_dec(x_47); lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 1, x_56); +lean_ctor_set(x_12, 1, x_54); lean_ctor_set(x_12, 0, x_1); -x_57 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_42, x_11, x_12); -x_58 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_58, 0, x_38); -lean_ctor_set(x_58, 1, x_39); -lean_ctor_set(x_58, 2, x_40); -lean_ctor_set(x_58, 3, x_41); -lean_ctor_set(x_58, 4, x_57); -lean_ctor_set(x_58, 5, x_43); -lean_ctor_set(x_58, 6, x_45); -lean_ctor_set(x_58, 7, x_46); -lean_ctor_set_uint8(x_58, sizeof(void*)*8, x_44); -x_59 = lean_st_ref_set(x_2, x_58, x_37); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); +x_55 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_42, x_11, x_12); +x_56 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_56, 0, x_38); +lean_ctor_set(x_56, 1, x_39); +lean_ctor_set(x_56, 2, x_40); +lean_ctor_set(x_56, 3, x_41); +lean_ctor_set(x_56, 4, x_55); +lean_ctor_set(x_56, 5, x_43); +lean_ctor_set(x_56, 6, x_45); +lean_ctor_set(x_56, 7, x_46); +lean_ctor_set(x_56, 8, x_47); +lean_ctor_set(x_56, 9, x_48); +lean_ctor_set(x_56, 10, x_49); +lean_ctor_set(x_56, 11, x_50); +lean_ctor_set(x_56, 12, x_51); +lean_ctor_set(x_56, 13, x_52); +lean_ctor_set_uint8(x_56, sizeof(void*)*14, x_44); +x_57 = lean_st_ref_set(x_2, x_56, x_37); +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); +} +x_60 = lean_box(0); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { x_61 = x_59; -} else { - lean_dec_ref(x_59); - x_61 = lean_box(0); -} -x_62 = lean_box(0); -if (lean_is_scalar(x_61)) { - x_63 = lean_alloc_ctor(0, 2, 0); -} else { - x_63 = x_61; -} -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -return x_63; -} } +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_64 = lean_ctor_get(x_12, 0); -x_65 = lean_ctor_get(x_12, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_12); -x_66 = lean_ctor_get(x_64, 0); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_62 = lean_ctor_get(x_53, 0); +lean_inc(x_62); +lean_dec(x_53); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 1, x_62); +lean_ctor_set(x_12, 0, x_1); +x_63 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_42, x_11, x_12); +x_64 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_64, 0, x_38); +lean_ctor_set(x_64, 1, x_39); +lean_ctor_set(x_64, 2, x_40); +lean_ctor_set(x_64, 3, x_41); +lean_ctor_set(x_64, 4, x_63); +lean_ctor_set(x_64, 5, x_43); +lean_ctor_set(x_64, 6, x_45); +lean_ctor_set(x_64, 7, x_46); +lean_ctor_set(x_64, 8, x_47); +lean_ctor_set(x_64, 9, x_48); +lean_ctor_set(x_64, 10, x_49); +lean_ctor_set(x_64, 11, x_50); +lean_ctor_set(x_64, 12, x_51); +lean_ctor_set(x_64, 13, x_52); +lean_ctor_set_uint8(x_64, sizeof(void*)*14, x_44); +x_65 = lean_st_ref_set(x_2, x_64, x_37); +x_66 = lean_ctor_get(x_65, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_67); -x_68 = lean_ctor_get(x_64, 2); -lean_inc(x_68); -x_69 = lean_ctor_get(x_64, 3); -lean_inc(x_69); -x_70 = lean_ctor_get(x_64, 4); -lean_inc(x_70); -x_71 = lean_ctor_get(x_64, 5); -lean_inc(x_71); -x_72 = lean_ctor_get_uint8(x_64, sizeof(void*)*8); -x_73 = lean_ctor_get(x_64, 6); -lean_inc(x_73); -x_74 = lean_ctor_get(x_64, 7); -lean_inc(x_74); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - lean_ctor_release(x_64, 2); - lean_ctor_release(x_64, 3); - lean_ctor_release(x_64, 4); - lean_ctor_release(x_64, 5); - lean_ctor_release(x_64, 6); - lean_ctor_release(x_64, 7); - x_75 = x_64; +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_67 = x_65; } else { - lean_dec_ref(x_64); - x_75 = lean_box(0); + lean_dec_ref(x_65); + x_67 = lean_box(0); } -lean_inc(x_70); -x_76 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_70, x_11); -if (lean_obj_tag(x_76) == 0) -{ -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_77 = lean_box(0); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_1); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_70, x_11, x_78); -if (lean_is_scalar(x_75)) { - x_80 = lean_alloc_ctor(0, 8, 1); +x_68 = lean_box(0); +if (lean_is_scalar(x_67)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_80 = x_75; + x_69 = x_67; } -lean_ctor_set(x_80, 0, x_66); -lean_ctor_set(x_80, 1, x_67); -lean_ctor_set(x_80, 2, x_68); -lean_ctor_set(x_80, 3, x_69); -lean_ctor_set(x_80, 4, x_79); -lean_ctor_set(x_80, 5, x_71); -lean_ctor_set(x_80, 6, x_73); -lean_ctor_set(x_80, 7, x_74); -lean_ctor_set_uint8(x_80, sizeof(void*)*8, x_72); -x_81 = lean_st_ref_set(x_2, x_80, x_65); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; -} else { - lean_dec_ref(x_81); - x_83 = lean_box(0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_66); +return x_69; } -x_84 = lean_box(0); -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 0); -} else { - x_85 = x_83; } -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; } 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; -x_86 = lean_ctor_get(x_76, 0); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 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; lean_object* x_88; +x_70 = lean_ctor_get(x_12, 0); +x_71 = lean_ctor_get(x_12, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_12); +x_72 = lean_ctor_get(x_70, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_70, 2); +lean_inc(x_74); +x_75 = lean_ctor_get(x_70, 3); +lean_inc(x_75); +x_76 = lean_ctor_get(x_70, 4); +lean_inc(x_76); +x_77 = lean_ctor_get(x_70, 5); +lean_inc(x_77); +x_78 = lean_ctor_get_uint8(x_70, sizeof(void*)*14); +x_79 = lean_ctor_get(x_70, 6); +lean_inc(x_79); +x_80 = lean_ctor_get(x_70, 7); +lean_inc(x_80); +x_81 = lean_ctor_get(x_70, 8); +lean_inc(x_81); +x_82 = lean_ctor_get(x_70, 9); +lean_inc(x_82); +x_83 = lean_ctor_get(x_70, 10); +lean_inc(x_83); +x_84 = lean_ctor_get(x_70, 11); +lean_inc(x_84); +x_85 = lean_ctor_get(x_70, 12); +lean_inc(x_85); +x_86 = lean_ctor_get(x_70, 13); lean_inc(x_86); -lean_dec(x_76); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_1); -lean_ctor_set(x_87, 1, x_86); -x_88 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_70, x_11, x_87); -if (lean_is_scalar(x_75)) { - x_89 = lean_alloc_ctor(0, 8, 1); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + lean_ctor_release(x_70, 2); + lean_ctor_release(x_70, 3); + lean_ctor_release(x_70, 4); + lean_ctor_release(x_70, 5); + lean_ctor_release(x_70, 6); + lean_ctor_release(x_70, 7); + lean_ctor_release(x_70, 8); + lean_ctor_release(x_70, 9); + lean_ctor_release(x_70, 10); + lean_ctor_release(x_70, 11); + lean_ctor_release(x_70, 12); + lean_ctor_release(x_70, 13); + x_87 = x_70; } else { - x_89 = x_75; + lean_dec_ref(x_70); + x_87 = lean_box(0); } -lean_ctor_set(x_89, 0, x_66); -lean_ctor_set(x_89, 1, x_67); -lean_ctor_set(x_89, 2, x_68); -lean_ctor_set(x_89, 3, x_69); -lean_ctor_set(x_89, 4, x_88); -lean_ctor_set(x_89, 5, x_71); -lean_ctor_set(x_89, 6, x_73); -lean_ctor_set(x_89, 7, x_74); -lean_ctor_set_uint8(x_89, sizeof(void*)*8, x_72); -x_90 = lean_st_ref_set(x_2, x_89, x_65); -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; +lean_inc(x_76); +x_88 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(x_76, x_11); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_89 = lean_box(0); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_1); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_76, x_11, x_90); +if (lean_is_scalar(x_87)) { + x_92 = lean_alloc_ctor(0, 14, 1); } else { - lean_dec_ref(x_90); - x_92 = lean_box(0); + x_92 = x_87; } -x_93 = lean_box(0); -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_72); +lean_ctor_set(x_92, 1, x_73); +lean_ctor_set(x_92, 2, x_74); +lean_ctor_set(x_92, 3, x_75); +lean_ctor_set(x_92, 4, x_91); +lean_ctor_set(x_92, 5, x_77); +lean_ctor_set(x_92, 6, x_79); +lean_ctor_set(x_92, 7, x_80); +lean_ctor_set(x_92, 8, x_81); +lean_ctor_set(x_92, 9, x_82); +lean_ctor_set(x_92, 10, x_83); +lean_ctor_set(x_92, 11, x_84); +lean_ctor_set(x_92, 12, x_85); +lean_ctor_set(x_92, 13, x_86); +lean_ctor_set_uint8(x_92, sizeof(void*)*14, x_78); +x_93 = lean_st_ref_set(x_2, x_92, x_71); +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 { - x_94 = x_92; + lean_dec_ref(x_93); + x_95 = lean_box(0); } -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_91); -return x_94; +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; +x_98 = lean_ctor_get(x_88, 0); +lean_inc(x_98); +lean_dec(x_88); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_1); +lean_ctor_set(x_99, 1, x_98); +x_100 = l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__4(x_76, x_11, x_99); +if (lean_is_scalar(x_87)) { + x_101 = lean_alloc_ctor(0, 14, 1); +} else { + x_101 = x_87; +} +lean_ctor_set(x_101, 0, x_72); +lean_ctor_set(x_101, 1, x_73); +lean_ctor_set(x_101, 2, x_74); +lean_ctor_set(x_101, 3, x_75); +lean_ctor_set(x_101, 4, x_100); +lean_ctor_set(x_101, 5, x_77); +lean_ctor_set(x_101, 6, x_79); +lean_ctor_set(x_101, 7, x_80); +lean_ctor_set(x_101, 8, x_81); +lean_ctor_set(x_101, 9, x_82); +lean_ctor_set(x_101, 10, x_83); +lean_ctor_set(x_101, 11, x_84); +lean_ctor_set(x_101, 12, x_85); +lean_ctor_set(x_101, 13, x_86); +lean_ctor_set_uint8(x_101, sizeof(void*)*14, x_78); +x_102 = lean_st_ref_set(x_2, x_101, x_71); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_104 = x_102; +} else { + lean_dec_ref(x_102); + x_104 = lean_box(0); +} +x_105 = lean_box(0); +if (lean_is_scalar(x_104)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_104; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_103); +return x_106; } } } @@ -3799,6 +3989,486 @@ lean_dec(x_2); return x_11; } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_3, x_2); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +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_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_array_uget(x_4, x_3); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_array_uset(x_4, x_3, x_17); +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_inc(x_5); +lean_inc(x_1); +x_19 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern(x_16, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t 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(x_19); +x_22 = 1; +x_23 = lean_usize_add(x_3, x_22); +x_24 = lean_array_uset(x_18, x_3, x_20); +x_3 = x_23; +x_4 = x_24; +x_13 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +lean_dec(x_18); +lean_dec(x_12); +lean_dec(x_11); +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_1); +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) +{ +return x_19; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_19); +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_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___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_object* x_13) { +_start: +{ +if (lean_obj_tag(x_2) == 5) +{ +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_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_dec(x_2); +x_16 = lean_array_set(x_3, x_4, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_4, x_17); +lean_dec(x_4); +x_2 = x_14; +x_3 = x_16; +x_4 = x_18; +goto _start; +} +else +{ +size_t x_20; size_t x_21; lean_object* x_22; +lean_dec(x_4); +x_20 = lean_array_size(x_3); +x_21 = 0; +x_22 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___spec__1(x_1, x_20, x_21, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +x_25 = l_Lean_mkAppN(x_2, x_24); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_22); +x_28 = l_Lean_mkAppN(x_2, x_26); +lean_dec(x_26); +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; +lean_dec(x_2); +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; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_Expr_sort___override(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible___lambda__2), 6, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible___lambda__3___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_normalizeLevels___lambda__1___boxed), 4, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__2___boxed), 4, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; +x_12 = l_Lean_Expr_isBVar(x_1); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; +x_14 = lean_expr_eqv(x_1, x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = l_Lean_Meta_Grind_groundPattern_x3f(x_1); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_unsigned_to_nat(0u); +x_17 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_16); +x_18 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1; +lean_inc(x_17); +x_19 = lean_mk_array(x_17, x_18); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_17, x_20); +lean_dec(x_17); +x_22 = l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___spec__2(x_2, x_1, x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_1); +x_23 = lean_ctor_get(x_15, 0); +lean_inc(x_23); +lean_dec(x_15); +x_24 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2; +x_25 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_26 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_23, x_24, x_25, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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(x_26); +x_29 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4; +x_30 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5; +lean_inc(x_10); +lean_inc(x_9); +x_31 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_27, x_29, x_30, x_9, x_10, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_34 = l_Lean_Meta_Grind_canon(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_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(x_34); +x_37 = l_Lean_Meta_Grind_shareCommon(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_38); +x_40 = l_Lean_Meta_Grind_internalize(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +x_43 = l_Lean_Meta_Grind_mkGroundPattern(x_38); +lean_ctor_set(x_40, 0, x_43); +return x_40; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +x_45 = l_Lean_Meta_Grind_mkGroundPattern(x_38); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_38); +x_47 = !lean_is_exclusive(x_40); +if (x_47 == 0) +{ +return x_40; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_40, 0); +x_49 = lean_ctor_get(x_40, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_40); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +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); +lean_dec(x_2); +x_51 = !lean_is_exclusive(x_34); +if (x_51 == 0) +{ +return x_34; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_34, 0); +x_53 = lean_ctor_get(x_34, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_34); +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; +} +} +} +else +{ +uint8_t x_55; +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); +lean_dec(x_2); +x_55 = !lean_is_exclusive(x_31); +if (x_55 == 0) +{ +return x_31; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_31, 0); +x_57 = lean_ctor_get(x_31, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_31); +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_59; +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); +lean_dec(x_2); +x_59 = !lean_is_exclusive(x_26); +if (x_59 == 0) +{ +return x_26; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_26, 0); +x_61 = lean_ctor_get(x_26, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_26); +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 +{ +lean_object* x_63; +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); +lean_dec(x_2); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_1); +lean_ctor_set(x_63, 1, x_11); +return x_63; +} +} +else +{ +lean_object* x_64; +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); +lean_dec(x_2); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_1); +lean_ctor_set(x_64, 1, x_11); +return x_64; +} +} +} static lean_object* _init_l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__1() { _start: { @@ -4166,50 +4836,50 @@ _start: switch (lean_obj_tag(x_3)) { case 0: { -lean_object* x_15; lean_object* x_16; lean_object* x_31; uint8_t x_32; +lean_object* x_15; lean_object* x_16; lean_object* x_28; uint8_t x_29; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); x_15 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_2); -x_31 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_32 = l_Lean_Expr_isConstOf(x_3, x_31); -if (x_32 == 0) +x_28 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_29 = l_Lean_Expr_isConstOf(x_3, x_28); +if (x_29 == 0) { -lean_object* x_33; -x_33 = lean_box(0); -x_16 = x_33; -goto block_30; +lean_object* x_30; +x_30 = lean_box(0); +x_16 = x_30; +goto block_27; } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_array_get_size(x_4); -x_35 = lean_unsigned_to_nat(2u); -x_36 = lean_nat_dec_eq(x_34, x_35); -if (x_36 == 0) +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_array_get_size(x_4); +x_32 = lean_unsigned_to_nat(2u); +x_33 = lean_nat_dec_eq(x_31, x_32); +if (x_33 == 0) { -lean_object* x_37; -lean_dec(x_34); -x_37 = lean_box(0); -x_16 = x_37; -goto block_30; +lean_object* x_34; +lean_dec(x_31); +x_34 = lean_box(0); +x_16 = x_34; +goto block_27; } else { -lean_object* x_38; uint8_t x_39; +lean_object* x_35; uint8_t x_36; lean_dec(x_15); lean_dec(x_3); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_nat_dec_lt(x_38, x_34); -lean_dec(x_34); -if (x_39 == 0) +x_35 = lean_unsigned_to_nat(0u); +x_36 = lean_nat_dec_lt(x_35, x_31); +lean_dec(x_31); +if (x_36 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_4); -x_40 = l_Lean_instInhabitedExpr; -x_41 = l_outOfBounds___rarg(x_40); +x_37 = l_Lean_instInhabitedExpr; +x_38 = l_outOfBounds___rarg(x_37); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -4219,30 +4889,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_41); -x_42 = l_Lean_Meta_Grind_internalize(x_41, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_42) == 0) +lean_inc(x_38); +x_39 = l_Lean_Meta_Grind_internalize(x_38, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_42, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +lean_inc(x_1); +x_41 = l_Lean_Meta_Grind_registerParent(x_1, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_40); +lean_dec(x_38); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -lean_dec(x_42); -lean_inc(x_1); -x_44 = l_Lean_Meta_Grind_registerParent(x_1, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_43); lean_dec(x_41); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_46); -lean_dec(x_45); -return x_47; +x_44 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_43); +lean_dec(x_42); +return x_44; } else { -uint8_t x_48; -lean_dec(x_41); +uint8_t x_45; +lean_dec(x_38); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4253,30 +4923,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_42); -if (x_48 == 0) +x_45 = !lean_is_exclusive(x_39); +if (x_45 == 0) { -return x_42; +return x_39; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_42, 0); -x_50 = lean_ctor_get(x_42, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_42); -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_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_39, 0); +x_47 = lean_ctor_get(x_39, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_39); +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; } } } else { -lean_object* x_52; lean_object* x_53; -x_52 = lean_array_fget(x_4, x_38); +lean_object* x_49; lean_object* x_50; +x_49 = lean_array_fget(x_4, x_35); lean_dec(x_4); lean_inc(x_13); lean_inc(x_12); @@ -4287,30 +4957,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_52); -x_53 = l_Lean_Meta_Grind_internalize(x_52, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_53) == 0) +lean_inc(x_49); +x_50 = l_Lean_Meta_Grind_internalize(x_49, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); lean_inc(x_1); -x_55 = l_Lean_Meta_Grind_registerParent(x_1, x_52, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_54); +x_52 = l_Lean_Meta_Grind_registerParent(x_1, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +lean_dec(x_49); +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(x_52); -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(x_55); -x_58 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_57); -lean_dec(x_56); -return x_58; +x_55 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_54); +lean_dec(x_53); +return x_55; } else { -uint8_t x_59; -lean_dec(x_52); +uint8_t x_56; +lean_dec(x_49); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4321,36 +4991,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_53); -if (x_59 == 0) +x_56 = !lean_is_exclusive(x_50); +if (x_56 == 0) { -return x_53; +return x_50; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_53, 0); -x_61 = lean_ctor_get(x_53, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_53); -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; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_50, 0); +x_58 = lean_ctor_get(x_50, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_50); +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; } } } } } -block_30: +block_27: { -uint8_t x_17; +lean_object* x_17; lean_dec(x_16); -x_17 = l_Lean_Expr_isConst(x_3); -if (x_17 == 0) -{ -lean_object* x_18; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -4361,29 +5027,29 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_18 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_18) == 0) +x_17 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_17) == 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, 1); -lean_inc(x_19); -lean_dec(x_18); +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, 1); +lean_inc(x_18); +lean_dec(x_17); lean_inc(x_1); -x_20 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_19); +x_19 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_18); lean_dec(x_3); -x_21 = lean_ctor_get(x_20, 0); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); +lean_dec(x_19); +x_22 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_15, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21); lean_dec(x_20); -x_23 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_15, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_22); -lean_dec(x_21); lean_dec(x_4); -return x_23; +return x_22; } else { -uint8_t x_24; +uint8_t x_23; lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); @@ -4397,83 +5063,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) { -return x_18; +return x_17; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_18, 0); -x_26 = lean_ctor_get(x_18, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_17, 0); +x_25 = lean_ctor_get(x_17, 1); lean_inc(x_25); -lean_dec(x_18); -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; +lean_inc(x_24); +lean_dec(x_17); +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; } } } -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_3); -x_28 = lean_box(0); -x_29 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_15, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_29; -} -} } case 1: { -lean_object* x_63; lean_object* x_64; lean_object* x_79; uint8_t x_80; +lean_object* x_60; lean_object* x_61; lean_object* x_73; uint8_t x_74; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_63 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_63, 0, x_1); -lean_closure_set(x_63, 1, x_2); -x_79 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_80 = l_Lean_Expr_isConstOf(x_3, x_79); -if (x_80 == 0) +x_60 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_60, 0, x_1); +lean_closure_set(x_60, 1, x_2); +x_73 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_74 = l_Lean_Expr_isConstOf(x_3, x_73); +if (x_74 == 0) { -lean_object* x_81; -x_81 = lean_box(0); -x_64 = x_81; -goto block_78; +lean_object* x_75; +x_75 = lean_box(0); +x_61 = x_75; +goto block_72; } else { -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_array_get_size(x_4); -x_83 = lean_unsigned_to_nat(2u); -x_84 = lean_nat_dec_eq(x_82, x_83); -if (x_84 == 0) +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = lean_array_get_size(x_4); +x_77 = lean_unsigned_to_nat(2u); +x_78 = lean_nat_dec_eq(x_76, x_77); +if (x_78 == 0) { -lean_object* x_85; -lean_dec(x_82); -x_85 = lean_box(0); -x_64 = x_85; -goto block_78; +lean_object* x_79; +lean_dec(x_76); +x_79 = lean_box(0); +x_61 = x_79; +goto block_72; } else { -lean_object* x_86; uint8_t x_87; -lean_dec(x_63); +lean_object* x_80; uint8_t x_81; +lean_dec(x_60); lean_dec(x_3); -x_86 = lean_unsigned_to_nat(0u); -x_87 = lean_nat_dec_lt(x_86, x_82); -lean_dec(x_82); -if (x_87 == 0) +x_80 = lean_unsigned_to_nat(0u); +x_81 = lean_nat_dec_lt(x_80, x_76); +lean_dec(x_76); +if (x_81 == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_dec(x_4); -x_88 = l_Lean_instInhabitedExpr; -x_89 = l_outOfBounds___rarg(x_88); +x_82 = l_Lean_instInhabitedExpr; +x_83 = l_outOfBounds___rarg(x_82); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -4483,138 +5139,134 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_89); -x_90 = l_Lean_Meta_Grind_internalize(x_89, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_90) == 0) +lean_inc(x_83); +x_84 = l_Lean_Meta_Grind_internalize(x_83, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); lean_inc(x_1); -x_92 = l_Lean_Meta_Grind_registerParent(x_1, x_89, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_91); -lean_dec(x_89); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); +x_86 = l_Lean_Meta_Grind_registerParent(x_1, x_83, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_85); +lean_dec(x_83); +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(x_86); +x_89 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_87, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_88); +lean_dec(x_87); +return x_89; +} +else +{ +uint8_t x_90; +lean_dec(x_83); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_84); +if (x_90 == 0) +{ +return x_84; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_84, 0); +x_92 = lean_ctor_get(x_84, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_84); +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_94; lean_object* x_95; +x_94 = lean_array_fget(x_4, x_80); +lean_dec(x_4); +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_inc(x_2); lean_inc(x_94); -lean_dec(x_92); -x_95 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_93, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_94); -lean_dec(x_93); +x_95 = l_Lean_Meta_Grind_internalize(x_94, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_95) == 0) +{ +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_95, 1); +lean_inc(x_96); +lean_dec(x_95); +lean_inc(x_1); +x_97 = l_Lean_Meta_Grind_registerParent(x_1, x_94, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_96); +lean_dec(x_94); +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(x_97); +x_100 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_98, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_99); +lean_dec(x_98); +return x_100; +} +else +{ +uint8_t x_101; +lean_dec(x_94); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_101 = !lean_is_exclusive(x_95); +if (x_101 == 0) +{ return x_95; } else { -uint8_t x_96; -lean_dec(x_89); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_96 = !lean_is_exclusive(x_90); -if (x_96 == 0) -{ -return x_90; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_90, 0); -x_98 = lean_ctor_get(x_90, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_90); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; -} -} -} -else -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_array_fget(x_4, x_86); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_100); -x_101 = l_Lean_Meta_Grind_internalize(x_100, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_102 = lean_ctor_get(x_101, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_95, 0); +x_103 = lean_ctor_get(x_95, 1); +lean_inc(x_103); lean_inc(x_102); -lean_dec(x_101); -lean_inc(x_1); -x_103 = l_Lean_Meta_Grind_registerParent(x_1, x_100, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_102); -lean_dec(x_100); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_104, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_105); -lean_dec(x_104); -return x_106; +lean_dec(x_95); +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 +} +} +} +} +block_72: { -uint8_t x_107; -lean_dec(x_100); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_107 = !lean_is_exclusive(x_101); -if (x_107 == 0) -{ -return x_101; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_101, 0); -x_109 = lean_ctor_get(x_101, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_101); -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; -} -} -} -} -} -block_78: -{ -uint8_t x_65; -lean_dec(x_64); -x_65 = l_Lean_Expr_isConst(x_3); -if (x_65 == 0) -{ -lean_object* x_66; +lean_object* x_62; +lean_dec(x_61); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -4625,30 +5277,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_66 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_66) == 0) +x_62 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); +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_62, 1); +lean_inc(x_63); +lean_dec(x_62); lean_inc(x_1); -x_68 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_67); +x_64 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_63); lean_dec(x_3); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_63, x_69, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); -lean_dec(x_69); +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(x_64); +x_67 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_60, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_66); +lean_dec(x_65); lean_dec(x_4); -return x_71; +return x_67; } else { -uint8_t x_72; -lean_dec(x_63); +uint8_t x_68; +lean_dec(x_60); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4661,150 +5313,140 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_66); -if (x_72 == 0) +x_68 = !lean_is_exclusive(x_62); +if (x_68 == 0) { -return x_66; +return x_62; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_66, 0); -x_74 = lean_ctor_get(x_66, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_66); -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; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_62, 0); +x_70 = lean_ctor_get(x_62, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_62); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } -else -{ -lean_object* x_76; lean_object* x_77; -lean_dec(x_3); -x_76 = lean_box(0); -x_77 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_63, x_76, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_77; -} -} } case 2: { -lean_object* x_111; lean_object* x_112; lean_object* x_127; uint8_t x_128; +lean_object* x_105; lean_object* x_106; lean_object* x_118; uint8_t x_119; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_111 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_111, 0, x_1); -lean_closure_set(x_111, 1, x_2); -x_127 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_128 = l_Lean_Expr_isConstOf(x_3, x_127); -if (x_128 == 0) +x_105 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_105, 0, x_1); +lean_closure_set(x_105, 1, x_2); +x_118 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_119 = l_Lean_Expr_isConstOf(x_3, x_118); +if (x_119 == 0) { -lean_object* x_129; -x_129 = lean_box(0); -x_112 = x_129; -goto block_126; +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_117; } else { -lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_130 = lean_array_get_size(x_4); -x_131 = lean_unsigned_to_nat(2u); -x_132 = lean_nat_dec_eq(x_130, x_131); -if (x_132 == 0) +lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_121 = lean_array_get_size(x_4); +x_122 = lean_unsigned_to_nat(2u); +x_123 = lean_nat_dec_eq(x_121, x_122); +if (x_123 == 0) { -lean_object* x_133; -lean_dec(x_130); -x_133 = lean_box(0); -x_112 = x_133; -goto block_126; +lean_object* x_124; +lean_dec(x_121); +x_124 = lean_box(0); +x_106 = x_124; +goto block_117; } else { -lean_object* x_134; uint8_t x_135; -lean_dec(x_111); +lean_object* x_125; uint8_t x_126; +lean_dec(x_105); lean_dec(x_3); -x_134 = lean_unsigned_to_nat(0u); -x_135 = lean_nat_dec_lt(x_134, x_130); -lean_dec(x_130); +x_125 = lean_unsigned_to_nat(0u); +x_126 = lean_nat_dec_lt(x_125, x_121); +lean_dec(x_121); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_4); +x_127 = l_Lean_instInhabitedExpr; +x_128 = l_outOfBounds___rarg(x_127); +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_inc(x_2); +lean_inc(x_128); +x_129 = l_Lean_Meta_Grind_internalize(x_128, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +lean_inc(x_1); +x_131 = l_Lean_Meta_Grind_registerParent(x_1, x_128, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_130); +lean_dec(x_128); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_132, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_133); +lean_dec(x_132); +return x_134; +} +else +{ +uint8_t x_135; +lean_dec(x_128); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_135 = !lean_is_exclusive(x_129); if (x_135 == 0) { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_4); -x_136 = l_Lean_instInhabitedExpr; -x_137 = l_outOfBounds___rarg(x_136); -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_inc(x_2); -lean_inc(x_137); -x_138 = l_Lean_Meta_Grind_internalize(x_137, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -lean_dec(x_138); -lean_inc(x_1); -x_140 = l_Lean_Meta_Grind_registerParent(x_1, x_137, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_139); -lean_dec(x_137); -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(x_140); -x_143 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_141, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_142); -lean_dec(x_141); -return x_143; +return x_129; } else { -uint8_t x_144; -lean_dec(x_137); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_144 = !lean_is_exclusive(x_138); -if (x_144 == 0) -{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_129, 0); +x_137 = lean_ctor_get(x_129, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_129); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); return x_138; } -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_138, 0); -x_146 = lean_ctor_get(x_138, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_138); -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; -} } } else { -lean_object* x_148; lean_object* x_149; -x_148 = lean_array_fget(x_4, x_134); +lean_object* x_139; lean_object* x_140; +x_139 = lean_array_fget(x_4, x_125); lean_dec(x_4); lean_inc(x_13); lean_inc(x_12); @@ -4815,30 +5457,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_148); -x_149 = l_Lean_Meta_Grind_internalize(x_148, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_149) == 0) +lean_inc(x_139); +x_140 = l_Lean_Meta_Grind_internalize(x_139, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec(x_149); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +lean_dec(x_140); lean_inc(x_1); -x_151 = l_Lean_Meta_Grind_registerParent(x_1, x_148, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_150); -lean_dec(x_148); -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(x_151); -x_154 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_152, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_153); -lean_dec(x_152); -return x_154; +x_142 = l_Lean_Meta_Grind_registerParent(x_1, x_139, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_141); +lean_dec(x_139); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +x_145 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_143, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_144); +lean_dec(x_143); +return x_145; } else { -uint8_t x_155; -lean_dec(x_148); +uint8_t x_146; +lean_dec(x_139); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4849,36 +5491,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_155 = !lean_is_exclusive(x_149); -if (x_155 == 0) +x_146 = !lean_is_exclusive(x_140); +if (x_146 == 0) { -return x_149; +return x_140; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_149, 0); -x_157 = lean_ctor_get(x_149, 1); -lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_149); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_140, 0); +x_148 = lean_ctor_get(x_140, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_140); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +return x_149; } } } } } -block_126: +block_117: { -uint8_t x_113; -lean_dec(x_112); -x_113 = l_Lean_Expr_isConst(x_3); -if (x_113 == 0) -{ -lean_object* x_114; +lean_object* x_107; +lean_dec(x_106); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -4889,30 +5527,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_114 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_114) == 0) +x_107 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec(x_114); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); lean_inc(x_1); -x_116 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_115); +x_109 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_108); lean_dec(x_3); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_119 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_111, x_117, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_118); -lean_dec(x_117); +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(x_109); +x_112 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_105, x_110, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_111); +lean_dec(x_110); lean_dec(x_4); -return x_119; +return x_112; } else { -uint8_t x_120; -lean_dec(x_111); +uint8_t x_113; +lean_dec(x_105); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4925,83 +5563,141 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_120 = !lean_is_exclusive(x_114); -if (x_120 == 0) +x_113 = !lean_is_exclusive(x_107); +if (x_113 == 0) { -return x_114; +return x_107; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_114, 0); -x_122 = lean_ctor_get(x_114, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_114); -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; +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_107, 0); +x_115 = lean_ctor_get(x_107, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_107); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } } -else -{ -lean_object* x_124; lean_object* x_125; -lean_dec(x_3); -x_124 = lean_box(0); -x_125 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_111, x_124, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_125; -} -} } case 3: { -lean_object* x_159; lean_object* x_160; lean_object* x_175; uint8_t x_176; +lean_object* x_150; lean_object* x_151; lean_object* x_163; uint8_t x_164; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_159 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_159, 0, x_1); -lean_closure_set(x_159, 1, x_2); -x_175 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_176 = l_Lean_Expr_isConstOf(x_3, x_175); -if (x_176 == 0) +x_150 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_150, 0, x_1); +lean_closure_set(x_150, 1, x_2); +x_163 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_164 = l_Lean_Expr_isConstOf(x_3, x_163); +if (x_164 == 0) { -lean_object* x_177; -x_177 = lean_box(0); -x_160 = x_177; -goto block_174; +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_162; } else { -lean_object* x_178; lean_object* x_179; uint8_t x_180; -x_178 = lean_array_get_size(x_4); -x_179 = lean_unsigned_to_nat(2u); -x_180 = lean_nat_dec_eq(x_178, x_179); +lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_166 = lean_array_get_size(x_4); +x_167 = lean_unsigned_to_nat(2u); +x_168 = lean_nat_dec_eq(x_166, x_167); +if (x_168 == 0) +{ +lean_object* x_169; +lean_dec(x_166); +x_169 = lean_box(0); +x_151 = x_169; +goto block_162; +} +else +{ +lean_object* x_170; uint8_t x_171; +lean_dec(x_150); +lean_dec(x_3); +x_170 = lean_unsigned_to_nat(0u); +x_171 = lean_nat_dec_lt(x_170, x_166); +lean_dec(x_166); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_4); +x_172 = l_Lean_instInhabitedExpr; +x_173 = l_outOfBounds___rarg(x_172); +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_inc(x_2); +lean_inc(x_173); +x_174 = l_Lean_Meta_Grind_internalize(x_173, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +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; +x_175 = lean_ctor_get(x_174, 1); +lean_inc(x_175); +lean_dec(x_174); +lean_inc(x_1); +x_176 = l_Lean_Meta_Grind_registerParent(x_1, x_173, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_175); +lean_dec(x_173); +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +lean_dec(x_176); +x_179 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_177, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_178); +lean_dec(x_177); +return x_179; +} +else +{ +uint8_t x_180; +lean_dec(x_173); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_180 = !lean_is_exclusive(x_174); if (x_180 == 0) { -lean_object* x_181; -lean_dec(x_178); -x_181 = lean_box(0); -x_160 = x_181; -goto block_174; +return x_174; } else { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -lean_dec(x_3); -x_182 = lean_unsigned_to_nat(0u); -x_183 = lean_nat_dec_lt(x_182, x_178); -lean_dec(x_178); -if (x_183 == 0) +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_174, 0); +x_182 = lean_ctor_get(x_174, 1); +lean_inc(x_182); +lean_inc(x_181); +lean_dec(x_174); +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +return x_183; +} +} +} +else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_object* x_184; lean_object* x_185; +x_184 = lean_array_fget(x_4, x_170); lean_dec(x_4); -x_184 = l_Lean_instInhabitedExpr; -x_185 = l_outOfBounds___rarg(x_184); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5011,30 +5707,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_185); -x_186 = l_Lean_Meta_Grind_internalize(x_185, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_186) == 0) +lean_inc(x_184); +x_185 = l_Lean_Meta_Grind_internalize(x_184, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_185) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_187 = lean_ctor_get(x_186, 1); -lean_inc(x_187); -lean_dec(x_186); -lean_inc(x_1); -x_188 = l_Lean_Meta_Grind_registerParent(x_1, x_185, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_187); +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); lean_dec(x_185); -x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_1); +x_187 = l_Lean_Meta_Grind_registerParent(x_1, x_184, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_186); +lean_dec(x_184); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); +lean_dec(x_187); +x_190 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_188, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_189); lean_dec(x_188); -x_191 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_189, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_190); -lean_dec(x_189); -return x_191; +return x_190; } else { -uint8_t x_192; -lean_dec(x_185); +uint8_t x_191; +lean_dec(x_184); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5045,104 +5741,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_192 = !lean_is_exclusive(x_186); -if (x_192 == 0) +x_191 = !lean_is_exclusive(x_185); +if (x_191 == 0) { -return x_186; +return x_185; } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_ctor_get(x_186, 0); -x_194 = lean_ctor_get(x_186, 1); -lean_inc(x_194); +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_185, 0); +x_193 = lean_ctor_get(x_185, 1); lean_inc(x_193); -lean_dec(x_186); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -return x_195; +lean_inc(x_192); +lean_dec(x_185); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +return x_194; } } } -else +} +} +block_162: { -lean_object* x_196; lean_object* x_197; -x_196 = lean_array_fget(x_4, x_182); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_196); -x_197 = l_Lean_Meta_Grind_internalize(x_196, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -lean_dec(x_197); -lean_inc(x_1); -x_199 = l_Lean_Meta_Grind_registerParent(x_1, x_196, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_198); -lean_dec(x_196); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -lean_dec(x_199); -x_202 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_200, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_201); -lean_dec(x_200); -return x_202; -} -else -{ -uint8_t x_203; -lean_dec(x_196); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_203 = !lean_is_exclusive(x_197); -if (x_203 == 0) -{ -return x_197; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_197, 0); -x_205 = lean_ctor_get(x_197, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_197); -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; -} -} -} -} -} -block_174: -{ -uint8_t x_161; -lean_dec(x_160); -x_161 = l_Lean_Expr_isConst(x_3); -if (x_161 == 0) -{ -lean_object* x_162; +lean_object* x_152; +lean_dec(x_151); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5153,30 +5777,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_162 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_162) == 0) +x_152 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +lean_dec(x_152); lean_inc(x_1); -x_164 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_163); +x_154 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_153); lean_dec(x_3); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_159, x_165, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_166); -lean_dec(x_165); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_150, x_155, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_156); +lean_dec(x_155); lean_dec(x_4); -return x_167; +return x_157; } else { -uint8_t x_168; -lean_dec(x_159); +uint8_t x_158; +lean_dec(x_150); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5189,83 +5813,76 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_168 = !lean_is_exclusive(x_162); -if (x_168 == 0) +x_158 = !lean_is_exclusive(x_152); +if (x_158 == 0) { -return x_162; +return x_152; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_162, 0); -x_170 = lean_ctor_get(x_162, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_162); -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; +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_152, 0); +x_160 = lean_ctor_get(x_152, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_152); +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 -{ -lean_object* x_172; lean_object* x_173; -lean_dec(x_3); -x_172 = lean_box(0); -x_173 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_159, x_172, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_173; -} -} } case 4: { -lean_object* x_207; lean_object* x_208; lean_object* x_223; uint8_t x_224; +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_207; uint8_t x_208; lean_dec(x_5); +x_195 = lean_ctor_get(x_3, 0); +lean_inc(x_195); lean_inc(x_2); lean_inc(x_1); -x_207 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_207, 0, x_1); -lean_closure_set(x_207, 1, x_2); -x_223 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_224 = l_Lean_Expr_isConstOf(x_3, x_223); -if (x_224 == 0) -{ -lean_object* x_225; -x_225 = lean_box(0); -x_208 = x_225; -goto block_222; -} -else -{ -lean_object* x_226; lean_object* x_227; uint8_t x_228; -x_226 = lean_array_get_size(x_4); -x_227 = lean_unsigned_to_nat(2u); -x_228 = lean_nat_dec_eq(x_226, x_227); -if (x_228 == 0) -{ -lean_object* x_229; -lean_dec(x_226); -x_229 = lean_box(0); -x_208 = x_229; -goto block_222; -} -else -{ -lean_object* x_230; uint8_t x_231; -lean_dec(x_207); +x_196 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_196, 0, x_1); +lean_closure_set(x_196, 1, x_2); +x_207 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_208 = l_Lean_Expr_isConstOf(x_3, x_207); lean_dec(x_3); -x_230 = lean_unsigned_to_nat(0u); -x_231 = lean_nat_dec_lt(x_230, x_226); -lean_dec(x_226); -if (x_231 == 0) +if (x_208 == 0) { -lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_object* x_209; +x_209 = lean_box(0); +x_197 = x_209; +goto block_206; +} +else +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +x_210 = lean_array_get_size(x_4); +x_211 = lean_unsigned_to_nat(2u); +x_212 = lean_nat_dec_eq(x_210, x_211); +if (x_212 == 0) +{ +lean_object* x_213; +lean_dec(x_210); +x_213 = lean_box(0); +x_197 = x_213; +goto block_206; +} +else +{ +lean_object* x_214; uint8_t x_215; +lean_dec(x_196); +lean_dec(x_195); +x_214 = lean_unsigned_to_nat(0u); +x_215 = lean_nat_dec_lt(x_214, x_210); +lean_dec(x_210); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_dec(x_4); -x_232 = l_Lean_instInhabitedExpr; -x_233 = l_outOfBounds___rarg(x_232); +x_216 = l_Lean_instInhabitedExpr; +x_217 = l_outOfBounds___rarg(x_216); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5275,30 +5892,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_233); -x_234 = l_Lean_Meta_Grind_internalize(x_233, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_234) == 0) +lean_inc(x_217); +x_218 = l_Lean_Meta_Grind_internalize(x_217, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_218) == 0) { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_235 = lean_ctor_get(x_234, 1); -lean_inc(x_235); -lean_dec(x_234); +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_219 = lean_ctor_get(x_218, 1); +lean_inc(x_219); +lean_dec(x_218); lean_inc(x_1); -x_236 = l_Lean_Meta_Grind_registerParent(x_1, x_233, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_235); -lean_dec(x_233); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -x_239 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_237, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_238); -lean_dec(x_237); -return x_239; +x_220 = l_Lean_Meta_Grind_registerParent(x_1, x_217, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_219); +lean_dec(x_217); +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_221, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_222); +lean_dec(x_221); +return x_223; } else { -uint8_t x_240; -lean_dec(x_233); +uint8_t x_224; +lean_dec(x_217); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5309,64 +5926,64 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_240 = !lean_is_exclusive(x_234); -if (x_240 == 0) +x_224 = !lean_is_exclusive(x_218); +if (x_224 == 0) { +return x_218; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_218, 0); +x_226 = lean_ctor_get(x_218, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_218); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; +} +} +} +else +{ +lean_object* x_228; lean_object* x_229; +x_228 = lean_array_fget(x_4, x_214); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_228); +x_229 = l_Lean_Meta_Grind_internalize(x_228, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +lean_dec(x_229); +lean_inc(x_1); +x_231 = l_Lean_Meta_Grind_registerParent(x_1, x_228, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_230); +lean_dec(x_228); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); +lean_dec(x_231); +x_234 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_232, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_233); +lean_dec(x_232); return x_234; } else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_234, 0); -x_242 = lean_ctor_get(x_234, 1); -lean_inc(x_242); -lean_inc(x_241); -lean_dec(x_234); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -return x_243; -} -} -} -else -{ -lean_object* x_244; lean_object* x_245; -x_244 = lean_array_fget(x_4, x_230); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_244); -x_245 = l_Lean_Meta_Grind_internalize(x_244, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_245) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_246 = lean_ctor_get(x_245, 1); -lean_inc(x_246); -lean_dec(x_245); -lean_inc(x_1); -x_247 = l_Lean_Meta_Grind_registerParent(x_1, x_244, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_246); -lean_dec(x_244); -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -x_250 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_248, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_249); -lean_dec(x_248); -return x_250; -} -else -{ -uint8_t x_251; -lean_dec(x_244); +uint8_t x_235; +lean_dec(x_228); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5377,36 +5994,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_251 = !lean_is_exclusive(x_245); -if (x_251 == 0) +x_235 = !lean_is_exclusive(x_229); +if (x_235 == 0) { -return x_245; +return x_229; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_245, 0); -x_253 = lean_ctor_get(x_245, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_245); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -return x_254; +lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_236 = lean_ctor_get(x_229, 0); +x_237 = lean_ctor_get(x_229, 1); +lean_inc(x_237); +lean_inc(x_236); +lean_dec(x_229); +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_236); +lean_ctor_set(x_238, 1, x_237); +return x_238; } } } } } -block_222: +block_206: { -uint8_t x_209; -lean_dec(x_208); -x_209 = l_Lean_Expr_isConst(x_3); -if (x_209 == 0) -{ -lean_object* x_210; +lean_object* x_198; +lean_dec(x_197); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5416,31 +6029,25 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_3); -x_210 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_210) == 0) +x_198 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(x_195, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_195); +if (lean_obj_tag(x_198) == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_211 = lean_ctor_get(x_210, 1); -lean_inc(x_211); -lean_dec(x_210); -lean_inc(x_1); -x_212 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_211); -lean_dec(x_3); -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -lean_dec(x_212); -x_215 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_207, x_213, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_214); -lean_dec(x_213); +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_198, 1); +lean_inc(x_200); +lean_dec(x_198); +x_201 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_196, x_199, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_200); +lean_dec(x_199); lean_dec(x_4); -return x_215; +return x_201; } else { -uint8_t x_216; -lean_dec(x_207); +uint8_t x_202; +lean_dec(x_196); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5450,244 +6057,229 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_216 = !lean_is_exclusive(x_210); -if (x_216 == 0) +x_202 = !lean_is_exclusive(x_198); +if (x_202 == 0) { -return x_210; +return x_198; } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_210, 0); -x_218 = lean_ctor_get(x_210, 1); -lean_inc(x_218); -lean_inc(x_217); -lean_dec(x_210); -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -return x_219; +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_198, 0); +x_204 = lean_ctor_get(x_198, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_198); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } -else -{ -lean_object* x_220; lean_object* x_221; -lean_dec(x_3); -x_220 = lean_box(0); -x_221 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_207, x_220, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_221; -} -} } case 5: { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_255 = lean_ctor_get(x_3, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_3, 1); -lean_inc(x_256); +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_239 = lean_ctor_get(x_3, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_3, 1); +lean_inc(x_240); lean_dec(x_3); -x_257 = lean_array_set(x_4, x_5, x_256); -x_258 = lean_unsigned_to_nat(1u); -x_259 = lean_nat_sub(x_5, x_258); +x_241 = lean_array_set(x_4, x_5, x_240); +x_242 = lean_unsigned_to_nat(1u); +x_243 = lean_nat_sub(x_5, x_242); lean_dec(x_5); -x_3 = x_255; -x_4 = x_257; -x_5 = x_259; +x_3 = x_239; +x_4 = x_241; +x_5 = x_243; goto _start; } case 6: { -lean_object* x_261; lean_object* x_262; lean_object* x_277; uint8_t x_278; +lean_object* x_245; lean_object* x_246; lean_object* x_258; uint8_t x_259; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_261 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_261, 0, x_1); -lean_closure_set(x_261, 1, x_2); -x_277 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_278 = l_Lean_Expr_isConstOf(x_3, x_277); -if (x_278 == 0) +x_245 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_245, 0, x_1); +lean_closure_set(x_245, 1, x_2); +x_258 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_259 = l_Lean_Expr_isConstOf(x_3, x_258); +if (x_259 == 0) { -lean_object* x_279; -x_279 = lean_box(0); -x_262 = x_279; -goto block_276; +lean_object* x_260; +x_260 = lean_box(0); +x_246 = x_260; +goto block_257; } else { -lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_280 = lean_array_get_size(x_4); -x_281 = lean_unsigned_to_nat(2u); -x_282 = lean_nat_dec_eq(x_280, x_281); -if (x_282 == 0) -{ -lean_object* x_283; -lean_dec(x_280); -x_283 = lean_box(0); -x_262 = x_283; -goto block_276; -} -else -{ -lean_object* x_284; uint8_t x_285; -lean_dec(x_261); -lean_dec(x_3); -x_284 = lean_unsigned_to_nat(0u); -x_285 = lean_nat_dec_lt(x_284, x_280); -lean_dec(x_280); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; -lean_dec(x_4); -x_286 = l_Lean_instInhabitedExpr; -x_287 = l_outOfBounds___rarg(x_286); -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_inc(x_2); -lean_inc(x_287); -x_288 = l_Lean_Meta_Grind_internalize(x_287, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_288) == 0) -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_289 = lean_ctor_get(x_288, 1); -lean_inc(x_289); -lean_dec(x_288); -lean_inc(x_1); -x_290 = l_Lean_Meta_Grind_registerParent(x_1, x_287, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_289); -lean_dec(x_287); -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_290, 1); -lean_inc(x_292); -lean_dec(x_290); -x_293 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_291, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_292); -lean_dec(x_291); -return x_293; -} -else -{ -uint8_t x_294; -lean_dec(x_287); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_294 = !lean_is_exclusive(x_288); -if (x_294 == 0) -{ -return x_288; -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_295 = lean_ctor_get(x_288, 0); -x_296 = lean_ctor_get(x_288, 1); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_288); -x_297 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_297, 0, x_295); -lean_ctor_set(x_297, 1, x_296); -return x_297; -} -} -} -else -{ -lean_object* x_298; lean_object* x_299; -x_298 = lean_array_fget(x_4, x_284); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_298); -x_299 = l_Lean_Meta_Grind_internalize(x_298, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -x_300 = lean_ctor_get(x_299, 1); -lean_inc(x_300); -lean_dec(x_299); -lean_inc(x_1); -x_301 = l_Lean_Meta_Grind_registerParent(x_1, x_298, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_300); -lean_dec(x_298); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_302, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_303); -lean_dec(x_302); -return x_304; -} -else -{ -uint8_t x_305; -lean_dec(x_298); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_305 = !lean_is_exclusive(x_299); -if (x_305 == 0) -{ -return x_299; -} -else -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_306 = lean_ctor_get(x_299, 0); -x_307 = lean_ctor_get(x_299, 1); -lean_inc(x_307); -lean_inc(x_306); -lean_dec(x_299); -x_308 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_308, 0, x_306); -lean_ctor_set(x_308, 1, x_307); -return x_308; -} -} -} -} -} -block_276: -{ -uint8_t x_263; -lean_dec(x_262); -x_263 = l_Lean_Expr_isConst(x_3); +lean_object* x_261; lean_object* x_262; uint8_t x_263; +x_261 = lean_array_get_size(x_4); +x_262 = lean_unsigned_to_nat(2u); +x_263 = lean_nat_dec_eq(x_261, x_262); if (x_263 == 0) { lean_object* x_264; +lean_dec(x_261); +x_264 = lean_box(0); +x_246 = x_264; +goto block_257; +} +else +{ +lean_object* x_265; uint8_t x_266; +lean_dec(x_245); +lean_dec(x_3); +x_265 = lean_unsigned_to_nat(0u); +x_266 = lean_nat_dec_lt(x_265, x_261); +lean_dec(x_261); +if (x_266 == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_4); +x_267 = l_Lean_instInhabitedExpr; +x_268 = l_outOfBounds___rarg(x_267); +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_inc(x_2); +lean_inc(x_268); +x_269 = l_Lean_Meta_Grind_internalize(x_268, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_269) == 0) +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +lean_dec(x_269); +lean_inc(x_1); +x_271 = l_Lean_Meta_Grind_registerParent(x_1, x_268, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_270); +lean_dec(x_268); +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +lean_dec(x_271); +x_274 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_272, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_273); +lean_dec(x_272); +return x_274; +} +else +{ +uint8_t x_275; +lean_dec(x_268); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_275 = !lean_is_exclusive(x_269); +if (x_275 == 0) +{ +return x_269; +} +else +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_276 = lean_ctor_get(x_269, 0); +x_277 = lean_ctor_get(x_269, 1); +lean_inc(x_277); +lean_inc(x_276); +lean_dec(x_269); +x_278 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_278, 0, x_276); +lean_ctor_set(x_278, 1, x_277); +return x_278; +} +} +} +else +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_array_fget(x_4, x_265); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_279); +x_280 = l_Lean_Meta_Grind_internalize(x_279, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_281 = lean_ctor_get(x_280, 1); +lean_inc(x_281); +lean_dec(x_280); +lean_inc(x_1); +x_282 = l_Lean_Meta_Grind_registerParent(x_1, x_279, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_281); +lean_dec(x_279); +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +lean_dec(x_282); +x_285 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_283, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_284); +lean_dec(x_283); +return x_285; +} +else +{ +uint8_t x_286; +lean_dec(x_279); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_286 = !lean_is_exclusive(x_280); +if (x_286 == 0) +{ +return x_280; +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_280, 0); +x_288 = lean_ctor_get(x_280, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_280); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +return x_289; +} +} +} +} +} +block_257: +{ +lean_object* x_247; +lean_dec(x_246); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5698,30 +6290,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_264 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_264) == 0) +x_247 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_247) == 0) { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_265 = lean_ctor_get(x_264, 1); -lean_inc(x_265); -lean_dec(x_264); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_248 = lean_ctor_get(x_247, 1); +lean_inc(x_248); +lean_dec(x_247); lean_inc(x_1); -x_266 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_265); +x_249 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_248); lean_dec(x_3); -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -lean_dec(x_266); -x_269 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_261, x_267, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_268); -lean_dec(x_267); +x_250 = lean_ctor_get(x_249, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +lean_dec(x_249); +x_252 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_245, x_250, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_251); +lean_dec(x_250); lean_dec(x_4); -return x_269; +return x_252; } else { -uint8_t x_270; -lean_dec(x_261); +uint8_t x_253; +lean_dec(x_245); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5734,224 +6326,210 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_270 = !lean_is_exclusive(x_264); -if (x_270 == 0) +x_253 = !lean_is_exclusive(x_247); +if (x_253 == 0) { -return x_264; +return x_247; } else { -lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_264, 0); -x_272 = lean_ctor_get(x_264, 1); -lean_inc(x_272); -lean_inc(x_271); -lean_dec(x_264); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set(x_273, 1, x_272); -return x_273; +lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_254 = lean_ctor_get(x_247, 0); +x_255 = lean_ctor_get(x_247, 1); +lean_inc(x_255); +lean_inc(x_254); +lean_dec(x_247); +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set(x_256, 1, x_255); +return x_256; } } } -else -{ -lean_object* x_274; lean_object* x_275; -lean_dec(x_3); -x_274 = lean_box(0); -x_275 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_261, x_274, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_275; -} -} } case 7: { -lean_object* x_309; lean_object* x_310; lean_object* x_325; uint8_t x_326; +lean_object* x_290; lean_object* x_291; lean_object* x_303; uint8_t x_304; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_309 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_309, 0, x_1); -lean_closure_set(x_309, 1, x_2); -x_325 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_326 = l_Lean_Expr_isConstOf(x_3, x_325); -if (x_326 == 0) +x_290 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_290, 0, x_1); +lean_closure_set(x_290, 1, x_2); +x_303 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_304 = l_Lean_Expr_isConstOf(x_3, x_303); +if (x_304 == 0) { -lean_object* x_327; -x_327 = lean_box(0); -x_310 = x_327; -goto block_324; +lean_object* x_305; +x_305 = lean_box(0); +x_291 = x_305; +goto block_302; } else { -lean_object* x_328; lean_object* x_329; uint8_t x_330; -x_328 = lean_array_get_size(x_4); -x_329 = lean_unsigned_to_nat(2u); -x_330 = lean_nat_dec_eq(x_328, x_329); -if (x_330 == 0) +lean_object* x_306; lean_object* x_307; uint8_t x_308; +x_306 = lean_array_get_size(x_4); +x_307 = lean_unsigned_to_nat(2u); +x_308 = lean_nat_dec_eq(x_306, x_307); +if (x_308 == 0) { -lean_object* x_331; -lean_dec(x_328); -x_331 = lean_box(0); -x_310 = x_331; -goto block_324; +lean_object* x_309; +lean_dec(x_306); +x_309 = lean_box(0); +x_291 = x_309; +goto block_302; } else { -lean_object* x_332; uint8_t x_333; -lean_dec(x_309); +lean_object* x_310; uint8_t x_311; +lean_dec(x_290); lean_dec(x_3); -x_332 = lean_unsigned_to_nat(0u); -x_333 = lean_nat_dec_lt(x_332, x_328); -lean_dec(x_328); -if (x_333 == 0) -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; -lean_dec(x_4); -x_334 = l_Lean_instInhabitedExpr; -x_335 = l_outOfBounds___rarg(x_334); -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_inc(x_2); -lean_inc(x_335); -x_336 = l_Lean_Meta_Grind_internalize(x_335, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_336) == 0) -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_337 = lean_ctor_get(x_336, 1); -lean_inc(x_337); -lean_dec(x_336); -lean_inc(x_1); -x_338 = l_Lean_Meta_Grind_registerParent(x_1, x_335, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_337); -lean_dec(x_335); -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); -lean_inc(x_340); -lean_dec(x_338); -x_341 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_339, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_340); -lean_dec(x_339); -return x_341; -} -else -{ -uint8_t x_342; -lean_dec(x_335); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_342 = !lean_is_exclusive(x_336); -if (x_342 == 0) -{ -return x_336; -} -else -{ -lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_343 = lean_ctor_get(x_336, 0); -x_344 = lean_ctor_get(x_336, 1); -lean_inc(x_344); -lean_inc(x_343); -lean_dec(x_336); -x_345 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_345, 0, x_343); -lean_ctor_set(x_345, 1, x_344); -return x_345; -} -} -} -else -{ -lean_object* x_346; lean_object* x_347; -x_346 = lean_array_fget(x_4, x_332); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_346); -x_347 = l_Lean_Meta_Grind_internalize(x_346, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_347) == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_348 = lean_ctor_get(x_347, 1); -lean_inc(x_348); -lean_dec(x_347); -lean_inc(x_1); -x_349 = l_Lean_Meta_Grind_registerParent(x_1, x_346, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_348); -lean_dec(x_346); -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -x_352 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_350, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_351); -lean_dec(x_350); -return x_352; -} -else -{ -uint8_t x_353; -lean_dec(x_346); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_353 = !lean_is_exclusive(x_347); -if (x_353 == 0) -{ -return x_347; -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_347, 0); -x_355 = lean_ctor_get(x_347, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_347); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; -} -} -} -} -} -block_324: -{ -uint8_t x_311; -lean_dec(x_310); -x_311 = l_Lean_Expr_isConst(x_3); +x_310 = lean_unsigned_to_nat(0u); +x_311 = lean_nat_dec_lt(x_310, x_306); +lean_dec(x_306); if (x_311 == 0) { -lean_object* x_312; +lean_object* x_312; lean_object* x_313; lean_object* x_314; +lean_dec(x_4); +x_312 = l_Lean_instInhabitedExpr; +x_313 = l_outOfBounds___rarg(x_312); +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_inc(x_2); +lean_inc(x_313); +x_314 = l_Lean_Meta_Grind_internalize(x_313, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_314) == 0) +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_315 = lean_ctor_get(x_314, 1); +lean_inc(x_315); +lean_dec(x_314); +lean_inc(x_1); +x_316 = l_Lean_Meta_Grind_registerParent(x_1, x_313, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_315); +lean_dec(x_313); +x_317 = lean_ctor_get(x_316, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_316, 1); +lean_inc(x_318); +lean_dec(x_316); +x_319 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_317, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_318); +lean_dec(x_317); +return x_319; +} +else +{ +uint8_t x_320; +lean_dec(x_313); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_320 = !lean_is_exclusive(x_314); +if (x_320 == 0) +{ +return x_314; +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_314, 0); +x_322 = lean_ctor_get(x_314, 1); +lean_inc(x_322); +lean_inc(x_321); +lean_dec(x_314); +x_323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_323, 0, x_321); +lean_ctor_set(x_323, 1, x_322); +return x_323; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; +x_324 = lean_array_fget(x_4, x_310); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_324); +x_325 = l_Lean_Meta_Grind_internalize(x_324, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_325) == 0) +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_326 = lean_ctor_get(x_325, 1); +lean_inc(x_326); +lean_dec(x_325); +lean_inc(x_1); +x_327 = l_Lean_Meta_Grind_registerParent(x_1, x_324, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_326); +lean_dec(x_324); +x_328 = lean_ctor_get(x_327, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_327, 1); +lean_inc(x_329); +lean_dec(x_327); +x_330 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_328, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_329); +lean_dec(x_328); +return x_330; +} +else +{ +uint8_t x_331; +lean_dec(x_324); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_331 = !lean_is_exclusive(x_325); +if (x_331 == 0) +{ +return x_325; +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_325, 0); +x_333 = lean_ctor_get(x_325, 1); +lean_inc(x_333); +lean_inc(x_332); +lean_dec(x_325); +x_334 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_334, 0, x_332); +lean_ctor_set(x_334, 1, x_333); +return x_334; +} +} +} +} +} +block_302: +{ +lean_object* x_292; +lean_dec(x_291); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5962,30 +6540,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_312 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_312) == 0) +x_292 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_292) == 0) { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_313 = lean_ctor_get(x_312, 1); -lean_inc(x_313); -lean_dec(x_312); +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_293 = lean_ctor_get(x_292, 1); +lean_inc(x_293); +lean_dec(x_292); lean_inc(x_1); -x_314 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_313); +x_294 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_293); lean_dec(x_3); -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_317 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_309, x_315, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_316); -lean_dec(x_315); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +lean_dec(x_294); +x_297 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_290, x_295, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_296); +lean_dec(x_295); lean_dec(x_4); -return x_317; +return x_297; } else { -uint8_t x_318; -lean_dec(x_309); +uint8_t x_298; +lean_dec(x_290); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5998,83 +6576,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_318 = !lean_is_exclusive(x_312); -if (x_318 == 0) +x_298 = !lean_is_exclusive(x_292); +if (x_298 == 0) { -return x_312; +return x_292; } else { -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_ctor_get(x_312, 0); -x_320 = lean_ctor_get(x_312, 1); -lean_inc(x_320); -lean_inc(x_319); -lean_dec(x_312); -x_321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_321, 0, x_319); -lean_ctor_set(x_321, 1, x_320); -return x_321; +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_292, 0); +x_300 = lean_ctor_get(x_292, 1); +lean_inc(x_300); +lean_inc(x_299); +lean_dec(x_292); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +return x_301; } } } -else -{ -lean_object* x_322; lean_object* x_323; -lean_dec(x_3); -x_322 = lean_box(0); -x_323 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_309, x_322, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_323; -} -} } case 8: { -lean_object* x_357; lean_object* x_358; lean_object* x_373; uint8_t x_374; +lean_object* x_335; lean_object* x_336; lean_object* x_348; uint8_t x_349; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_357 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_357, 0, x_1); -lean_closure_set(x_357, 1, x_2); -x_373 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_374 = l_Lean_Expr_isConstOf(x_3, x_373); -if (x_374 == 0) +x_335 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_335, 0, x_1); +lean_closure_set(x_335, 1, x_2); +x_348 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_349 = l_Lean_Expr_isConstOf(x_3, x_348); +if (x_349 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_358 = x_375; -goto block_372; +lean_object* x_350; +x_350 = lean_box(0); +x_336 = x_350; +goto block_347; } else { -lean_object* x_376; lean_object* x_377; uint8_t x_378; -x_376 = lean_array_get_size(x_4); -x_377 = lean_unsigned_to_nat(2u); -x_378 = lean_nat_dec_eq(x_376, x_377); -if (x_378 == 0) +lean_object* x_351; lean_object* x_352; uint8_t x_353; +x_351 = lean_array_get_size(x_4); +x_352 = lean_unsigned_to_nat(2u); +x_353 = lean_nat_dec_eq(x_351, x_352); +if (x_353 == 0) { -lean_object* x_379; -lean_dec(x_376); -x_379 = lean_box(0); -x_358 = x_379; -goto block_372; +lean_object* x_354; +lean_dec(x_351); +x_354 = lean_box(0); +x_336 = x_354; +goto block_347; } else { -lean_object* x_380; uint8_t x_381; -lean_dec(x_357); +lean_object* x_355; uint8_t x_356; +lean_dec(x_335); lean_dec(x_3); -x_380 = lean_unsigned_to_nat(0u); -x_381 = lean_nat_dec_lt(x_380, x_376); -lean_dec(x_376); -if (x_381 == 0) +x_355 = lean_unsigned_to_nat(0u); +x_356 = lean_nat_dec_lt(x_355, x_351); +lean_dec(x_351); +if (x_356 == 0) { -lean_object* x_382; lean_object* x_383; lean_object* x_384; +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_dec(x_4); -x_382 = l_Lean_instInhabitedExpr; -x_383 = l_outOfBounds___rarg(x_382); +x_357 = l_Lean_instInhabitedExpr; +x_358 = l_outOfBounds___rarg(x_357); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6084,138 +6652,134 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_383); -x_384 = l_Lean_Meta_Grind_internalize(x_383, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_384) == 0) +lean_inc(x_358); +x_359 = l_Lean_Meta_Grind_internalize(x_358, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_359) == 0) { -lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_385 = lean_ctor_get(x_384, 1); -lean_inc(x_385); -lean_dec(x_384); +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_360 = lean_ctor_get(x_359, 1); +lean_inc(x_360); +lean_dec(x_359); lean_inc(x_1); -x_386 = l_Lean_Meta_Grind_registerParent(x_1, x_383, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_385); -lean_dec(x_383); -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_386, 1); -lean_inc(x_388); -lean_dec(x_386); -x_389 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_387, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_388); -lean_dec(x_387); -return x_389; -} -else -{ -uint8_t x_390; -lean_dec(x_383); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_390 = !lean_is_exclusive(x_384); -if (x_390 == 0) -{ -return x_384; -} -else -{ -lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_391 = lean_ctor_get(x_384, 0); -x_392 = lean_ctor_get(x_384, 1); -lean_inc(x_392); -lean_inc(x_391); -lean_dec(x_384); -x_393 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_393, 0, x_391); -lean_ctor_set(x_393, 1, x_392); -return x_393; -} -} -} -else -{ -lean_object* x_394; lean_object* x_395; -x_394 = lean_array_fget(x_4, x_380); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_394); -x_395 = l_Lean_Meta_Grind_internalize(x_394, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_395) == 0) -{ -lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_396 = lean_ctor_get(x_395, 1); -lean_inc(x_396); -lean_dec(x_395); -lean_inc(x_1); -x_397 = l_Lean_Meta_Grind_registerParent(x_1, x_394, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_396); -lean_dec(x_394); -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -lean_dec(x_397); -x_400 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_398, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_399); -lean_dec(x_398); -return x_400; -} -else -{ -uint8_t x_401; -lean_dec(x_394); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_401 = !lean_is_exclusive(x_395); -if (x_401 == 0) -{ -return x_395; -} -else -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_402 = lean_ctor_get(x_395, 0); -x_403 = lean_ctor_get(x_395, 1); -lean_inc(x_403); -lean_inc(x_402); -lean_dec(x_395); -x_404 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_404, 0, x_402); -lean_ctor_set(x_404, 1, x_403); -return x_404; -} -} -} -} -} -block_372: -{ -uint8_t x_359; +x_361 = l_Lean_Meta_Grind_registerParent(x_1, x_358, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_360); lean_dec(x_358); -x_359 = l_Lean_Expr_isConst(x_3); -if (x_359 == 0) +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +lean_dec(x_361); +x_364 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_362, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_363); +lean_dec(x_362); +return x_364; +} +else { -lean_object* x_360; +uint8_t x_365; +lean_dec(x_358); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_365 = !lean_is_exclusive(x_359); +if (x_365 == 0) +{ +return x_359; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_359, 0); +x_367 = lean_ctor_get(x_359, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_359); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +return x_368; +} +} +} +else +{ +lean_object* x_369; lean_object* x_370; +x_369 = lean_array_fget(x_4, x_355); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_369); +x_370 = l_Lean_Meta_Grind_internalize(x_369, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_370) == 0) +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_371 = lean_ctor_get(x_370, 1); +lean_inc(x_371); +lean_dec(x_370); +lean_inc(x_1); +x_372 = l_Lean_Meta_Grind_registerParent(x_1, x_369, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_371); +lean_dec(x_369); +x_373 = lean_ctor_get(x_372, 0); +lean_inc(x_373); +x_374 = lean_ctor_get(x_372, 1); +lean_inc(x_374); +lean_dec(x_372); +x_375 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_373, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_374); +lean_dec(x_373); +return x_375; +} +else +{ +uint8_t x_376; +lean_dec(x_369); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_376 = !lean_is_exclusive(x_370); +if (x_376 == 0) +{ +return x_370; +} +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_377 = lean_ctor_get(x_370, 0); +x_378 = lean_ctor_get(x_370, 1); +lean_inc(x_378); +lean_inc(x_377); +lean_dec(x_370); +x_379 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +return x_379; +} +} +} +} +} +block_347: +{ +lean_object* x_337; +lean_dec(x_336); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6226,30 +6790,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_360 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_360) == 0) +x_337 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_337) == 0) { -lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -lean_dec(x_360); +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_338 = lean_ctor_get(x_337, 1); +lean_inc(x_338); +lean_dec(x_337); lean_inc(x_1); -x_362 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_361); +x_339 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_338); lean_dec(x_3); -x_363 = lean_ctor_get(x_362, 0); -lean_inc(x_363); -x_364 = lean_ctor_get(x_362, 1); -lean_inc(x_364); -lean_dec(x_362); -x_365 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_357, x_363, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_364); -lean_dec(x_363); +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +lean_dec(x_339); +x_342 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_335, x_340, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_341); +lean_dec(x_340); lean_dec(x_4); -return x_365; +return x_342; } else { -uint8_t x_366; -lean_dec(x_357); +uint8_t x_343; +lean_dec(x_335); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6262,83 +6826,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_366 = !lean_is_exclusive(x_360); -if (x_366 == 0) +x_343 = !lean_is_exclusive(x_337); +if (x_343 == 0) { -return x_360; +return x_337; } else { -lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_367 = lean_ctor_get(x_360, 0); -x_368 = lean_ctor_get(x_360, 1); -lean_inc(x_368); -lean_inc(x_367); -lean_dec(x_360); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -return x_369; +lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_344 = lean_ctor_get(x_337, 0); +x_345 = lean_ctor_get(x_337, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_337); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_344); +lean_ctor_set(x_346, 1, x_345); +return x_346; } } } -else -{ -lean_object* x_370; lean_object* x_371; -lean_dec(x_3); -x_370 = lean_box(0); -x_371 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_357, x_370, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_371; -} -} } case 9: { -lean_object* x_405; lean_object* x_406; lean_object* x_421; uint8_t x_422; +lean_object* x_380; lean_object* x_381; lean_object* x_393; uint8_t x_394; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_405 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_405, 0, x_1); -lean_closure_set(x_405, 1, x_2); -x_421 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_422 = l_Lean_Expr_isConstOf(x_3, x_421); -if (x_422 == 0) +x_380 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_380, 0, x_1); +lean_closure_set(x_380, 1, x_2); +x_393 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_394 = l_Lean_Expr_isConstOf(x_3, x_393); +if (x_394 == 0) { -lean_object* x_423; -x_423 = lean_box(0); -x_406 = x_423; -goto block_420; +lean_object* x_395; +x_395 = lean_box(0); +x_381 = x_395; +goto block_392; } else { -lean_object* x_424; lean_object* x_425; uint8_t x_426; -x_424 = lean_array_get_size(x_4); -x_425 = lean_unsigned_to_nat(2u); -x_426 = lean_nat_dec_eq(x_424, x_425); -if (x_426 == 0) +lean_object* x_396; lean_object* x_397; uint8_t x_398; +x_396 = lean_array_get_size(x_4); +x_397 = lean_unsigned_to_nat(2u); +x_398 = lean_nat_dec_eq(x_396, x_397); +if (x_398 == 0) { -lean_object* x_427; -lean_dec(x_424); -x_427 = lean_box(0); -x_406 = x_427; -goto block_420; +lean_object* x_399; +lean_dec(x_396); +x_399 = lean_box(0); +x_381 = x_399; +goto block_392; } else { -lean_object* x_428; uint8_t x_429; -lean_dec(x_405); +lean_object* x_400; uint8_t x_401; +lean_dec(x_380); lean_dec(x_3); -x_428 = lean_unsigned_to_nat(0u); -x_429 = lean_nat_dec_lt(x_428, x_424); -lean_dec(x_424); -if (x_429 == 0) +x_400 = lean_unsigned_to_nat(0u); +x_401 = lean_nat_dec_lt(x_400, x_396); +lean_dec(x_396); +if (x_401 == 0) { -lean_object* x_430; lean_object* x_431; lean_object* x_432; +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_dec(x_4); -x_430 = l_Lean_instInhabitedExpr; -x_431 = l_outOfBounds___rarg(x_430); +x_402 = l_Lean_instInhabitedExpr; +x_403 = l_outOfBounds___rarg(x_402); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6348,138 +6902,134 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_431); -x_432 = l_Lean_Meta_Grind_internalize(x_431, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_432) == 0) +lean_inc(x_403); +x_404 = l_Lean_Meta_Grind_internalize(x_403, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_404) == 0) { -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_433 = lean_ctor_get(x_432, 1); -lean_inc(x_433); -lean_dec(x_432); +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_405 = lean_ctor_get(x_404, 1); +lean_inc(x_405); +lean_dec(x_404); lean_inc(x_1); -x_434 = l_Lean_Meta_Grind_registerParent(x_1, x_431, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_433); -lean_dec(x_431); -x_435 = lean_ctor_get(x_434, 0); -lean_inc(x_435); -x_436 = lean_ctor_get(x_434, 1); -lean_inc(x_436); -lean_dec(x_434); -x_437 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_435, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_436); -lean_dec(x_435); -return x_437; -} -else -{ -uint8_t x_438; -lean_dec(x_431); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_438 = !lean_is_exclusive(x_432); -if (x_438 == 0) -{ -return x_432; -} -else -{ -lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_439 = lean_ctor_get(x_432, 0); -x_440 = lean_ctor_get(x_432, 1); -lean_inc(x_440); -lean_inc(x_439); -lean_dec(x_432); -x_441 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_441, 0, x_439); -lean_ctor_set(x_441, 1, x_440); -return x_441; -} -} -} -else -{ -lean_object* x_442; lean_object* x_443; -x_442 = lean_array_fget(x_4, x_428); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_442); -x_443 = l_Lean_Meta_Grind_internalize(x_442, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_443) == 0) -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -x_444 = lean_ctor_get(x_443, 1); -lean_inc(x_444); -lean_dec(x_443); -lean_inc(x_1); -x_445 = l_Lean_Meta_Grind_registerParent(x_1, x_442, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_444); -lean_dec(x_442); -x_446 = lean_ctor_get(x_445, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_445, 1); -lean_inc(x_447); -lean_dec(x_445); -x_448 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_446, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_447); -lean_dec(x_446); -return x_448; -} -else -{ -uint8_t x_449; -lean_dec(x_442); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_449 = !lean_is_exclusive(x_443); -if (x_449 == 0) -{ -return x_443; -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; -x_450 = lean_ctor_get(x_443, 0); -x_451 = lean_ctor_get(x_443, 1); -lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_443); -x_452 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_452, 0, x_450); -lean_ctor_set(x_452, 1, x_451); -return x_452; -} -} -} -} -} -block_420: -{ -uint8_t x_407; +x_406 = l_Lean_Meta_Grind_registerParent(x_1, x_403, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_405); +lean_dec(x_403); +x_407 = lean_ctor_get(x_406, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_406, 1); +lean_inc(x_408); lean_dec(x_406); -x_407 = l_Lean_Expr_isConst(x_3); -if (x_407 == 0) +x_409 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_407, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_408); +lean_dec(x_407); +return x_409; +} +else { -lean_object* x_408; +uint8_t x_410; +lean_dec(x_403); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_410 = !lean_is_exclusive(x_404); +if (x_410 == 0) +{ +return x_404; +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_411 = lean_ctor_get(x_404, 0); +x_412 = lean_ctor_get(x_404, 1); +lean_inc(x_412); +lean_inc(x_411); +lean_dec(x_404); +x_413 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_413, 0, x_411); +lean_ctor_set(x_413, 1, x_412); +return x_413; +} +} +} +else +{ +lean_object* x_414; lean_object* x_415; +x_414 = lean_array_fget(x_4, x_400); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_414); +x_415 = l_Lean_Meta_Grind_internalize(x_414, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_415) == 0) +{ +lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_416 = lean_ctor_get(x_415, 1); +lean_inc(x_416); +lean_dec(x_415); +lean_inc(x_1); +x_417 = l_Lean_Meta_Grind_registerParent(x_1, x_414, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_416); +lean_dec(x_414); +x_418 = lean_ctor_get(x_417, 0); +lean_inc(x_418); +x_419 = lean_ctor_get(x_417, 1); +lean_inc(x_419); +lean_dec(x_417); +x_420 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_418, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_419); +lean_dec(x_418); +return x_420; +} +else +{ +uint8_t x_421; +lean_dec(x_414); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_421 = !lean_is_exclusive(x_415); +if (x_421 == 0) +{ +return x_415; +} +else +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; +x_422 = lean_ctor_get(x_415, 0); +x_423 = lean_ctor_get(x_415, 1); +lean_inc(x_423); +lean_inc(x_422); +lean_dec(x_415); +x_424 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_423); +return x_424; +} +} +} +} +} +block_392: +{ +lean_object* x_382; +lean_dec(x_381); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6490,30 +7040,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_408 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_408) == 0) +x_382 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_382) == 0) { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_409 = lean_ctor_get(x_408, 1); -lean_inc(x_409); -lean_dec(x_408); +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_383 = lean_ctor_get(x_382, 1); +lean_inc(x_383); +lean_dec(x_382); lean_inc(x_1); -x_410 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_409); +x_384 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_383); lean_dec(x_3); -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -lean_dec(x_410); -x_413 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_405, x_411, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_412); -lean_dec(x_411); +x_385 = lean_ctor_get(x_384, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_384, 1); +lean_inc(x_386); +lean_dec(x_384); +x_387 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_380, x_385, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_386); +lean_dec(x_385); lean_dec(x_4); -return x_413; +return x_387; } else { -uint8_t x_414; -lean_dec(x_405); +uint8_t x_388; +lean_dec(x_380); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6526,83 +7076,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_414 = !lean_is_exclusive(x_408); -if (x_414 == 0) +x_388 = !lean_is_exclusive(x_382); +if (x_388 == 0) { -return x_408; +return x_382; } else { -lean_object* x_415; lean_object* x_416; lean_object* x_417; -x_415 = lean_ctor_get(x_408, 0); -x_416 = lean_ctor_get(x_408, 1); -lean_inc(x_416); -lean_inc(x_415); -lean_dec(x_408); -x_417 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_417, 0, x_415); -lean_ctor_set(x_417, 1, x_416); -return x_417; +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_382, 0); +x_390 = lean_ctor_get(x_382, 1); +lean_inc(x_390); +lean_inc(x_389); +lean_dec(x_382); +x_391 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_391, 0, x_389); +lean_ctor_set(x_391, 1, x_390); +return x_391; } } } -else -{ -lean_object* x_418; lean_object* x_419; -lean_dec(x_3); -x_418 = lean_box(0); -x_419 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_405, x_418, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_419; -} -} } case 10: { -lean_object* x_453; lean_object* x_454; lean_object* x_469; uint8_t x_470; +lean_object* x_425; lean_object* x_426; lean_object* x_438; uint8_t x_439; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_453 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_453, 0, x_1); -lean_closure_set(x_453, 1, x_2); -x_469 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_470 = l_Lean_Expr_isConstOf(x_3, x_469); -if (x_470 == 0) +x_425 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_425, 0, x_1); +lean_closure_set(x_425, 1, x_2); +x_438 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_439 = l_Lean_Expr_isConstOf(x_3, x_438); +if (x_439 == 0) { -lean_object* x_471; -x_471 = lean_box(0); -x_454 = x_471; -goto block_468; +lean_object* x_440; +x_440 = lean_box(0); +x_426 = x_440; +goto block_437; } else { -lean_object* x_472; lean_object* x_473; uint8_t x_474; -x_472 = lean_array_get_size(x_4); -x_473 = lean_unsigned_to_nat(2u); -x_474 = lean_nat_dec_eq(x_472, x_473); -if (x_474 == 0) +lean_object* x_441; lean_object* x_442; uint8_t x_443; +x_441 = lean_array_get_size(x_4); +x_442 = lean_unsigned_to_nat(2u); +x_443 = lean_nat_dec_eq(x_441, x_442); +if (x_443 == 0) { -lean_object* x_475; -lean_dec(x_472); -x_475 = lean_box(0); -x_454 = x_475; -goto block_468; +lean_object* x_444; +lean_dec(x_441); +x_444 = lean_box(0); +x_426 = x_444; +goto block_437; } else { -lean_object* x_476; uint8_t x_477; -lean_dec(x_453); +lean_object* x_445; uint8_t x_446; +lean_dec(x_425); lean_dec(x_3); -x_476 = lean_unsigned_to_nat(0u); -x_477 = lean_nat_dec_lt(x_476, x_472); -lean_dec(x_472); -if (x_477 == 0) +x_445 = lean_unsigned_to_nat(0u); +x_446 = lean_nat_dec_lt(x_445, x_441); +lean_dec(x_441); +if (x_446 == 0) { -lean_object* x_478; lean_object* x_479; lean_object* x_480; +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_dec(x_4); -x_478 = l_Lean_instInhabitedExpr; -x_479 = l_outOfBounds___rarg(x_478); +x_447 = l_Lean_instInhabitedExpr; +x_448 = l_outOfBounds___rarg(x_447); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6612,138 +7152,134 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_479); -x_480 = l_Lean_Meta_Grind_internalize(x_479, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_480) == 0) +lean_inc(x_448); +x_449 = l_Lean_Meta_Grind_internalize(x_448, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_449) == 0) { -lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_481 = lean_ctor_get(x_480, 1); -lean_inc(x_481); -lean_dec(x_480); +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_450 = lean_ctor_get(x_449, 1); +lean_inc(x_450); +lean_dec(x_449); lean_inc(x_1); -x_482 = l_Lean_Meta_Grind_registerParent(x_1, x_479, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_481); -lean_dec(x_479); -x_483 = lean_ctor_get(x_482, 0); -lean_inc(x_483); -x_484 = lean_ctor_get(x_482, 1); -lean_inc(x_484); -lean_dec(x_482); -x_485 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_483, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_484); -lean_dec(x_483); -return x_485; +x_451 = l_Lean_Meta_Grind_registerParent(x_1, x_448, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_450); +lean_dec(x_448); +x_452 = lean_ctor_get(x_451, 0); +lean_inc(x_452); +x_453 = lean_ctor_get(x_451, 1); +lean_inc(x_453); +lean_dec(x_451); +x_454 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_452, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_453); +lean_dec(x_452); +return x_454; } else { -uint8_t x_486; -lean_dec(x_479); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_486 = !lean_is_exclusive(x_480); -if (x_486 == 0) -{ -return x_480; -} -else -{ -lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_487 = lean_ctor_get(x_480, 0); -x_488 = lean_ctor_get(x_480, 1); -lean_inc(x_488); -lean_inc(x_487); -lean_dec(x_480); -x_489 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_489, 0, x_487); -lean_ctor_set(x_489, 1, x_488); -return x_489; -} -} -} -else -{ -lean_object* x_490; lean_object* x_491; -x_490 = lean_array_fget(x_4, x_476); -lean_dec(x_4); -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_inc(x_2); -lean_inc(x_490); -x_491 = l_Lean_Meta_Grind_internalize(x_490, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_491) == 0) -{ -lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_492 = lean_ctor_get(x_491, 1); -lean_inc(x_492); -lean_dec(x_491); -lean_inc(x_1); -x_493 = l_Lean_Meta_Grind_registerParent(x_1, x_490, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_492); -lean_dec(x_490); -x_494 = lean_ctor_get(x_493, 0); -lean_inc(x_494); -x_495 = lean_ctor_get(x_493, 1); -lean_inc(x_495); -lean_dec(x_493); -x_496 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_494, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_495); -lean_dec(x_494); -return x_496; -} -else -{ -uint8_t x_497; -lean_dec(x_490); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_497 = !lean_is_exclusive(x_491); -if (x_497 == 0) -{ -return x_491; -} -else -{ -lean_object* x_498; lean_object* x_499; lean_object* x_500; -x_498 = lean_ctor_get(x_491, 0); -x_499 = lean_ctor_get(x_491, 1); -lean_inc(x_499); -lean_inc(x_498); -lean_dec(x_491); -x_500 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_500, 0, x_498); -lean_ctor_set(x_500, 1, x_499); -return x_500; -} -} -} -} -} -block_468: -{ uint8_t x_455; -lean_dec(x_454); -x_455 = l_Lean_Expr_isConst(x_3); +lean_dec(x_448); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_455 = !lean_is_exclusive(x_449); if (x_455 == 0) { -lean_object* x_456; +return x_449; +} +else +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_449, 0); +x_457 = lean_ctor_get(x_449, 1); +lean_inc(x_457); +lean_inc(x_456); +lean_dec(x_449); +x_458 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_458, 0, x_456); +lean_ctor_set(x_458, 1, x_457); +return x_458; +} +} +} +else +{ +lean_object* x_459; lean_object* x_460; +x_459 = lean_array_fget(x_4, x_445); +lean_dec(x_4); +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_inc(x_2); +lean_inc(x_459); +x_460 = l_Lean_Meta_Grind_internalize(x_459, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; +x_461 = lean_ctor_get(x_460, 1); +lean_inc(x_461); +lean_dec(x_460); +lean_inc(x_1); +x_462 = l_Lean_Meta_Grind_registerParent(x_1, x_459, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_461); +lean_dec(x_459); +x_463 = lean_ctor_get(x_462, 0); +lean_inc(x_463); +x_464 = lean_ctor_get(x_462, 1); +lean_inc(x_464); +lean_dec(x_462); +x_465 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_463, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_464); +lean_dec(x_463); +return x_465; +} +else +{ +uint8_t x_466; +lean_dec(x_459); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_466 = !lean_is_exclusive(x_460); +if (x_466 == 0) +{ +return x_460; +} +else +{ +lean_object* x_467; lean_object* x_468; lean_object* x_469; +x_467 = lean_ctor_get(x_460, 0); +x_468 = lean_ctor_get(x_460, 1); +lean_inc(x_468); +lean_inc(x_467); +lean_dec(x_460); +x_469 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_469, 0, x_467); +lean_ctor_set(x_469, 1, x_468); +return x_469; +} +} +} +} +} +block_437: +{ +lean_object* x_427; +lean_dec(x_426); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6754,30 +7290,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_456 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_456) == 0) +x_427 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_427) == 0) { -lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; -x_457 = lean_ctor_get(x_456, 1); -lean_inc(x_457); -lean_dec(x_456); +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_428 = lean_ctor_get(x_427, 1); +lean_inc(x_428); +lean_dec(x_427); lean_inc(x_1); -x_458 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_457); +x_429 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_428); lean_dec(x_3); -x_459 = lean_ctor_get(x_458, 0); -lean_inc(x_459); -x_460 = lean_ctor_get(x_458, 1); -lean_inc(x_460); -lean_dec(x_458); -x_461 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_453, x_459, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_460); -lean_dec(x_459); +x_430 = lean_ctor_get(x_429, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_429, 1); +lean_inc(x_431); +lean_dec(x_429); +x_432 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_425, x_430, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_431); +lean_dec(x_430); lean_dec(x_4); -return x_461; +return x_432; } else { -uint8_t x_462; -lean_dec(x_453); +uint8_t x_433; +lean_dec(x_425); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6790,83 +7326,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_462 = !lean_is_exclusive(x_456); -if (x_462 == 0) +x_433 = !lean_is_exclusive(x_427); +if (x_433 == 0) { -return x_456; +return x_427; } else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_456, 0); -x_464 = lean_ctor_get(x_456, 1); -lean_inc(x_464); -lean_inc(x_463); -lean_dec(x_456); -x_465 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_465, 0, x_463); -lean_ctor_set(x_465, 1, x_464); -return x_465; +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_427, 0); +x_435 = lean_ctor_get(x_427, 1); +lean_inc(x_435); +lean_inc(x_434); +lean_dec(x_427); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_434); +lean_ctor_set(x_436, 1, x_435); +return x_436; } } } -else -{ -lean_object* x_466; lean_object* x_467; -lean_dec(x_3); -x_466 = lean_box(0); -x_467 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_453, x_466, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_467; -} -} } default: { -lean_object* x_501; lean_object* x_502; lean_object* x_517; uint8_t x_518; +lean_object* x_470; lean_object* x_471; lean_object* x_483; uint8_t x_484; lean_dec(x_5); lean_inc(x_2); lean_inc(x_1); -x_501 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); -lean_closure_set(x_501, 0, x_1); -lean_closure_set(x_501, 1, x_2); -x_517 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; -x_518 = l_Lean_Expr_isConstOf(x_3, x_517); -if (x_518 == 0) +x_470 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1___boxed), 12, 2); +lean_closure_set(x_470, 0, x_1); +lean_closure_set(x_470, 1, x_2); +x_483 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___closed__4; +x_484 = l_Lean_Expr_isConstOf(x_3, x_483); +if (x_484 == 0) { -lean_object* x_519; -x_519 = lean_box(0); -x_502 = x_519; -goto block_516; +lean_object* x_485; +x_485 = lean_box(0); +x_471 = x_485; +goto block_482; } else { -lean_object* x_520; lean_object* x_521; uint8_t x_522; -x_520 = lean_array_get_size(x_4); -x_521 = lean_unsigned_to_nat(2u); -x_522 = lean_nat_dec_eq(x_520, x_521); -if (x_522 == 0) +lean_object* x_486; lean_object* x_487; uint8_t x_488; +x_486 = lean_array_get_size(x_4); +x_487 = lean_unsigned_to_nat(2u); +x_488 = lean_nat_dec_eq(x_486, x_487); +if (x_488 == 0) { -lean_object* x_523; -lean_dec(x_520); -x_523 = lean_box(0); -x_502 = x_523; -goto block_516; +lean_object* x_489; +lean_dec(x_486); +x_489 = lean_box(0); +x_471 = x_489; +goto block_482; } else { -lean_object* x_524; uint8_t x_525; -lean_dec(x_501); +lean_object* x_490; uint8_t x_491; +lean_dec(x_470); lean_dec(x_3); -x_524 = lean_unsigned_to_nat(0u); -x_525 = lean_nat_dec_lt(x_524, x_520); -lean_dec(x_520); -if (x_525 == 0) +x_490 = lean_unsigned_to_nat(0u); +x_491 = lean_nat_dec_lt(x_490, x_486); +lean_dec(x_486); +if (x_491 == 0) { -lean_object* x_526; lean_object* x_527; lean_object* x_528; +lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_dec(x_4); -x_526 = l_Lean_instInhabitedExpr; -x_527 = l_outOfBounds___rarg(x_526); +x_492 = l_Lean_instInhabitedExpr; +x_493 = l_outOfBounds___rarg(x_492); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6876,30 +7402,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_527); -x_528 = l_Lean_Meta_Grind_internalize(x_527, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_528) == 0) +lean_inc(x_493); +x_494 = l_Lean_Meta_Grind_internalize(x_493, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_494) == 0) { -lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -x_529 = lean_ctor_get(x_528, 1); -lean_inc(x_529); -lean_dec(x_528); +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_495 = lean_ctor_get(x_494, 1); +lean_inc(x_495); +lean_dec(x_494); lean_inc(x_1); -x_530 = l_Lean_Meta_Grind_registerParent(x_1, x_527, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_529); -lean_dec(x_527); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -x_533 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_531, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_532); -lean_dec(x_531); -return x_533; +x_496 = l_Lean_Meta_Grind_registerParent(x_1, x_493, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_495); +lean_dec(x_493); +x_497 = lean_ctor_get(x_496, 0); +lean_inc(x_497); +x_498 = lean_ctor_get(x_496, 1); +lean_inc(x_498); +lean_dec(x_496); +x_499 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_497, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_498); +lean_dec(x_497); +return x_499; } else { -uint8_t x_534; -lean_dec(x_527); +uint8_t x_500; +lean_dec(x_493); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6910,30 +7436,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_534 = !lean_is_exclusive(x_528); -if (x_534 == 0) +x_500 = !lean_is_exclusive(x_494); +if (x_500 == 0) { -return x_528; +return x_494; } else { -lean_object* x_535; lean_object* x_536; lean_object* x_537; -x_535 = lean_ctor_get(x_528, 0); -x_536 = lean_ctor_get(x_528, 1); -lean_inc(x_536); -lean_inc(x_535); -lean_dec(x_528); -x_537 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_537, 0, x_535); -lean_ctor_set(x_537, 1, x_536); -return x_537; +lean_object* x_501; lean_object* x_502; lean_object* x_503; +x_501 = lean_ctor_get(x_494, 0); +x_502 = lean_ctor_get(x_494, 1); +lean_inc(x_502); +lean_inc(x_501); +lean_dec(x_494); +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_501); +lean_ctor_set(x_503, 1, x_502); +return x_503; } } } else { -lean_object* x_538; lean_object* x_539; -x_538 = lean_array_fget(x_4, x_524); +lean_object* x_504; lean_object* x_505; +x_504 = lean_array_fget(x_4, x_490); lean_dec(x_4); lean_inc(x_13); lean_inc(x_12); @@ -6944,30 +7470,30 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -lean_inc(x_538); -x_539 = l_Lean_Meta_Grind_internalize(x_538, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_539) == 0) +lean_inc(x_504); +x_505 = l_Lean_Meta_Grind_internalize(x_504, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_505) == 0) { -lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; -x_540 = lean_ctor_get(x_539, 1); -lean_inc(x_540); -lean_dec(x_539); +lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_506 = lean_ctor_get(x_505, 1); +lean_inc(x_506); +lean_dec(x_505); lean_inc(x_1); -x_541 = l_Lean_Meta_Grind_registerParent(x_1, x_538, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_540); -lean_dec(x_538); -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_541, 1); -lean_inc(x_543); -lean_dec(x_541); -x_544 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_542, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_543); -lean_dec(x_542); -return x_544; +x_507 = l_Lean_Meta_Grind_registerParent(x_1, x_504, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_506); +lean_dec(x_504); +x_508 = lean_ctor_get(x_507, 0); +lean_inc(x_508); +x_509 = lean_ctor_get(x_507, 1); +lean_inc(x_509); +lean_dec(x_507); +x_510 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__1(x_1, x_2, x_508, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_509); +lean_dec(x_508); +return x_510; } else { -uint8_t x_545; -lean_dec(x_538); +uint8_t x_511; +lean_dec(x_504); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6978,36 +7504,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_545 = !lean_is_exclusive(x_539); -if (x_545 == 0) +x_511 = !lean_is_exclusive(x_505); +if (x_511 == 0) { -return x_539; +return x_505; } else { -lean_object* x_546; lean_object* x_547; lean_object* x_548; -x_546 = lean_ctor_get(x_539, 0); -x_547 = lean_ctor_get(x_539, 1); -lean_inc(x_547); -lean_inc(x_546); -lean_dec(x_539); -x_548 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_548, 0, x_546); -lean_ctor_set(x_548, 1, x_547); -return x_548; +lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_512 = lean_ctor_get(x_505, 0); +x_513 = lean_ctor_get(x_505, 1); +lean_inc(x_513); +lean_inc(x_512); +lean_dec(x_505); +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_512); +lean_ctor_set(x_514, 1, x_513); +return x_514; } } } } } -block_516: +block_482: { -uint8_t x_503; -lean_dec(x_502); -x_503 = l_Lean_Expr_isConst(x_3); -if (x_503 == 0) -{ -lean_object* x_504; +lean_object* x_472; +lean_dec(x_471); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -7018,30 +7540,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_3); -x_504 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_504) == 0) +x_472 = l_Lean_Meta_Grind_internalize(x_3, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_472) == 0) { -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; -x_505 = lean_ctor_get(x_504, 1); -lean_inc(x_505); -lean_dec(x_504); +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_473 = lean_ctor_get(x_472, 1); +lean_inc(x_473); +lean_dec(x_472); lean_inc(x_1); -x_506 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_505); +x_474 = l_Lean_Meta_Grind_registerParent(x_1, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_473); lean_dec(x_3); -x_507 = lean_ctor_get(x_506, 0); -lean_inc(x_507); -x_508 = lean_ctor_get(x_506, 1); -lean_inc(x_508); -lean_dec(x_506); -x_509 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_501, x_507, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_508); -lean_dec(x_507); +x_475 = lean_ctor_get(x_474, 0); +lean_inc(x_475); +x_476 = lean_ctor_get(x_474, 1); +lean_inc(x_476); +lean_dec(x_474); +x_477 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_470, x_475, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_476); +lean_dec(x_475); lean_dec(x_4); -return x_509; +return x_477; } else { -uint8_t x_510; -lean_dec(x_501); +uint8_t x_478; +lean_dec(x_470); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -7054,36 +7576,26 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_510 = !lean_is_exclusive(x_504); -if (x_510 == 0) +x_478 = !lean_is_exclusive(x_472); +if (x_478 == 0) { -return x_504; +return x_472; } else { -lean_object* x_511; lean_object* x_512; lean_object* x_513; -x_511 = lean_ctor_get(x_504, 0); -x_512 = lean_ctor_get(x_504, 1); -lean_inc(x_512); -lean_inc(x_511); -lean_dec(x_504); -x_513 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_513, 0, x_511); -lean_ctor_set(x_513, 1, x_512); -return x_513; +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_472, 0); +x_480 = lean_ctor_get(x_472, 1); +lean_inc(x_480); +lean_inc(x_479); +lean_dec(x_472); +x_481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 1, x_480); +return x_481; } } } -else -{ -lean_object* x_514; lean_object* x_515; -lean_dec(x_3); -x_514 = lean_box(0); -x_515 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__3___lambda__2(x_4, x_1, x_2, x_501, x_514, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_4); -return x_515; -} -} } } } @@ -7127,7 +7639,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_internalize___lambda__2___closed__1; x_2 = l_Lean_Meta_Grind_internalize___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(43u); +x_3 = lean_unsigned_to_nat(76u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Meta_Grind_internalize___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -7151,15 +7663,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_internalize___lambda__2___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_levelZero; -x_2 = l_Lean_Expr_sort___override(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -7216,7 +7719,7 @@ x_26 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; lean_ctor_set_tag(x_16, 7); lean_ctor_set(x_16, 1, x_25); lean_ctor_set(x_16, 0, x_26); -x_27 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; +x_27 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; x_28 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_28, 0, x_16); lean_ctor_set(x_28, 1, x_27); @@ -7248,7 +7751,7 @@ x_35 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; x_36 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); -x_37 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; +x_37 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; x_38 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -7323,7 +7826,7 @@ lean_inc(x_49); lean_dec(x_46); x_50 = lean_unsigned_to_nat(0u); x_51 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_50); -x_52 = l_Lean_Meta_Grind_internalize___lambda__2___closed__7; +x_52 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1; lean_inc(x_51); x_53 = lean_mk_array(x_51, x_52); x_54 = lean_unsigned_to_nat(1u); @@ -7380,33 +7883,285 @@ return x_62; } } } -case 9: +case 7: { -lean_object* x_63; -x_63 = l_Lean_Meta_Grind_mkENode(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_1, 1); +lean_inc(x_63); +x_64 = 0; +lean_inc(x_2); +lean_inc(x_1); +x_65 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_64, x_64, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_63); +x_67 = l_Lean_Meta_isProp(x_63, x_8, x_9, x_10, x_11, x_66); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_unbox(x_68); +lean_dec(x_68); +if (x_69 == 0) +{ +uint8_t x_70; +lean_dec(x_63); +lean_dec(x_11); +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); -return x_63; +lean_dec(x_2); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_67); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_67, 0); +lean_dec(x_71); +x_72 = lean_box(0); +lean_ctor_set(x_67, 0, x_72); +return x_67; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_67, 1); +lean_inc(x_73); +lean_dec(x_67); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_67, 1); +lean_inc(x_76); +lean_dec(x_67); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_77 = l_Lean_Meta_isProp(x_1, x_8, x_9, x_10, x_11, x_76); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_63); +lean_dec(x_11); +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); +lean_dec(x_1); +x_80 = !lean_is_exclusive(x_77); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_77, 0); +lean_dec(x_81); +x_82 = lean_box(0); +lean_ctor_set(x_77, 0, x_82); +return x_77; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_77, 1); +lean_inc(x_83); +lean_dec(x_77); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +else +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_77, 1); +lean_inc(x_86); +lean_dec(x_77); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_63); +x_87 = l_Lean_Meta_Grind_internalize(x_63, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_86); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +lean_inc(x_1); +x_89 = l_Lean_Meta_Grind_registerParent(x_1, x_63, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_88); +lean_dec(x_63); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_91 = l_Lean_Meta_Grind_propagateUp(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_90); +return x_91; +} +else +{ +uint8_t x_92; +lean_dec(x_63); +lean_dec(x_11); +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_1); +x_92 = !lean_is_exclusive(x_87); +if (x_92 == 0) +{ +return x_87; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_87, 0); +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_87); +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; +} +} +} +} +else +{ +uint8_t x_96; +lean_dec(x_63); +lean_dec(x_11); +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); +lean_dec(x_1); +x_96 = !lean_is_exclusive(x_77); +if (x_96 == 0) +{ +return x_77; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_77, 0); +x_98 = lean_ctor_get(x_77, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_77); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; +} +} +} +} +else +{ +uint8_t x_100; +lean_dec(x_63); +lean_dec(x_11); +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); +lean_dec(x_1); +x_100 = !lean_is_exclusive(x_67); +if (x_100 == 0) +{ +return x_67; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_67, 0); +x_102 = lean_ctor_get(x_67, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_67); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; +} +} +} +case 9: +{ +lean_object* x_104; +x_104 = l_Lean_Meta_Grind_mkENode(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_104; } case 10: { -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_64 = l_Lean_Meta_Grind_addCongrTable___closed__2; -x_65 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_unbox(x_66); -lean_dec(x_66); -if (x_67 == 0) +lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_105 = l_Lean_Meta_Grind_addCongrTable___closed__2; +x_106 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_105, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_unbox(x_107); +lean_dec(x_107); +if (x_108 == 0) { -lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = 0; -x_70 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_69, x_69, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_68); +lean_object* x_109; uint8_t x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +lean_dec(x_106); +x_110 = 0; +x_111 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_110, x_110, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_109); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7415,34 +8170,34 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_70; +return x_111; } else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_65); -if (x_71 == 0) +uint8_t x_112; +x_112 = !lean_is_exclusive(x_106); +if (x_112 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; -x_72 = lean_ctor_get(x_65, 1); -x_73 = lean_ctor_get(x_65, 0); -lean_dec(x_73); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; +x_113 = lean_ctor_get(x_106, 1); +x_114 = lean_ctor_get(x_106, 0); +lean_dec(x_114); lean_inc(x_1); -x_74 = l_Lean_indentExpr(x_1); -x_75 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; -lean_ctor_set_tag(x_65, 7); -lean_ctor_set(x_65, 1, x_74); -lean_ctor_set(x_65, 0, x_75); -x_76 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_65); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_64, x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_72); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_80 = 0; -x_81 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_80, x_80, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_79); +x_115 = l_Lean_indentExpr(x_1); +x_116 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; +lean_ctor_set_tag(x_106, 7); +lean_ctor_set(x_106, 1, x_115); +lean_ctor_set(x_106, 0, x_116); +x_117 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_118 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_118, 0, x_106); +lean_ctor_set(x_118, 1, x_117); +x_119 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_105, x_118, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_113); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = 0; +x_122 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_121, x_121, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_120); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7451,30 +8206,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_81; +return x_122; } 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; uint8_t x_90; lean_object* x_91; -x_82 = lean_ctor_get(x_65, 1); -lean_inc(x_82); -lean_dec(x_65); +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; uint8_t x_131; lean_object* x_132; +x_123 = lean_ctor_get(x_106, 1); +lean_inc(x_123); +lean_dec(x_106); lean_inc(x_1); -x_83 = l_Lean_indentExpr(x_1); -x_84 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; -x_85 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -x_86 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; -x_87 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -x_88 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_64, x_87, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_82); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = 0; -x_91 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_90, x_90, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_89); +x_124 = l_Lean_indentExpr(x_1); +x_125 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; +x_126 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_124); +x_127 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +x_129 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_105, x_128, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_123); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = 0; +x_132 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_131, x_131, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_130); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7483,27 +8238,27 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_91; +return x_132; } } } case 11: { -lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_92 = l_Lean_Meta_Grind_addCongrTable___closed__2; -x_93 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_92, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_unbox(x_94); -lean_dec(x_94); -if (x_95 == 0) +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = l_Lean_Meta_Grind_addCongrTable___closed__2; +x_134 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_133, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_96; uint8_t x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_93, 1); -lean_inc(x_96); -lean_dec(x_93); -x_97 = 0; -x_98 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_97, x_97, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_96); +lean_object* x_137; uint8_t x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = 0; +x_139 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_138, x_138, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_137); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7512,34 +8267,34 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_98; +return x_139; } else { -uint8_t x_99; -x_99 = !lean_is_exclusive(x_93); -if (x_99 == 0) +uint8_t x_140; +x_140 = !lean_is_exclusive(x_134); +if (x_140 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; -x_100 = lean_ctor_get(x_93, 1); -x_101 = lean_ctor_get(x_93, 0); -lean_dec(x_101); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; +x_141 = lean_ctor_get(x_134, 1); +x_142 = lean_ctor_get(x_134, 0); +lean_dec(x_142); lean_inc(x_1); -x_102 = l_Lean_indentExpr(x_1); -x_103 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; -lean_ctor_set_tag(x_93, 7); -lean_ctor_set(x_93, 1, x_102); -lean_ctor_set(x_93, 0, x_103); -x_104 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_93); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_92, x_105, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_100); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec(x_106); -x_108 = 0; -x_109 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_108, x_108, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_107); +x_143 = l_Lean_indentExpr(x_1); +x_144 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; +lean_ctor_set_tag(x_134, 7); +lean_ctor_set(x_134, 1, x_143); +lean_ctor_set(x_134, 0, x_144); +x_145 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_146 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_146, 0, x_134); +lean_ctor_set(x_146, 1, x_145); +x_147 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_133, x_146, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_141); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +lean_dec(x_147); +x_149 = 0; +x_150 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_149, x_149, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_148); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7548,30 +8303,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_109; +return x_150; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; -x_110 = lean_ctor_get(x_93, 1); -lean_inc(x_110); -lean_dec(x_93); +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; uint8_t x_159; lean_object* x_160; +x_151 = lean_ctor_get(x_134, 1); +lean_inc(x_151); +lean_dec(x_134); lean_inc(x_1); -x_111 = l_Lean_indentExpr(x_1); -x_112 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; -x_113 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__4; -x_115 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -x_116 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_92, x_115, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_110); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = 0; -x_119 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_118, x_118, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_117); +x_152 = l_Lean_indentExpr(x_1); +x_153 = l_Lean_Meta_Grind_internalize___lambda__2___closed__6; +x_154 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_152); +x_155 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +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_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_133, x_156, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_151); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_159 = 0; +x_160 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_159, x_159, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_158); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7580,15 +8335,15 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_119; +return x_160; } } } default: { -uint8_t x_120; lean_object* x_121; -x_120 = 0; -x_121 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_120, x_120, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +uint8_t x_161; lean_object* x_162; +x_161 = 0; +x_162 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_161, x_161, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7597,7 +8352,102 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_121; +return x_162; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_internalize___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("internalize", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_internalize___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; +x_2 = l_Lean_Meta_Grind_internalize___lambda__3___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = l_Lean_Meta_Grind_internalize___lambda__3___closed__2; +x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_box(0); +x_19 = l_Lean_Meta_Grind_internalize___lambda__2(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); +return x_19; +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_14); +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; +x_21 = lean_ctor_get(x_14, 1); +x_22 = lean_ctor_get(x_14, 0); +lean_dec(x_22); +lean_inc(x_1); +x_23 = l_Lean_MessageData_ofExpr(x_1); +x_24 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +lean_ctor_set_tag(x_14, 7); +lean_ctor_set(x_14, 1, x_23); +lean_ctor_set(x_14, 0, x_24); +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +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(x_26); +x_29 = l_Lean_Meta_Grind_internalize___lambda__2(x_1, x_2, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +lean_dec(x_27); +return x_29; +} +else +{ +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_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_dec(x_14); +lean_inc(x_1); +x_31 = l_Lean_MessageData_ofExpr(x_1); +x_32 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +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(x_35); +x_38 = l_Lean_Meta_Grind_internalize___lambda__2(x_1, x_2, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +lean_dec(x_36); +return x_38; } } } @@ -7618,7 +8468,7 @@ x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); x_16 = lean_box(0); -x_17 = l_Lean_Meta_Grind_internalize___lambda__2(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_17 = l_Lean_Meta_Grind_internalize___lambda__3(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); return x_17; } else @@ -7659,6 +8509,2640 @@ return x_23; } } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = 5; +x_6 = l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__2; +x_7 = lean_usize_land(x_2, x_6); +x_8 = lean_usize_to_nat(x_7); +x_9 = lean_box(2); +x_10 = lean_array_get(x_9, x_4, x_8); +switch (lean_obj_tag(x_10)) { +case 0: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_name_eq(x_3, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_dec(x_8); +lean_dec(x_4); +return x_1; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_dec(x_14); +x_15 = lean_array_set(x_4, x_8, x_9); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_15); +return x_1; +} +else +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_1); +x_16 = lean_array_set(x_4, x_8, x_9); +lean_dec(x_8); +x_17 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +case 1: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_1); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_1, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_10); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; size_t x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_array_set(x_4, x_8, x_9); +x_23 = lean_usize_shift_right(x_2, x_5); +x_24 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(x_21, x_23, x_3); +lean_inc(x_24); +x_25 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_ctor_set(x_10, 0, x_24); +x_26 = lean_array_set(x_22, x_8, x_10); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_26); +return x_1; +} +else +{ +lean_object* x_27; uint8_t x_28; +lean_dec(x_24); +lean_free_object(x_10); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_array_set(x_22, x_8, x_27); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_29); +return x_1; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_27, 0); +x_31 = lean_ctor_get(x_27, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_27); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_set(x_22, x_8, x_32); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +} +} +else +{ +lean_object* x_34; lean_object* x_35; size_t x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_10, 0); +lean_inc(x_34); +lean_dec(x_10); +x_35 = lean_array_set(x_4, x_8, x_9); +x_36 = lean_usize_shift_right(x_2, x_5); +x_37 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(x_34, x_36, x_3); +lean_inc(x_37); +x_38 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_37); +x_40 = lean_array_set(x_35, x_8, x_39); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_40); +return x_1; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_37); +x_41 = lean_ctor_get(x_38, 0); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_44 = x_41; +} else { + lean_dec_ref(x_41); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +x_46 = lean_array_set(x_35, x_8, x_45); +lean_dec(x_8); +lean_ctor_set(x_1, 0, x_46); +return x_1; +} +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_1); +x_47 = lean_ctor_get(x_10, 0); +lean_inc(x_47); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + x_48 = x_10; +} else { + lean_dec_ref(x_10); + x_48 = lean_box(0); +} +x_49 = lean_array_set(x_4, x_8, x_9); +x_50 = lean_usize_shift_right(x_2, x_5); +x_51 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(x_47, x_50, x_3); +lean_inc(x_51); +x_52 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_51); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +if (lean_is_scalar(x_48)) { + x_53 = lean_alloc_ctor(1, 1, 0); +} else { + x_53 = x_48; +} +lean_ctor_set(x_53, 0, x_51); +x_54 = lean_array_set(x_49, x_8, x_53); +lean_dec(x_8); +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +return x_55; +} +else +{ +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_dec(x_51); +lean_dec(x_48); +x_56 = lean_ctor_get(x_52, 0); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; +} else { + lean_dec_ref(x_56); + 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_57); +lean_ctor_set(x_60, 1, x_58); +x_61 = lean_array_set(x_49, x_8, x_60); +lean_dec(x_8); +x_62 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_62, 0, x_61); +return x_62; +} +} +} +default: +{ +lean_dec(x_8); +lean_dec(x_4); +return x_1; +} +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_1, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_1, 1); +lean_inc(x_64); +x_65 = lean_unsigned_to_nat(0u); +x_66 = l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3(x_63, x_3, x_65); +if (lean_obj_tag(x_66) == 0) +{ +lean_dec(x_64); +lean_dec(x_63); +return x_1; +} +else +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_1); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_1, 1); +lean_dec(x_68); +x_69 = lean_ctor_get(x_1, 0); +lean_dec(x_69); +x_70 = lean_ctor_get(x_66, 0); +lean_inc(x_70); +lean_dec(x_66); +lean_inc(x_70); +x_71 = l_Array_eraseIdx___rarg(x_63, x_70, lean_box(0)); +x_72 = l_Array_eraseIdx___rarg(x_64, x_70, lean_box(0)); +lean_ctor_set(x_1, 1, x_72); +lean_ctor_set(x_1, 0, x_71); +return x_1; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_1); +x_73 = lean_ctor_get(x_66, 0); +lean_inc(x_73); +lean_dec(x_66); +lean_inc(x_73); +x_74 = l_Array_eraseIdx___rarg(x_63, x_73, lean_box(0)); +x_75 = l_Array_eraseIdx___rarg(x_64, x_73, lean_box(0)); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(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_Name_hash___override(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_4); +x_8 = 0; +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_fget(x_1, x_4); +x_10 = l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(x_5, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_12; +goto _start; +} +else +{ +uint8_t x_14; +lean_dec(x_4); +x_14 = 1; +return x_14; +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = 5; +x_6 = l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__2; +x_7 = lean_usize_land(x_2, x_6); +x_8 = lean_usize_to_nat(x_7); +x_9 = lean_box(2); +x_10 = lean_array_get(x_9, x_4, x_8); +lean_dec(x_8); +lean_dec(x_4); +switch (lean_obj_tag(x_10)) { +case 0: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(x_3, x_11); +lean_dec(x_11); +return x_12; +} +case 1: +{ +lean_object* x_13; size_t x_14; +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_usize_shift_right(x_2, x_5); +x_1 = x_13; +x_2 = x_14; +goto _start; +} +default: +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +lean_dec(x_1); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5(x_17, x_18, lean_box(0), x_19, x_3); +lean_dec(x_18); +lean_dec(x_17); +return x_20; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; size_t x_4; uint8_t x_5; +x_3 = l_Lean_HeadIndex_hash(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__6(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(x_1); +x_4 = l_List_reverse___rarg(x_3); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +x_8 = l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(x_1, x_6); +if (x_8 == 0) +{ +lean_ctor_set(x_2, 1, x_3); +{ +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +else +{ +lean_free_object(x_2); +lean_dec(x_6); +x_2 = x_7; +goto _start; +} +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_1); +x_13 = l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(x_1, x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_3); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +else +{ +lean_dec(x_11); +x_2 = x_12; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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, lean_object* x_11, lean_object* x_12) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_11); +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_1); +x_13 = l_List_reverse___rarg(x_3); +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; +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_2); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_2, 0); +x_17 = lean_ctor_get(x_2, 1); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_18 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern(x_16, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +lean_ctor_set(x_2, 1, x_3); +lean_ctor_set(x_2, 0, x_19); +{ +lean_object* _tmp_1 = x_17; +lean_object* _tmp_2 = x_2; +lean_object* _tmp_11 = x_20; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_12 = _tmp_11; +} +goto _start; +} +else +{ +uint8_t x_22; +lean_free_object(x_2); +lean_dec(x_17); +lean_dec(x_11); +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); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +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; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_2, 0); +x_27 = lean_ctor_get(x_2, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_2); +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_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_28 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern(x_26, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_3); +x_2 = x_27; +x_3 = x_31; +x_12 = x_30; +goto _start; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_27); +lean_dec(x_11); +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); +lean_dec(x_1); +x_33 = lean_ctor_get(x_28, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_35 = x_28; +} else { + lean_dec_ref(x_28); + x_35 = lean_box(0); +} +if (lean_is_scalar(x_35)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_35; +} +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_st_ref_take(x_3, x_11); +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(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_13, 9); +x_17 = l_Lean_PersistentArray_push___rarg(x_16, x_1); +lean_ctor_set(x_13, 9, x_17); +x_18 = lean_st_ref_set(x_3, x_13, x_14); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +lean_ctor_set(x_18, 0, x_21); +return x_18; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +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 +{ +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; 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; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_13, 2); +x_28 = lean_ctor_get(x_13, 3); +x_29 = lean_ctor_get(x_13, 4); +x_30 = lean_ctor_get(x_13, 5); +x_31 = lean_ctor_get_uint8(x_13, sizeof(void*)*14); +x_32 = lean_ctor_get(x_13, 6); +x_33 = lean_ctor_get(x_13, 7); +x_34 = lean_ctor_get(x_13, 8); +x_35 = lean_ctor_get(x_13, 9); +x_36 = lean_ctor_get(x_13, 10); +x_37 = lean_ctor_get(x_13, 11); +x_38 = lean_ctor_get(x_13, 12); +x_39 = lean_ctor_get(x_13, 13); +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_inc(x_33); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_13); +x_40 = l_Lean_PersistentArray_push___rarg(x_35, x_1); +x_41 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_41, 0, x_25); +lean_ctor_set(x_41, 1, x_26); +lean_ctor_set(x_41, 2, x_27); +lean_ctor_set(x_41, 3, x_28); +lean_ctor_set(x_41, 4, x_29); +lean_ctor_set(x_41, 5, x_30); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_40); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_37); +lean_ctor_set(x_41, 12, x_38); +lean_ctor_set(x_41, 13, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*14, x_31); +x_42 = lean_st_ref_set(x_3, x_41, x_14); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; +} else { + lean_dec_ref(x_42); + x_44 = lean_box(0); +} +x_45 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +if (lean_is_scalar(x_44)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_44; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +return x_46; +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_st_ref_take(x_3, x_11); +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(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_13, 10); +x_17 = l_Lean_Meta_Grind_EMatchTheorems_insert(x_16, x_1); +lean_ctor_set(x_13, 10, x_17); +x_18 = lean_st_ref_set(x_3, x_13, x_14); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +lean_ctor_set(x_18, 0, x_21); +return x_18; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +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 +{ +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; 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; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_13, 2); +x_28 = lean_ctor_get(x_13, 3); +x_29 = lean_ctor_get(x_13, 4); +x_30 = lean_ctor_get(x_13, 5); +x_31 = lean_ctor_get_uint8(x_13, sizeof(void*)*14); +x_32 = lean_ctor_get(x_13, 6); +x_33 = lean_ctor_get(x_13, 7); +x_34 = lean_ctor_get(x_13, 8); +x_35 = lean_ctor_get(x_13, 9); +x_36 = lean_ctor_get(x_13, 10); +x_37 = lean_ctor_get(x_13, 11); +x_38 = lean_ctor_get(x_13, 12); +x_39 = lean_ctor_get(x_13, 13); +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_inc(x_33); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_13); +x_40 = l_Lean_Meta_Grind_EMatchTheorems_insert(x_36, x_1); +x_41 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_41, 0, x_25); +lean_ctor_set(x_41, 1, x_26); +lean_ctor_set(x_41, 2, x_27); +lean_ctor_set(x_41, 3, x_28); +lean_ctor_set(x_41, 4, x_29); +lean_ctor_set(x_41, 5, x_30); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_40); +lean_ctor_set(x_41, 11, x_37); +lean_ctor_set(x_41, 12, x_38); +lean_ctor_set(x_41, 13, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*14, x_31); +x_42 = lean_st_ref_set(x_3, x_41, x_14); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; +} else { + lean_dec_ref(x_42); + x_44 = lean_box(0); +} +x_45 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1; +if (lean_is_scalar(x_44)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_44; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +return x_46; +} +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ematch", 6, 6); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; +x_2 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("activated `", 11, 11); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`, ", 3, 3); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("reinsert `", 10, 10); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`", 1, 1); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_18; +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_1); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_7); +x_19 = !lean_is_exclusive(x_6); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_27; +x_20 = lean_ctor_get(x_6, 0); +x_21 = lean_ctor_get(x_6, 1); +x_27 = !lean_is_exclusive(x_20); +if (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; +x_28 = lean_ctor_get(x_20, 0); +x_29 = lean_ctor_get(x_20, 1); +x_30 = lean_ctor_get(x_20, 2); +x_31 = lean_ctor_get(x_20, 3); +x_32 = lean_ctor_get(x_20, 4); +x_33 = lean_ctor_get(x_20, 5); +x_34 = lean_box(0); +lean_inc(x_3); +x_35 = l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__6(x_3, x_32, x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = l_Lean_Meta_Grind_shareCommon(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +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_1); +x_40 = l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__7(x_1, x_31, x_34, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_39); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_33); +lean_inc(x_41); +lean_ctor_set(x_20, 4, x_35); +lean_ctor_set(x_20, 3, x_41); +lean_ctor_set(x_20, 1, x_38); +x_43 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_44 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_43, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_42); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_41); +lean_free_object(x_36); +lean_dec(x_33); +lean_free_object(x_6); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_box(0); +x_49 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_20, x_48, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_47); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_22 = x_50; +x_23 = x_51; +goto block_26; +} +else +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_44); +if (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; 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_53 = lean_ctor_get(x_44, 1); +x_54 = lean_ctor_get(x_44, 0); +lean_dec(x_54); +x_55 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_56 = l_Lean_MessageData_ofName(x_55); +x_57 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +lean_ctor_set_tag(x_44, 7); +lean_ctor_set(x_44, 1, x_56); +lean_ctor_set(x_44, 0, x_57); +x_58 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +lean_ctor_set_tag(x_36, 7); +lean_ctor_set(x_36, 1, x_58); +lean_ctor_set(x_36, 0, x_44); +x_59 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_41, x_34); +x_60 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_59, x_34); +x_61 = l_Lean_MessageData_ofList(x_60); +lean_ctor_set_tag(x_6, 7); +lean_ctor_set(x_6, 1, x_61); +lean_ctor_set(x_6, 0, x_36); +x_62 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_6); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_43, x_63, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_53); +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(x_64); +x_67 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_20, x_65, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_66); +lean_dec(x_65); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_22 = x_68; +x_23 = x_69; +goto block_26; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_70 = lean_ctor_get(x_44, 1); +lean_inc(x_70); +lean_dec(x_44); +x_71 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_72 = l_Lean_MessageData_ofName(x_71); +x_73 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +x_74 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +lean_ctor_set_tag(x_36, 7); +lean_ctor_set(x_36, 1, x_75); +lean_ctor_set(x_36, 0, x_74); +x_76 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_41, x_34); +x_77 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_76, x_34); +x_78 = l_Lean_MessageData_ofList(x_77); +lean_ctor_set_tag(x_6, 7); +lean_ctor_set(x_6, 1, x_78); +lean_ctor_set(x_6, 0, x_36); +x_79 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_6); +lean_ctor_set(x_80, 1, x_79); +x_81 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_43, x_80, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_70); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_20, x_82, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_83); +lean_dec(x_82); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_22 = x_85; +x_23 = x_86; +goto block_26; +} +} +} +else +{ +uint8_t x_87; +lean_free_object(x_36); +lean_dec(x_38); +lean_free_object(x_20); +lean_dec(x_33); +lean_dec(x_30); +lean_dec(x_28); +lean_free_object(x_6); +lean_dec(x_21); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_40); +if (x_87 == 0) +{ +return x_40; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_40, 0); +x_89 = lean_ctor_get(x_40, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_40); +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 +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_36, 0); +x_92 = lean_ctor_get(x_36, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_36); +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_1); +x_93 = l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__7(x_1, x_31, x_34, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_92); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +lean_inc(x_33); +lean_inc(x_94); +lean_ctor_set(x_20, 4, x_35); +lean_ctor_set(x_20, 3, x_94); +lean_ctor_set(x_20, 1, x_91); +x_96 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_97 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_96, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_95); +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_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_94); +lean_dec(x_33); +lean_free_object(x_6); +x_100 = lean_ctor_get(x_97, 1); +lean_inc(x_100); +lean_dec(x_97); +x_101 = lean_box(0); +x_102 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_20, x_101, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_100); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_22 = x_103; +x_23 = x_104; +goto block_26; +} +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_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; +x_105 = lean_ctor_get(x_97, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_106 = x_97; +} else { + lean_dec_ref(x_97); + x_106 = lean_box(0); +} +x_107 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_108 = l_Lean_MessageData_ofName(x_107); +x_109 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +if (lean_is_scalar(x_106)) { + x_110 = lean_alloc_ctor(7, 2, 0); +} else { + x_110 = x_106; + lean_ctor_set_tag(x_110, 7); +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +x_112 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_94, x_34); +x_114 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_113, x_34); +x_115 = l_Lean_MessageData_ofList(x_114); +lean_ctor_set_tag(x_6, 7); +lean_ctor_set(x_6, 1, x_115); +lean_ctor_set(x_6, 0, x_112); +x_116 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_117 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_117, 0, x_6); +lean_ctor_set(x_117, 1, x_116); +x_118 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_96, x_117, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_105); +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(x_118); +x_121 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_20, x_119, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_120); +lean_dec(x_119); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_22 = x_122; +x_23 = x_123; +goto block_26; +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_91); +lean_free_object(x_20); +lean_dec(x_33); +lean_dec(x_30); +lean_dec(x_28); +lean_free_object(x_6); +lean_dec(x_21); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_1); +x_124 = lean_ctor_get(x_93, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_93, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_126 = x_93; +} else { + lean_dec_ref(x_93); + 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 +{ +uint8_t x_128; +lean_free_object(x_6); +lean_inc(x_33); +lean_inc(x_35); +lean_ctor_set(x_20, 4, x_35); +x_128 = !lean_is_exclusive(x_35); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_129 = lean_ctor_get(x_35, 1); +lean_dec(x_129); +x_130 = lean_ctor_get(x_35, 0); +lean_dec(x_130); +x_131 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_132 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_131, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_unbox(x_133); +lean_dec(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_free_object(x_35); +lean_dec(x_33); +x_135 = lean_ctor_get(x_132, 1); +lean_inc(x_135); +lean_dec(x_132); +x_136 = lean_box(0); +x_137 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_20, x_136, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_135); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_22 = x_138; +x_23 = x_139; +goto block_26; +} +else +{ +uint8_t x_140; +x_140 = !lean_is_exclusive(x_132); +if (x_140 == 0) +{ +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; +x_141 = lean_ctor_get(x_132, 1); +x_142 = lean_ctor_get(x_132, 0); +lean_dec(x_142); +x_143 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_144 = l_Lean_MessageData_ofName(x_143); +x_145 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +lean_ctor_set_tag(x_132, 7); +lean_ctor_set(x_132, 1, x_144); +lean_ctor_set(x_132, 0, x_145); +x_146 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; +lean_ctor_set_tag(x_35, 7); +lean_ctor_set(x_35, 1, x_146); +lean_ctor_set(x_35, 0, x_132); +x_147 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_131, x_35, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_141); +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_147); +x_150 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_20, x_148, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_149); +lean_dec(x_148); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_22 = x_151; +x_23 = x_152; +goto block_26; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_153 = lean_ctor_get(x_132, 1); +lean_inc(x_153); +lean_dec(x_132); +x_154 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_155 = l_Lean_MessageData_ofName(x_154); +x_156 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +x_157 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; +lean_ctor_set_tag(x_35, 7); +lean_ctor_set(x_35, 1, x_158); +lean_ctor_set(x_35, 0, x_157); +x_159 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_131, x_35, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_153); +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_20, x_160, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_161); +lean_dec(x_160); +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(x_162); +x_22 = x_163; +x_23 = x_164; +goto block_26; +} +} +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec(x_35); +x_165 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_166 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_165, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_unbox(x_167); +lean_dec(x_167); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_33); +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); +lean_dec(x_166); +x_170 = lean_box(0); +x_171 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_20, x_170, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_169); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_22 = x_172; +x_23 = x_173; +goto block_26; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_174 = lean_ctor_get(x_166, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + x_175 = x_166; +} else { + lean_dec_ref(x_166); + x_175 = lean_box(0); +} +x_176 = l_Lean_Meta_Grind_Origin_key(x_33); +lean_dec(x_33); +x_177 = l_Lean_MessageData_ofName(x_176); +x_178 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +if (lean_is_scalar(x_175)) { + x_179 = lean_alloc_ctor(7, 2, 0); +} else { + x_179 = x_175; + lean_ctor_set_tag(x_179, 7); +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_177); +x_180 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; +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_addCongrTable___spec__9(x_165, x_181, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_174); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_185 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_20, x_183, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_184); +lean_dec(x_183); +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +lean_dec(x_185); +x_22 = x_186; +x_23 = x_187; +goto block_26; +} +} +} +} +else +{ +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; +x_188 = lean_ctor_get(x_20, 0); +x_189 = lean_ctor_get(x_20, 1); +x_190 = lean_ctor_get(x_20, 2); +x_191 = lean_ctor_get(x_20, 3); +x_192 = lean_ctor_get(x_20, 4); +x_193 = lean_ctor_get(x_20, 5); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_20); +x_194 = lean_box(0); +lean_inc(x_3); +x_195 = l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__6(x_3, x_192, x_194); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_196 = l_Lean_Meta_Grind_shareCommon(x_189, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_199 = x_196; +} else { + lean_dec_ref(x_196); + x_199 = lean_box(0); +} +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_1); +x_200 = l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__7(x_1, x_191, x_194, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_198); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +lean_inc(x_193); +lean_inc(x_201); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_188); +lean_ctor_set(x_203, 1, x_197); +lean_ctor_set(x_203, 2, x_190); +lean_ctor_set(x_203, 3, x_201); +lean_ctor_set(x_203, 4, x_195); +lean_ctor_set(x_203, 5, x_193); +x_204 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_205 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_204, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_202); +x_206 = lean_ctor_get(x_205, 0); +lean_inc(x_206); +x_207 = lean_unbox(x_206); +lean_dec(x_206); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_dec(x_201); +lean_dec(x_199); +lean_dec(x_193); +lean_free_object(x_6); +x_208 = lean_ctor_get(x_205, 1); +lean_inc(x_208); +lean_dec(x_205); +x_209 = lean_box(0); +x_210 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_203, x_209, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_208); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_22 = x_211; +x_23 = x_212; +goto block_26; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_213 = lean_ctor_get(x_205, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_214 = x_205; +} else { + lean_dec_ref(x_205); + x_214 = lean_box(0); +} +x_215 = l_Lean_Meta_Grind_Origin_key(x_193); +lean_dec(x_193); +x_216 = l_Lean_MessageData_ofName(x_215); +x_217 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +if (lean_is_scalar(x_214)) { + x_218 = lean_alloc_ctor(7, 2, 0); +} else { + x_218 = x_214; + lean_ctor_set_tag(x_218, 7); +} +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_216); +x_219 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +if (lean_is_scalar(x_199)) { + x_220 = lean_alloc_ctor(7, 2, 0); +} else { + x_220 = x_199; + lean_ctor_set_tag(x_220, 7); +} +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +x_221 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_201, x_194); +x_222 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_221, x_194); +x_223 = l_Lean_MessageData_ofList(x_222); +lean_ctor_set_tag(x_6, 7); +lean_ctor_set(x_6, 1, x_223); +lean_ctor_set(x_6, 0, x_220); +x_224 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_225 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_225, 0, x_6); +lean_ctor_set(x_225, 1, x_224); +x_226 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_204, x_225, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_213); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); +x_229 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_203, x_227, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_228); +lean_dec(x_227); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +x_22 = x_230; +x_23 = x_231; +goto block_26; +} +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_199); +lean_dec(x_197); +lean_dec(x_193); +lean_dec(x_190); +lean_dec(x_188); +lean_free_object(x_6); +lean_dec(x_21); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_1); +x_232 = lean_ctor_get(x_200, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_200, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_234 = x_200; +} else { + lean_dec_ref(x_200); + x_234 = lean_box(0); +} +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(1, 2, 0); +} else { + x_235 = x_234; +} +lean_ctor_set(x_235, 0, x_232); +lean_ctor_set(x_235, 1, x_233); +return x_235; +} +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; +lean_free_object(x_6); +lean_inc(x_193); +lean_inc(x_195); +x_236 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_236, 0, x_188); +lean_ctor_set(x_236, 1, x_189); +lean_ctor_set(x_236, 2, x_190); +lean_ctor_set(x_236, 3, x_191); +lean_ctor_set(x_236, 4, x_195); +lean_ctor_set(x_236, 5, x_193); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_237 = x_195; +} else { + lean_dec_ref(x_195); + x_237 = lean_box(0); +} +x_238 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_239 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_238, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_unbox(x_240); +lean_dec(x_240); +if (x_241 == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_237); +lean_dec(x_193); +x_242 = lean_ctor_get(x_239, 1); +lean_inc(x_242); +lean_dec(x_239); +x_243 = lean_box(0); +x_244 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_236, x_243, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_22 = x_245; +x_23 = x_246; +goto block_26; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_247 = lean_ctor_get(x_239, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_248 = x_239; +} else { + lean_dec_ref(x_239); + x_248 = lean_box(0); +} +x_249 = l_Lean_Meta_Grind_Origin_key(x_193); +lean_dec(x_193); +x_250 = l_Lean_MessageData_ofName(x_249); +x_251 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +if (lean_is_scalar(x_248)) { + x_252 = lean_alloc_ctor(7, 2, 0); +} else { + x_252 = x_248; + lean_ctor_set_tag(x_252, 7); +} +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; +if (lean_is_scalar(x_237)) { + x_254 = lean_alloc_ctor(7, 2, 0); +} else { + x_254 = x_237; + lean_ctor_set_tag(x_254, 7); +} +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +x_255 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_238, x_254, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_247); +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +lean_dec(x_255); +x_258 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_236, x_256, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_257); +lean_dec(x_256); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); +lean_dec(x_258); +x_22 = x_259; +x_23 = x_260; +goto block_26; +} +} +} +block_26: +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_6 = x_21; +x_7 = x_24; +x_8 = lean_box(0); +x_17 = x_23; +goto _start; +} +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_261 = lean_ctor_get(x_6, 0); +x_262 = lean_ctor_get(x_6, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_6); +x_268 = lean_ctor_get(x_261, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_261, 1); +lean_inc(x_269); +x_270 = lean_ctor_get(x_261, 2); +lean_inc(x_270); +x_271 = lean_ctor_get(x_261, 3); +lean_inc(x_271); +x_272 = lean_ctor_get(x_261, 4); +lean_inc(x_272); +x_273 = lean_ctor_get(x_261, 5); +lean_inc(x_273); +if (lean_is_exclusive(x_261)) { + lean_ctor_release(x_261, 0); + lean_ctor_release(x_261, 1); + lean_ctor_release(x_261, 2); + lean_ctor_release(x_261, 3); + lean_ctor_release(x_261, 4); + lean_ctor_release(x_261, 5); + x_274 = x_261; +} else { + lean_dec_ref(x_261); + x_274 = lean_box(0); +} +x_275 = lean_box(0); +lean_inc(x_3); +x_276 = l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__6(x_3, x_272, x_275); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_277 = l_Lean_Meta_Grind_shareCommon(x_269, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_280 = x_277; +} else { + lean_dec_ref(x_277); + x_280 = lean_box(0); +} +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_1); +x_281 = l_List_mapM_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__7(x_1, x_271, x_275, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_279); +if (lean_obj_tag(x_281) == 0) +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +lean_inc(x_273); +lean_inc(x_282); +if (lean_is_scalar(x_274)) { + x_284 = lean_alloc_ctor(0, 6, 0); +} else { + x_284 = x_274; +} +lean_ctor_set(x_284, 0, x_268); +lean_ctor_set(x_284, 1, x_278); +lean_ctor_set(x_284, 2, x_270); +lean_ctor_set(x_284, 3, x_282); +lean_ctor_set(x_284, 4, x_276); +lean_ctor_set(x_284, 5, x_273); +x_285 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_286 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_285, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_283); +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_unbox(x_287); +lean_dec(x_287); +if (x_288 == 0) +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_273); +x_289 = lean_ctor_get(x_286, 1); +lean_inc(x_289); +lean_dec(x_286); +x_290 = lean_box(0); +x_291 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_284, x_290, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_289); +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +lean_dec(x_291); +x_263 = x_292; +x_264 = x_293; +goto block_267; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +x_294 = lean_ctor_get(x_286, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_286)) { + lean_ctor_release(x_286, 0); + lean_ctor_release(x_286, 1); + x_295 = x_286; +} else { + lean_dec_ref(x_286); + x_295 = lean_box(0); +} +x_296 = l_Lean_Meta_Grind_Origin_key(x_273); +lean_dec(x_273); +x_297 = l_Lean_MessageData_ofName(x_296); +x_298 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4; +if (lean_is_scalar(x_295)) { + x_299 = lean_alloc_ctor(7, 2, 0); +} else { + x_299 = x_295; + lean_ctor_set_tag(x_299, 7); +} +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_297); +x_300 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6; +if (lean_is_scalar(x_280)) { + x_301 = lean_alloc_ctor(7, 2, 0); +} else { + x_301 = x_280; + lean_ctor_set_tag(x_301, 7); +} +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +x_302 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__3(x_282, x_275); +x_303 = l_List_mapTR_loop___at_Lean_Meta_Grind_addEMatchTheorem___spec__4(x_302, x_275); +x_304 = l_Lean_MessageData_ofList(x_303); +x_305 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_305, 0, x_301); +lean_ctor_set(x_305, 1, x_304); +x_306 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5; +x_307 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_307, 0, x_305); +lean_ctor_set(x_307, 1, x_306); +x_308 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_285, x_307, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_294); +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1(x_284, x_309, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_310); +lean_dec(x_309); +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +lean_dec(x_311); +x_263 = x_312; +x_264 = x_313; +goto block_267; +} +} +else +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +lean_dec(x_280); +lean_dec(x_278); +lean_dec(x_274); +lean_dec(x_273); +lean_dec(x_270); +lean_dec(x_268); +lean_dec(x_262); +lean_dec(x_16); +lean_dec(x_15); +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(x_3); +lean_dec(x_1); +x_314 = lean_ctor_get(x_281, 0); +lean_inc(x_314); +x_315 = lean_ctor_get(x_281, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + x_316 = x_281; +} else { + lean_dec_ref(x_281); + x_316 = lean_box(0); +} +if (lean_is_scalar(x_316)) { + x_317 = lean_alloc_ctor(1, 2, 0); +} else { + x_317 = x_316; +} +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_315); +return x_317; +} +} +else +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; +lean_inc(x_273); +lean_inc(x_276); +if (lean_is_scalar(x_274)) { + x_318 = lean_alloc_ctor(0, 6, 0); +} else { + x_318 = x_274; +} +lean_ctor_set(x_318, 0, x_268); +lean_ctor_set(x_318, 1, x_269); +lean_ctor_set(x_318, 2, x_270); +lean_ctor_set(x_318, 3, x_271); +lean_ctor_set(x_318, 4, x_276); +lean_ctor_set(x_318, 5, x_273); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_319 = x_276; +} else { + lean_dec_ref(x_276); + x_319 = lean_box(0); +} +x_320 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2; +x_321 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_320, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_unbox(x_322); +lean_dec(x_322); +if (x_323 == 0) +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +lean_dec(x_319); +lean_dec(x_273); +x_324 = lean_ctor_get(x_321, 1); +lean_inc(x_324); +lean_dec(x_321); +x_325 = lean_box(0); +x_326 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_318, x_325, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_324); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +lean_dec(x_326); +x_263 = x_327; +x_264 = x_328; +goto block_267; +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_329 = lean_ctor_get(x_321, 1); +lean_inc(x_329); +if (lean_is_exclusive(x_321)) { + lean_ctor_release(x_321, 0); + lean_ctor_release(x_321, 1); + x_330 = x_321; +} else { + lean_dec_ref(x_321); + x_330 = lean_box(0); +} +x_331 = l_Lean_Meta_Grind_Origin_key(x_273); +lean_dec(x_273); +x_332 = l_Lean_MessageData_ofName(x_331); +x_333 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8; +if (lean_is_scalar(x_330)) { + x_334 = lean_alloc_ctor(7, 2, 0); +} else { + x_334 = x_330; + lean_ctor_set_tag(x_334, 7); +} +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +x_335 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10; +if (lean_is_scalar(x_319)) { + x_336 = lean_alloc_ctor(7, 2, 0); +} else { + x_336 = x_319; + lean_ctor_set_tag(x_336, 7); +} +lean_ctor_set(x_336, 0, x_334); +lean_ctor_set(x_336, 1, x_335); +x_337 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_320, x_336, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_329); +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_337, 1); +lean_inc(x_339); +lean_dec(x_337); +x_340 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(x_318, x_338, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_339); +lean_dec(x_338); +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 1); +lean_inc(x_342); +lean_dec(x_340); +x_263 = x_341; +x_264 = x_342; +goto block_267; +} +} +block_267: +{ +lean_object* x_265; +x_265 = lean_ctor_get(x_263, 0); +lean_inc(x_265); +lean_dec(x_263); +x_6 = x_262; +x_7 = x_265; +x_8 = lean_box(0); +x_17 = x_264; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_13; +x_12 = lean_st_ref_get(x_3, x_11); +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; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_14, 10); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(x_16, x_1); +if (lean_obj_tag(x_17) == 0) +{ +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_3); +lean_dec(x_2); +x_18 = lean_box(0); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_free_object(x_12); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_st_ref_take(x_3, x_15); +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(x_20); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_24 = lean_ctor_get(x_21, 10); +x_25 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(x_24, x_1); +lean_ctor_set(x_21, 10, x_25); +x_26 = lean_st_ref_set(x_3, x_21, x_22); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_st_ref_get(x_3, x_27); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 4); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_box(0); +x_33 = lean_box(0); +lean_inc(x_19); +x_34 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8(x_2, x_19, x_31, x_32, x_19, x_19, x_33, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_19); +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_33); +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_33); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +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_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t 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; +x_43 = lean_ctor_get(x_21, 0); +x_44 = lean_ctor_get(x_21, 1); +x_45 = lean_ctor_get(x_21, 2); +x_46 = lean_ctor_get(x_21, 3); +x_47 = lean_ctor_get(x_21, 4); +x_48 = lean_ctor_get(x_21, 5); +x_49 = lean_ctor_get_uint8(x_21, sizeof(void*)*14); +x_50 = lean_ctor_get(x_21, 6); +x_51 = lean_ctor_get(x_21, 7); +x_52 = lean_ctor_get(x_21, 8); +x_53 = lean_ctor_get(x_21, 9); +x_54 = lean_ctor_get(x_21, 10); +x_55 = lean_ctor_get(x_21, 11); +x_56 = lean_ctor_get(x_21, 12); +x_57 = lean_ctor_get(x_21, 13); +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_inc(x_50); +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_dec(x_21); +x_58 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(x_54, x_1); +x_59 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_59, 0, x_43); +lean_ctor_set(x_59, 1, x_44); +lean_ctor_set(x_59, 2, x_45); +lean_ctor_set(x_59, 3, x_46); +lean_ctor_set(x_59, 4, x_47); +lean_ctor_set(x_59, 5, x_48); +lean_ctor_set(x_59, 6, x_50); +lean_ctor_set(x_59, 7, x_51); +lean_ctor_set(x_59, 8, x_52); +lean_ctor_set(x_59, 9, x_53); +lean_ctor_set(x_59, 10, x_58); +lean_ctor_set(x_59, 11, x_55); +lean_ctor_set(x_59, 12, x_56); +lean_ctor_set(x_59, 13, x_57); +lean_ctor_set_uint8(x_59, sizeof(void*)*14, x_49); +x_60 = lean_st_ref_set(x_3, x_59, x_22); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_st_ref_get(x_3, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 4); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_box(0); +x_67 = lean_box(0); +lean_inc(x_19); +x_68 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8(x_2, x_19, x_65, x_66, x_19, x_19, x_67, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_64); +lean_dec(x_19); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +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 { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_67); +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; +x_72 = lean_ctor_get(x_68, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_74 = x_68; +} else { + lean_dec_ref(x_68); + 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 +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +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_ctor_get(x_76, 10); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(x_78, x_1); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; +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); +lean_dec(x_2); +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_77); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t 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; +x_82 = lean_ctor_get(x_79, 0); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_st_ref_take(x_3, x_77); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_ctor_get(x_84, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_84, 1); +lean_inc(x_87); +x_88 = lean_ctor_get(x_84, 2); +lean_inc(x_88); +x_89 = lean_ctor_get(x_84, 3); +lean_inc(x_89); +x_90 = lean_ctor_get(x_84, 4); +lean_inc(x_90); +x_91 = lean_ctor_get(x_84, 5); +lean_inc(x_91); +x_92 = lean_ctor_get_uint8(x_84, sizeof(void*)*14); +x_93 = lean_ctor_get(x_84, 6); +lean_inc(x_93); +x_94 = lean_ctor_get(x_84, 7); +lean_inc(x_94); +x_95 = lean_ctor_get(x_84, 8); +lean_inc(x_95); +x_96 = lean_ctor_get(x_84, 9); +lean_inc(x_96); +x_97 = lean_ctor_get(x_84, 10); +lean_inc(x_97); +x_98 = lean_ctor_get(x_84, 11); +lean_inc(x_98); +x_99 = lean_ctor_get(x_84, 12); +lean_inc(x_99); +x_100 = lean_ctor_get(x_84, 13); +lean_inc(x_100); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + lean_ctor_release(x_84, 3); + lean_ctor_release(x_84, 4); + lean_ctor_release(x_84, 5); + lean_ctor_release(x_84, 6); + lean_ctor_release(x_84, 7); + lean_ctor_release(x_84, 8); + lean_ctor_release(x_84, 9); + lean_ctor_release(x_84, 10); + lean_ctor_release(x_84, 11); + lean_ctor_release(x_84, 12); + lean_ctor_release(x_84, 13); + x_101 = x_84; +} else { + lean_dec_ref(x_84); + x_101 = lean_box(0); +} +x_102 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(x_97, x_1); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(0, 14, 1); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_86); +lean_ctor_set(x_103, 1, x_87); +lean_ctor_set(x_103, 2, x_88); +lean_ctor_set(x_103, 3, x_89); +lean_ctor_set(x_103, 4, x_90); +lean_ctor_set(x_103, 5, x_91); +lean_ctor_set(x_103, 6, x_93); +lean_ctor_set(x_103, 7, x_94); +lean_ctor_set(x_103, 8, x_95); +lean_ctor_set(x_103, 9, x_96); +lean_ctor_set(x_103, 10, x_102); +lean_ctor_set(x_103, 11, x_98); +lean_ctor_set(x_103, 12, x_99); +lean_ctor_set(x_103, 13, x_100); +lean_ctor_set_uint8(x_103, sizeof(void*)*14, x_92); +x_104 = lean_st_ref_set(x_3, x_103, x_85); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +lean_dec(x_104); +x_106 = lean_st_ref_get(x_3, x_105); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_ctor_get(x_107, 4); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_box(0); +x_111 = lean_box(0); +lean_inc(x_82); +x_112 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8(x_2, x_82, x_109, x_110, x_82, x_82, x_111, lean_box(0), x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_108); +lean_dec(x_82); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; +} else { + lean_dec_ref(x_112); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_111); +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; +x_116 = lean_ctor_get(x_112, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_112, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_118 = x_112; +} else { + lean_dec_ref(x_112); + 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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___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) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___spec__1(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +} LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_internalize___spec__2___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -7733,9 +11217,144 @@ lean_dec(x_3); return x_13; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_Grind_internalize___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2___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_eraseAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2(x_1, x_4, x_3); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4(x_1, x_4, x_3); +lean_dec(x_3); +x_6 = lean_box(x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_PersistentHashMap_contains___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__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_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); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__2(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(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +lean_object* x_18; +x_18 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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, x_14, x_15, x_16, x_17); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_18; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___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_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(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_1); +return x_12; +} +} lean_object* initialize_Init_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_LitValues(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Internalize(uint8_t builtin, lean_object* w) { lean_object * res; @@ -7750,6 +11369,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_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_Util(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__1(); l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__2 = _init_l_Lean_PersistentHashMap_findEntryAux___at_Lean_Meta_Grind_addCongrTable___spec__2___closed__2(); l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5___closed__1(); @@ -7771,6 +11393,8 @@ l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5 = _init_l_Lean_Meta_Grin lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__5); l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6(); lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6); +l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7 = _init_l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7); l_Lean_Meta_Grind_addCongrTable___closed__1 = _init_l_Lean_Meta_Grind_addCongrTable___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___closed__1); l_Lean_Meta_Grind_addCongrTable___closed__2 = _init_l_Lean_Meta_Grind_addCongrTable___closed__2(); @@ -7789,6 +11413,16 @@ l_Lean_Meta_Grind_addCongrTable___closed__8 = _init_l_Lean_Meta_Grind_addCongrTa lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___closed__8); l_Lean_Meta_Grind_addCongrTable___closed__9 = _init_l_Lean_Meta_Grind_addCongrTable___closed__9(); lean_mark_persistent(l_Lean_Meta_Grind_addCongrTable___closed__9); +l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__1); +l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__2); +l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__3); +l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__4); +l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizePattern___closed__5); l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__1 = _init_l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__1(); lean_mark_persistent(l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__1); l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__2 = _init_l_panic___at_Lean_Meta_Grind_internalize___spec__1___closed__2(); @@ -7819,8 +11453,32 @@ l_Lean_Meta_Grind_internalize___lambda__2___closed__5 = _init_l_Lean_Meta_Grind_ lean_mark_persistent(l_Lean_Meta_Grind_internalize___lambda__2___closed__5); l_Lean_Meta_Grind_internalize___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_internalize___lambda__2___closed__6(); lean_mark_persistent(l_Lean_Meta_Grind_internalize___lambda__2___closed__6); -l_Lean_Meta_Grind_internalize___lambda__2___closed__7 = _init_l_Lean_Meta_Grind_internalize___lambda__2___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_internalize___lambda__2___closed__7); +l_Lean_Meta_Grind_internalize___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_internalize___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_internalize___lambda__3___closed__1); +l_Lean_Meta_Grind_internalize___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_internalize___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_internalize___lambda__3___closed__2); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___lambda__1___closed__1); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__1); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__2); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__3); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__4); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__5); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__6); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__7); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__8); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__9); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__8___closed__10); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c new file mode 100644 index 0000000000..1ccf0922ea --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c @@ -0,0 +1,4860 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Intro +// Imports: Init.Grind.Lemmas Lean.Meta.Tactic.Assert Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core +#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_object* l_Lean_Expr_bindingName_x21(lean_object*); +lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_injection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedIntroResult; +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_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_Intro_0__Lean_Meta_Grind_introNext___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isLet(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_iterate(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___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyInjection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_go___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* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_assertAt(lean_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_assertNext_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_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_simp(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_Intro_0__Lean_Meta_Grind_isCasesCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_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*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3(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_Intro_0__Lean_Meta_Grind_introNext___lambda__2___boxed(lean_object**); +lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_assertAll___closed__1; +lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__6___boxed(lean_object**); +static lean_object* l_Lean_Meta_Grind_intros___closed__1; +lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_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_st_mk_ref(lean_object*, lean_object*); +lean_object* lean_array_to_list(lean_object*); +lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_assertAt___closed__1; +lean_object* l_Lean_Meta_Grind_isGrindCasesTarget(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Queue_dequeue_x3f___rarg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isArrow(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__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_assertAt___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_mkLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__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_iterate_go(lean_object*, lean_object*, 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_intros_go(lean_object*, lean_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_Intro_0__Lean_Meta_Grind_isCasesCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_userName(lean_object*); +lean_object* l_Lean_Meta_Grind_addHypothesis(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_bindingDomain_x21(lean_object*); +lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(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_intros_go___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros(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___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__3___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_Intro_0__Lean_Meta_Grind_introNext___lambda__5___boxed(lean_object**); +lean_object* l_Lean_LocalDecl_type(lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_go___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_Meta_Grind_intros_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__4___boxed(lean_object**); +lean_object* l_List_reverse___rarg(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_byContra_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_assertAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_mk(lean_object*); +lean_object* l_Lean_Expr_fvar___override(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__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___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4; +lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); +uint8_t l_Lean_Expr_isForall(lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___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_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__3___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_Intro_0__Lean_Meta_Grind_introNext___lambda__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___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3___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_Intro_0__Lean_Meta_Grind_introNext___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedIntroResult() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_8); +x_10 = l_Lean_Name_num___override(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_9, x_11); +lean_dec(x_9); +lean_ctor_set(x_5, 1, x_12); +x_13 = lean_st_ref_take(x_1, x_6); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +lean_ctor_set(x_14, 2, x_5); +x_18 = lean_st_ref_set(x_1, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_10); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 3); +x_26 = lean_ctor_get(x_14, 4); +x_27 = lean_ctor_get(x_14, 5); +x_28 = lean_ctor_get(x_14, 6); +x_29 = lean_ctor_get(x_14, 7); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_30 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_24); +lean_ctor_set(x_30, 2, x_5); +lean_ctor_set(x_30, 3, x_25); +lean_ctor_set(x_30, 4, x_26); +lean_ctor_set(x_30, 5, x_27); +lean_ctor_set(x_30, 6, x_28); +lean_ctor_set(x_30, 7, x_29); +x_31 = lean_st_ref_set(x_1, x_30, x_15); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_33 = x_31; +} else { + lean_dec_ref(x_31); + x_33 = lean_box(0); +} +if (lean_is_scalar(x_33)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_33; +} +lean_ctor_set(x_34, 0, x_10); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 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_35 = lean_ctor_get(x_5, 0); +x_36 = lean_ctor_get(x_5, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_5); +lean_inc(x_36); +lean_inc(x_35); +x_37 = l_Lean_Name_num___override(x_35, x_36); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_36, x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_35); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_st_ref_take(x_1, x_6); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_42, 3); +lean_inc(x_46); +x_47 = lean_ctor_get(x_42, 4); +lean_inc(x_47); +x_48 = lean_ctor_get(x_42, 5); +lean_inc(x_48); +x_49 = lean_ctor_get(x_42, 6); +lean_inc(x_49); +x_50 = lean_ctor_get(x_42, 7); +lean_inc(x_50); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + lean_ctor_release(x_42, 4); + lean_ctor_release(x_42, 5); + lean_ctor_release(x_42, 6); + lean_ctor_release(x_42, 7); + x_51 = x_42; +} else { + lean_dec_ref(x_42); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 8, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_44); +lean_ctor_set(x_52, 1, x_45); +lean_ctor_set(x_52, 2, x_40); +lean_ctor_set(x_52, 3, x_46); +lean_ctor_set(x_52, 4, x_47); +lean_ctor_set(x_52, 5, x_48); +lean_ctor_set(x_52, 6, x_49); +lean_ctor_set(x_52, 7, x_50); +x_53 = lean_st_ref_set(x_1, x_52, x_43); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; +} else { + lean_dec_ref(x_53); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_37); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___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) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg___boxed), 2, 0); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___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) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__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; uint8_t x_15; +x_11 = lean_st_ref_take(x_7, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_13, 7); +x_19 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_18, x_1, x_2); +lean_ctor_set(x_13, 7, x_19); +x_20 = lean_st_ref_set(x_7, x_12, x_14); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +else +{ +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; +x_27 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_13, 1); +x_29 = lean_ctor_get(x_13, 2); +x_30 = lean_ctor_get(x_13, 3); +x_31 = lean_ctor_get(x_13, 4); +x_32 = lean_ctor_get(x_13, 5); +x_33 = lean_ctor_get(x_13, 6); +x_34 = lean_ctor_get(x_13, 7); +x_35 = lean_ctor_get(x_13, 8); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_13); +x_36 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_34, x_1, x_2); +x_37 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set(x_37, 3, x_30); +lean_ctor_set(x_37, 4, x_31); +lean_ctor_set(x_37, 5, x_32); +lean_ctor_set(x_37, 6, x_33); +lean_ctor_set(x_37, 7, x_36); +lean_ctor_set(x_37, 8, x_35); +lean_ctor_set(x_12, 0, x_37); +x_38 = lean_st_ref_set(x_7, x_12, x_14); +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); +} +x_41 = lean_box(0); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +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; 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; +x_43 = lean_ctor_get(x_12, 1); +x_44 = lean_ctor_get(x_12, 2); +x_45 = lean_ctor_get(x_12, 3); +x_46 = lean_ctor_get(x_12, 4); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_12); +x_47 = lean_ctor_get(x_13, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_13, 1); +lean_inc(x_48); +x_49 = lean_ctor_get(x_13, 2); +lean_inc(x_49); +x_50 = lean_ctor_get(x_13, 3); +lean_inc(x_50); +x_51 = lean_ctor_get(x_13, 4); +lean_inc(x_51); +x_52 = lean_ctor_get(x_13, 5); +lean_inc(x_52); +x_53 = lean_ctor_get(x_13, 6); +lean_inc(x_53); +x_54 = lean_ctor_get(x_13, 7); +lean_inc(x_54); +x_55 = lean_ctor_get(x_13, 8); +lean_inc(x_55); +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_56 = x_13; +} else { + lean_dec_ref(x_13); + x_56 = lean_box(0); +} +x_57 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_54, x_1, x_2); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 9, 0); +} else { + x_58 = x_56; +} +lean_ctor_set(x_58, 0, x_47); +lean_ctor_set(x_58, 1, x_48); +lean_ctor_set(x_58, 2, x_49); +lean_ctor_set(x_58, 3, x_50); +lean_ctor_set(x_58, 4, x_51); +lean_ctor_set(x_58, 5, x_52); +lean_ctor_set(x_58, 6, x_53); +lean_ctor_set(x_58, 7, x_57); +lean_ctor_set(x_58, 8, x_55); +x_59 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +lean_ctor_set(x_59, 2, x_44); +lean_ctor_set(x_59, 3, x_45); +lean_ctor_set(x_59, 4, x_46); +x_60 = lean_st_ref_set(x_7, x_59, x_14); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_62 = x_60; +} else { + lean_dec_ref(x_60); + x_62 = lean_box(0); +} +x_63 = lean_box(0); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_61); +return x_64; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_FVarId_getDecl(x_1, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25) { +_start: +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_LocalDecl_type(x_17); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_26); +x_27 = l_Lean_Meta_isProp(x_26, x_21, x_22, x_23, x_24, x_25); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +uint8_t x_30; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_32, 0, x_1); +lean_ctor_set(x_32, 1, x_2); +lean_ctor_set(x_32, 2, x_3); +lean_ctor_set(x_32, 3, x_4); +lean_ctor_set(x_32, 4, x_5); +lean_ctor_set(x_32, 5, x_6); +lean_ctor_set(x_32, 6, x_8); +lean_ctor_set(x_32, 7, x_9); +lean_ctor_set(x_32, 8, x_10); +lean_ctor_set(x_32, 9, x_11); +lean_ctor_set(x_32, 10, x_12); +lean_ctor_set(x_32, 11, x_13); +lean_ctor_set(x_32, 12, x_14); +lean_ctor_set(x_32, 13, x_15); +lean_ctor_set_uint8(x_32, sizeof(void*)*14, x_7); +x_33 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_33, 0, x_16); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_27, 0, x_33); +return x_27; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_dec(x_27); +x_35 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_2); +lean_ctor_set(x_35, 2, x_3); +lean_ctor_set(x_35, 3, x_4); +lean_ctor_set(x_35, 4, x_5); +lean_ctor_set(x_35, 5, x_6); +lean_ctor_set(x_35, 6, x_8); +lean_ctor_set(x_35, 7, x_9); +lean_ctor_set(x_35, 8, x_10); +lean_ctor_set(x_35, 9, x_11); +lean_ctor_set(x_35, 10, x_12); +lean_ctor_set(x_35, 11, x_13); +lean_ctor_set(x_35, 12, x_14); +lean_ctor_set(x_35, 13, x_15); +lean_ctor_set_uint8(x_35, sizeof(void*)*14, x_7); +x_36 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_36, 0, x_16); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_27, 1); +lean_inc(x_38); +lean_dec(x_27); +x_39 = l_Lean_LocalDecl_userName(x_17); +x_40 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_39, x_23, x_24, x_38); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Expr_fvar___override(x_16); +x_44 = l_Lean_MVarId_assert(x_1, x_41, x_26, x_43, x_21, x_22, x_23, x_24, x_42); +if (lean_obj_tag(x_44) == 0) +{ +uint8_t x_45; +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); +x_47 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_2); +lean_ctor_set(x_47, 2, x_3); +lean_ctor_set(x_47, 3, x_4); +lean_ctor_set(x_47, 4, x_5); +lean_ctor_set(x_47, 5, x_6); +lean_ctor_set(x_47, 6, x_8); +lean_ctor_set(x_47, 7, x_9); +lean_ctor_set(x_47, 8, x_10); +lean_ctor_set(x_47, 9, x_11); +lean_ctor_set(x_47, 10, x_12); +lean_ctor_set(x_47, 11, x_13); +lean_ctor_set(x_47, 12, x_14); +lean_ctor_set(x_47, 13, x_15); +lean_ctor_set_uint8(x_47, sizeof(void*)*14, x_7); +x_48 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_48, 0, x_47); +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; lean_object* x_53; +x_49 = lean_ctor_get(x_44, 0); +x_50 = lean_ctor_get(x_44, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_44); +x_51 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_2); +lean_ctor_set(x_51, 2, x_3); +lean_ctor_set(x_51, 3, x_4); +lean_ctor_set(x_51, 4, x_5); +lean_ctor_set(x_51, 5, x_6); +lean_ctor_set(x_51, 6, x_8); +lean_ctor_set(x_51, 7, x_9); +lean_ctor_set(x_51, 8, x_10); +lean_ctor_set(x_51, 9, x_11); +lean_ctor_set(x_51, 10, x_12); +lean_ctor_set(x_51, 11, x_13); +lean_ctor_set(x_51, 12, x_14); +lean_ctor_set(x_51, 13, x_15); +lean_ctor_set_uint8(x_51, sizeof(void*)*14, x_7); +x_52 = lean_alloc_ctor(2, 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_50); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_44); +if (x_54 == 0) +{ +return x_44; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_44, 0); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_44); +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_26); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_16); +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_27); +if (x_58 == 0) +{ +return x_27; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_27, 0); +x_60 = lean_ctor_get(x_27, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_27); +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___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_isProp(x_1, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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 = 0; +x_12 = 1; +x_13 = 1; +x_14 = l_Lean_Meta_mkLambdaFVars(x_1, x_2, x_11, x_12, x_11, x_13, x_6, x_7, x_8, x_9, x_10); +return x_14; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Grind", 5, 5); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("intro_with_eq", 13, 13); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4() { +_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_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2; +x_3 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, 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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_32; uint8_t x_33; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +x_32 = l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__3(x_2, x_23, x_24, x_25, x_26, x_27, x_28, x_29, x_30, x_31); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_35, 0, x_3); +lean_ctor_set(x_35, 1, x_4); +lean_ctor_set(x_35, 2, x_5); +lean_ctor_set(x_35, 3, x_6); +lean_ctor_set(x_35, 4, x_7); +lean_ctor_set(x_35, 5, x_8); +lean_ctor_set(x_35, 6, x_10); +lean_ctor_set(x_35, 7, x_11); +lean_ctor_set(x_35, 8, x_12); +lean_ctor_set(x_35, 9, x_13); +lean_ctor_set(x_35, 10, x_14); +lean_ctor_set(x_35, 11, x_15); +lean_ctor_set(x_35, 12, x_16); +lean_ctor_set(x_35, 13, x_17); +lean_ctor_set_uint8(x_35, sizeof(void*)*14, x_9); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_18); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_32, 0, x_36); +return x_32; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_dec(x_32); +x_38 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_38, 0, x_3); +lean_ctor_set(x_38, 1, x_4); +lean_ctor_set(x_38, 2, x_5); +lean_ctor_set(x_38, 3, x_6); +lean_ctor_set(x_38, 4, x_7); +lean_ctor_set(x_38, 5, x_8); +lean_ctor_set(x_38, 6, x_10); +lean_ctor_set(x_38, 7, x_11); +lean_ctor_set(x_38, 8, x_12); +lean_ctor_set(x_38, 9, x_13); +lean_ctor_set(x_38, 10, x_14); +lean_ctor_set(x_38, 11, x_15); +lean_ctor_set(x_38, 12, x_16); +lean_ctor_set(x_38, 13, x_17); +lean_ctor_set_uint8(x_38, sizeof(void*)*14, x_9); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_18); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_41 = lean_ctor_get(x_1, 0); +x_42 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4; +lean_inc(x_19); +x_43 = l_Lean_Expr_const___override(x_42, x_19); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_23); +lean_ctor_set(x_44, 1, x_19); +lean_inc(x_41); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_41); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_20); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_21); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_22); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_array_mk(x_48); +x_50 = l_Lean_mkAppN(x_43, x_49); +lean_dec(x_49); +x_51 = l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__3(x_2, x_50, x_24, x_25, x_26, x_27, x_28, x_29, x_30, x_31); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +x_54 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_54, 0, x_3); +lean_ctor_set(x_54, 1, x_4); +lean_ctor_set(x_54, 2, x_5); +lean_ctor_set(x_54, 3, x_6); +lean_ctor_set(x_54, 4, x_7); +lean_ctor_set(x_54, 5, x_8); +lean_ctor_set(x_54, 6, x_10); +lean_ctor_set(x_54, 7, x_11); +lean_ctor_set(x_54, 8, x_12); +lean_ctor_set(x_54, 9, x_13); +lean_ctor_set(x_54, 10, x_14); +lean_ctor_set(x_54, 11, x_15); +lean_ctor_set(x_54, 12, x_16); +lean_ctor_set(x_54, 13, x_17); +lean_ctor_set_uint8(x_54, sizeof(void*)*14, x_9); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_18); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set(x_51, 0, x_55); +return x_51; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_51, 1); +lean_inc(x_56); +lean_dec(x_51); +x_57 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_57, 0, x_3); +lean_ctor_set(x_57, 1, x_4); +lean_ctor_set(x_57, 2, x_5); +lean_ctor_set(x_57, 3, x_6); +lean_ctor_set(x_57, 4, x_7); +lean_ctor_set(x_57, 5, x_8); +lean_ctor_set(x_57, 6, x_10); +lean_ctor_set(x_57, 7, x_11); +lean_ctor_set(x_57, 8, x_12); +lean_ctor_set(x_57, 9, x_13); +lean_ctor_set(x_57, 10, x_14); +lean_ctor_set(x_57, 11, x_15); +lean_ctor_set(x_57, 12, x_16); +lean_ctor_set(x_57, 13, x_17); +lean_ctor_set_uint8(x_57, sizeof(void*)*14, x_9); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_18); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_56); +return x_59; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, uint8_t x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25, lean_object* x_26) { +_start: +{ +if (x_18 == 0) +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +x_27 = 1; +x_28 = l_Lean_Meta_intro1Core(x_1, x_27, x_22, x_23, x_24, x_25, x_26); +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; uint8_t x_31; +x_30 = lean_ctor_get(x_28, 0); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 1); +x_33 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_2); +lean_ctor_set(x_33, 2, x_3); +lean_ctor_set(x_33, 3, x_4); +lean_ctor_set(x_33, 4, x_5); +lean_ctor_set(x_33, 5, x_6); +lean_ctor_set(x_33, 6, x_8); +lean_ctor_set(x_33, 7, x_9); +lean_ctor_set(x_33, 8, x_10); +lean_ctor_set(x_33, 9, x_11); +lean_ctor_set(x_33, 10, x_12); +lean_ctor_set(x_33, 11, x_13); +lean_ctor_set(x_33, 12, x_14); +lean_ctor_set(x_33, 13, x_15); +lean_ctor_set_uint8(x_33, sizeof(void*)*14, x_7); +lean_ctor_set_tag(x_30, 3); +lean_ctor_set(x_30, 1, x_33); +return x_28; +} +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_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +x_36 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_2); +lean_ctor_set(x_36, 2, x_3); +lean_ctor_set(x_36, 3, x_4); +lean_ctor_set(x_36, 4, x_5); +lean_ctor_set(x_36, 5, x_6); +lean_ctor_set(x_36, 6, x_8); +lean_ctor_set(x_36, 7, x_9); +lean_ctor_set(x_36, 8, x_10); +lean_ctor_set(x_36, 9, x_11); +lean_ctor_set(x_36, 10, x_12); +lean_ctor_set(x_36, 11, x_13); +lean_ctor_set(x_36, 12, x_14); +lean_ctor_set(x_36, 13, x_15); +lean_ctor_set_uint8(x_36, sizeof(void*)*14, x_7); +x_37 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_28, 0, x_37); +return x_28; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_38 = lean_ctor_get(x_28, 0); +x_39 = lean_ctor_get(x_28, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_28); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_42 = x_38; +} else { + lean_dec_ref(x_38); + x_42 = lean_box(0); +} +x_43 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_2); +lean_ctor_set(x_43, 2, x_3); +lean_ctor_set(x_43, 3, x_4); +lean_ctor_set(x_43, 4, x_5); +lean_ctor_set(x_43, 5, x_6); +lean_ctor_set(x_43, 6, x_8); +lean_ctor_set(x_43, 7, x_9); +lean_ctor_set(x_43, 8, x_10); +lean_ctor_set(x_43, 9, x_11); +lean_ctor_set(x_43, 10, x_12); +lean_ctor_set(x_43, 11, x_13); +lean_ctor_set(x_43, 12, x_14); +lean_ctor_set(x_43, 13, x_15); +lean_ctor_set_uint8(x_43, sizeof(void*)*14, x_7); +if (lean_is_scalar(x_42)) { + x_44 = lean_alloc_ctor(3, 2, 0); +} else { + x_44 = x_42; + lean_ctor_set_tag(x_44, 3); +} +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_39); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_46 = !lean_is_exclusive(x_28); +if (x_46 == 0) +{ +return x_28; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_28, 0); +x_48 = lean_ctor_get(x_28, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_28); +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_50; +lean_inc(x_1); +x_50 = l_Lean_MVarId_getTag(x_1, x_22, x_23, x_24, x_25, x_26); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* 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(x_50); +x_53 = l_Lean_Expr_bindingBody_x21(x_16); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_20); +lean_inc(x_17); +x_54 = l_Lean_Meta_Grind_simp(x_17, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_52); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__1(x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_56); +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(x_57); +x_60 = lean_ctor_get(x_22, 2); +lean_inc(x_60); +x_61 = l_Lean_Expr_bindingName_x21(x_16); +x_62 = lean_ctor_get(x_55, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_55, 1); +lean_inc(x_63); +lean_dec(x_55); +x_64 = l_Lean_Expr_bindingInfo_x21(x_16); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +x_66 = 0; +lean_inc(x_62); +lean_inc(x_58); +x_67 = l_Lean_LocalContext_mkLocalDecl(x_60, x_58, x_61, x_62, x_65, x_66); +x_68 = l_Lean_Meta_getLocalInstances(x_22, x_23, x_24, x_25, x_59); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = 2; +x_72 = lean_unsigned_to_nat(0u); +lean_inc(x_53); +x_73 = l_Lean_Meta_mkFreshExprMVarAt(x_67, x_69, x_53, x_71, x_51, x_72, x_22, x_23, x_24, x_25, x_70); +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; 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_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); +x_77 = l_Lean_Expr_mvarId_x21(x_75); +lean_inc(x_58); +x_78 = l_Lean_Expr_fvar___override(x_58); +x_79 = lean_box(0); +lean_ctor_set_tag(x_73, 1); +lean_ctor_set(x_73, 1, x_79); +lean_ctor_set(x_73, 0, x_78); +x_80 = lean_array_mk(x_73); +x_81 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__4___boxed), 10, 2); +lean_closure_set(x_81, 0, x_80); +lean_closure_set(x_81, 1, x_75); +x_82 = lean_box(x_7); +lean_inc(x_77); +x_83 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___boxed), 31, 22); +lean_closure_set(x_83, 0, x_63); +lean_closure_set(x_83, 1, x_1); +lean_closure_set(x_83, 2, x_77); +lean_closure_set(x_83, 3, x_2); +lean_closure_set(x_83, 4, x_3); +lean_closure_set(x_83, 5, x_4); +lean_closure_set(x_83, 6, x_5); +lean_closure_set(x_83, 7, x_6); +lean_closure_set(x_83, 8, x_82); +lean_closure_set(x_83, 9, x_8); +lean_closure_set(x_83, 10, x_9); +lean_closure_set(x_83, 11, x_10); +lean_closure_set(x_83, 12, x_11); +lean_closure_set(x_83, 13, x_12); +lean_closure_set(x_83, 14, x_13); +lean_closure_set(x_83, 15, x_14); +lean_closure_set(x_83, 16, x_15); +lean_closure_set(x_83, 17, x_58); +lean_closure_set(x_83, 18, x_79); +lean_closure_set(x_83, 19, x_53); +lean_closure_set(x_83, 20, x_62); +lean_closure_set(x_83, 21, x_17); +x_84 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_84, 0, x_81); +lean_closure_set(x_84, 1, x_83); +x_85 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_77, x_84, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_76); +return x_85; +} +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; +x_86 = lean_ctor_get(x_73, 0); +x_87 = lean_ctor_get(x_73, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_73); +x_88 = l_Lean_Expr_mvarId_x21(x_86); +lean_inc(x_58); +x_89 = l_Lean_Expr_fvar___override(x_58); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_array_mk(x_91); +x_93 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__4___boxed), 10, 2); +lean_closure_set(x_93, 0, x_92); +lean_closure_set(x_93, 1, x_86); +x_94 = lean_box(x_7); +lean_inc(x_88); +x_95 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___boxed), 31, 22); +lean_closure_set(x_95, 0, x_63); +lean_closure_set(x_95, 1, x_1); +lean_closure_set(x_95, 2, x_88); +lean_closure_set(x_95, 3, x_2); +lean_closure_set(x_95, 4, x_3); +lean_closure_set(x_95, 5, x_4); +lean_closure_set(x_95, 6, x_5); +lean_closure_set(x_95, 7, x_6); +lean_closure_set(x_95, 8, x_94); +lean_closure_set(x_95, 9, x_8); +lean_closure_set(x_95, 10, x_9); +lean_closure_set(x_95, 11, x_10); +lean_closure_set(x_95, 12, x_11); +lean_closure_set(x_95, 13, x_12); +lean_closure_set(x_95, 14, x_13); +lean_closure_set(x_95, 15, x_14); +lean_closure_set(x_95, 16, x_15); +lean_closure_set(x_95, 17, x_58); +lean_closure_set(x_95, 18, x_90); +lean_closure_set(x_95, 19, x_53); +lean_closure_set(x_95, 20, x_62); +lean_closure_set(x_95, 21, x_17); +x_96 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_96, 0, x_93); +lean_closure_set(x_96, 1, x_95); +x_97 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_88, x_96, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_87); +return x_97; +} +} +else +{ +uint8_t x_98; +lean_dec(x_53); +lean_dec(x_51); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = !lean_is_exclusive(x_54); +if (x_98 == 0) +{ +return x_54; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_54, 0); +x_100 = lean_ctor_get(x_54, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_54); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; +} +} +} +else +{ +uint8_t x_102; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_15); +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(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_102 = !lean_is_exclusive(x_50); +if (x_102 == 0) +{ +return x_50; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_50, 0); +x_104 = lean_ctor_get(x_50, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_50); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 2); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 3); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 4); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 5); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_17 = lean_ctor_get(x_1, 6); +lean_inc(x_17); +x_18 = lean_ctor_get(x_1, 7); +lean_inc(x_18); +x_19 = lean_ctor_get(x_1, 8); +lean_inc(x_19); +x_20 = lean_ctor_get(x_1, 9); +lean_inc(x_20); +x_21 = lean_ctor_get(x_1, 10); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 11); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 12); +lean_inc(x_23); +x_24 = lean_ctor_get(x_1, 13); +lean_inc(x_24); +lean_dec(x_1); +lean_inc(x_10); +x_25 = l_Lean_MVarId_getType(x_10, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_46; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_46 = l_Lean_Expr_isArrow(x_27); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Expr_isLet(x_27); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Expr_isForall(x_27); +lean_dec(x_27); +if (x_48 == 0) +{ +lean_object* x_49; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_49 = lean_box(0); +lean_ctor_set(x_25, 0, x_49); +return x_25; +} +else +{ +lean_object* x_50; +lean_free_object(x_25); +x_50 = lean_box(0); +x_29 = x_50; +goto block_45; +} +} +else +{ +lean_object* x_51; +lean_free_object(x_25); +lean_dec(x_27); +x_51 = lean_box(0); +x_29 = x_51; +goto block_45; +} +} +else +{ +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_free_object(x_25); +x_52 = l_Lean_Expr_bindingDomain_x21(x_27); +lean_inc(x_52); +x_53 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3___boxed), 9, 1); +lean_closure_set(x_53, 0, x_52); +x_54 = lean_box(x_16); +lean_inc(x_10); +x_55 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__6___boxed), 26, 17); +lean_closure_set(x_55, 0, x_10); +lean_closure_set(x_55, 1, x_11); +lean_closure_set(x_55, 2, x_12); +lean_closure_set(x_55, 3, x_13); +lean_closure_set(x_55, 4, x_14); +lean_closure_set(x_55, 5, x_15); +lean_closure_set(x_55, 6, x_54); +lean_closure_set(x_55, 7, x_17); +lean_closure_set(x_55, 8, x_18); +lean_closure_set(x_55, 9, x_19); +lean_closure_set(x_55, 10, x_20); +lean_closure_set(x_55, 11, x_21); +lean_closure_set(x_55, 12, x_22); +lean_closure_set(x_55, 13, x_23); +lean_closure_set(x_55, 14, x_24); +lean_closure_set(x_55, 15, x_27); +lean_closure_set(x_55, 16, x_52); +x_56 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_56, 0, x_53); +lean_closure_set(x_56, 1, x_55); +x_57 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_10, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +return x_57; +} +block_45: +{ +uint8_t x_30; lean_object* x_31; +lean_dec(x_29); +x_30 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_31 = l_Lean_Meta_intro1Core(x_10, x_30, x_5, x_6, x_7, x_8, x_28); +if (lean_obj_tag(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; lean_object* x_40; +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(x_31); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +lean_inc(x_34); +x_36 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1___boxed), 9, 1); +lean_closure_set(x_36, 0, x_34); +x_37 = lean_box(x_16); +lean_inc(x_35); +x_38 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__2___boxed), 25, 16); +lean_closure_set(x_38, 0, x_35); +lean_closure_set(x_38, 1, x_11); +lean_closure_set(x_38, 2, x_12); +lean_closure_set(x_38, 3, x_13); +lean_closure_set(x_38, 4, x_14); +lean_closure_set(x_38, 5, x_15); +lean_closure_set(x_38, 6, x_37); +lean_closure_set(x_38, 7, x_17); +lean_closure_set(x_38, 8, x_18); +lean_closure_set(x_38, 9, x_19); +lean_closure_set(x_38, 10, x_20); +lean_closure_set(x_38, 11, x_21); +lean_closure_set(x_38, 12, x_22); +lean_closure_set(x_38, 13, x_23); +lean_closure_set(x_38, 14, x_24); +lean_closure_set(x_38, 15, x_34); +x_39 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_39, 0, x_36); +lean_closure_set(x_39, 1, x_38); +x_40 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_35, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); +return x_40; +} +else +{ +uint8_t x_41; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_41 = !lean_is_exclusive(x_31); +if (x_41 == 0) +{ +return x_31; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_31, 0); +x_43 = lean_ctor_get(x_31, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_31); +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_58; lean_object* x_59; lean_object* x_60; uint8_t x_77; +x_58 = lean_ctor_get(x_25, 0); +x_59 = lean_ctor_get(x_25, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_25); +x_77 = l_Lean_Expr_isArrow(x_58); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = l_Lean_Expr_isLet(x_58); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = l_Lean_Expr_isForall(x_58); +lean_dec(x_58); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_80 = lean_box(0); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_59); +return x_81; +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_60 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +lean_dec(x_58); +x_83 = lean_box(0); +x_60 = x_83; +goto block_76; +} +} +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; +x_84 = l_Lean_Expr_bindingDomain_x21(x_58); +lean_inc(x_84); +x_85 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3___boxed), 9, 1); +lean_closure_set(x_85, 0, x_84); +x_86 = lean_box(x_16); +lean_inc(x_10); +x_87 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__6___boxed), 26, 17); +lean_closure_set(x_87, 0, x_10); +lean_closure_set(x_87, 1, x_11); +lean_closure_set(x_87, 2, x_12); +lean_closure_set(x_87, 3, x_13); +lean_closure_set(x_87, 4, x_14); +lean_closure_set(x_87, 5, x_15); +lean_closure_set(x_87, 6, x_86); +lean_closure_set(x_87, 7, x_17); +lean_closure_set(x_87, 8, x_18); +lean_closure_set(x_87, 9, x_19); +lean_closure_set(x_87, 10, x_20); +lean_closure_set(x_87, 11, x_21); +lean_closure_set(x_87, 12, x_22); +lean_closure_set(x_87, 13, x_23); +lean_closure_set(x_87, 14, x_24); +lean_closure_set(x_87, 15, x_58); +lean_closure_set(x_87, 16, x_84); +x_88 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_88, 0, x_85); +lean_closure_set(x_88, 1, x_87); +x_89 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_10, x_88, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); +return x_89; +} +block_76: +{ +uint8_t x_61; lean_object* x_62; +lean_dec(x_60); +x_61 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_62 = l_Lean_Meta_intro1Core(x_10, x_61, x_5, x_6, x_7, x_8, x_59); +if (lean_obj_tag(x_62) == 0) +{ +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_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +lean_inc(x_65); +x_67 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1___boxed), 9, 1); +lean_closure_set(x_67, 0, x_65); +x_68 = lean_box(x_16); +lean_inc(x_66); +x_69 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__2___boxed), 25, 16); +lean_closure_set(x_69, 0, x_66); +lean_closure_set(x_69, 1, x_11); +lean_closure_set(x_69, 2, x_12); +lean_closure_set(x_69, 3, x_13); +lean_closure_set(x_69, 4, x_14); +lean_closure_set(x_69, 5, x_15); +lean_closure_set(x_69, 6, x_68); +lean_closure_set(x_69, 7, x_17); +lean_closure_set(x_69, 8, x_18); +lean_closure_set(x_69, 9, x_19); +lean_closure_set(x_69, 10, x_20); +lean_closure_set(x_69, 11, x_21); +lean_closure_set(x_69, 12, x_22); +lean_closure_set(x_69, 13, x_23); +lean_closure_set(x_69, 14, x_24); +lean_closure_set(x_69, 15, x_65); +x_70 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_70, 0, x_67); +lean_closure_set(x_70, 1, x_69); +x_71 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_66, x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_64); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_72 = lean_ctor_get(x_62, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_62, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_74 = x_62; +} else { + lean_dec_ref(x_62); + 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_90; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_90 = !lean_is_exclusive(x_25); +if (x_90 == 0) +{ +return x_25; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_25, 0); +x_92 = lean_ctor_get(x_25, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_25); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_mkFreshId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_mkFreshFVarId___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_MVarId_assign___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___spec__3(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(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; +_start: +{ +uint8_t x_26; lean_object* x_27; +x_26 = lean_unbox(x_7); +lean_dec(x_7); +x_27 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +return x_27; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_Intro_0__Lean_Meta_Grind_introNext___lambda__4(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(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_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; +lean_object* x_26 = _args[25]; +lean_object* x_27 = _args[26]; +lean_object* x_28 = _args[27]; +lean_object* x_29 = _args[28]; +lean_object* x_30 = _args[29]; +lean_object* x_31 = _args[30]; +_start: +{ +uint8_t x_32; lean_object* x_33; +x_32 = lean_unbox(x_9); +lean_dec(x_9); +x_33 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27, x_28, x_29, x_30, x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_1); +return x_33; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__6___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; +lean_object* x_26 = _args[25]; +_start: +{ +uint8_t x_27; uint8_t x_28; lean_object* x_29; +x_27 = lean_unbox(x_7); +lean_dec(x_7); +x_28 = lean_unbox(x_18); +lean_dec(x_18); +x_29 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_28, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); +lean_dec(x_16); +return x_29; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_isCasesCandidate(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_FVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = l_Lean_Expr_getAppFn(x_9); +lean_dec(x_9); +if (lean_obj_tag(x_11) == 4) +{ +lean_object* x_12; lean_object* x_13; +lean_free_object(x_7); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Meta_Grind_isGrindCasesTarget(x_12, x_4, x_5, x_10); +lean_dec(x_12); +return x_13; +} +else +{ +uint8_t x_14; lean_object* x_15; +lean_dec(x_11); +x_14 = 0; +x_15 = lean_box(x_14); +lean_ctor_set(x_7, 0, x_15); +return x_7; +} +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_18 = l_Lean_Expr_getAppFn(x_16); +lean_dec(x_16); +if (lean_obj_tag(x_18) == 4) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Meta_Grind_isGrindCasesTarget(x_19, x_4, x_5, x_17); +lean_dec(x_19); +return x_20; +} +else +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +x_21 = 0; +x_22 = lean_box(x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_17); +return x_23; +} +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_7); +if (x_24 == 0) +{ +return x_7; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_7); +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; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_isCasesCandidate___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_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_isCasesCandidate(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; +x_4 = l_List_reverse___rarg(x_3); +return x_4; +} +else +{ +uint8_t x_5; +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; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_ctor_get(x_1, 2); +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get(x_1, 4); +x_12 = lean_ctor_get(x_1, 5); +x_13 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_14 = lean_ctor_get(x_1, 6); +x_15 = lean_ctor_get(x_1, 7); +x_16 = lean_ctor_get(x_1, 8); +x_17 = lean_ctor_get(x_1, 9); +x_18 = lean_ctor_get(x_1, 10); +x_19 = lean_ctor_get(x_1, 11); +x_20 = lean_ctor_get(x_1, 12); +x_21 = lean_ctor_get(x_1, 13); +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_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_22 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_22, 0, x_6); +lean_ctor_set(x_22, 1, x_8); +lean_ctor_set(x_22, 2, x_9); +lean_ctor_set(x_22, 3, x_10); +lean_ctor_set(x_22, 4, x_11); +lean_ctor_set(x_22, 5, x_12); +lean_ctor_set(x_22, 6, x_14); +lean_ctor_set(x_22, 7, x_15); +lean_ctor_set(x_22, 8, x_16); +lean_ctor_set(x_22, 9, x_17); +lean_ctor_set(x_22, 10, x_18); +lean_ctor_set(x_22, 11, x_19); +lean_ctor_set(x_22, 12, x_20); +lean_ctor_set(x_22, 13, x_21); +lean_ctor_set_uint8(x_22, sizeof(void*)*14, x_13); +lean_ctor_set(x_2, 1, x_3); +lean_ctor_set(x_2, 0, x_22); +{ +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_ctor_get(x_2, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_2); +x_26 = lean_ctor_get(x_1, 1); +x_27 = lean_ctor_get(x_1, 2); +x_28 = lean_ctor_get(x_1, 3); +x_29 = lean_ctor_get(x_1, 4); +x_30 = lean_ctor_get(x_1, 5); +x_31 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_32 = lean_ctor_get(x_1, 6); +x_33 = lean_ctor_get(x_1, 7); +x_34 = lean_ctor_get(x_1, 8); +x_35 = lean_ctor_get(x_1, 9); +x_36 = lean_ctor_get(x_1, 10); +x_37 = lean_ctor_get(x_1, 11); +x_38 = lean_ctor_get(x_1, 12); +x_39 = lean_ctor_get(x_1, 13); +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_inc(x_33); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +x_40 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_40, 0, x_24); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_30); +lean_ctor_set(x_40, 6, x_32); +lean_ctor_set(x_40, 7, x_33); +lean_ctor_set(x_40, 8, x_34); +lean_ctor_set(x_40, 9, x_35); +lean_ctor_set(x_40, 10, x_36); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set(x_40, 12, x_38); +lean_ctor_set(x_40, 13, x_39); +lean_ctor_set_uint8(x_40, sizeof(void*)*14, x_31); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_3); +x_2 = x_25; +x_3 = x_41; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_4); +lean_inc(x_1); +x_9 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_isCasesCandidate(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_9, 0); +lean_dec(x_13); +x_14 = lean_box(0); +lean_ctor_set(x_9, 0, x_14); +return x_9; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_dec(x_9); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_dec(x_9); +x_19 = l_Lean_Meta_Grind_cases(x_2, x_1, x_4, x_5, x_6, x_7, x_18); +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; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_box(0); +x_23 = l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1(x_3, x_21, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +else +{ +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_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_box(0); +x_28 = l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1(x_3, x_25, x_27); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_26); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_19); +if (x_31 == 0) +{ +return x_19; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_19, 0); +x_33 = lean_ctor_get(x_19, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_19); +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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_9); +if (x_35 == 0) +{ +return x_9; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_9, 0); +x_37 = lean_ctor_get(x_9, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_9); +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; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_inc(x_8); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1___boxed), 8, 3); +lean_closure_set(x_9, 0, x_2); +lean_closure_set(x_9, 1, x_8); +lean_closure_set(x_9, 2, x_1); +x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_mapTR_loop___at___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___spec__1(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyInjection_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) { +_start: +{ +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; 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_1, 0); +x_10 = lean_ctor_get(x_1, 1); +x_11 = lean_ctor_get(x_1, 2); +x_12 = lean_ctor_get(x_1, 3); +x_13 = lean_ctor_get(x_1, 4); +x_14 = lean_ctor_get(x_1, 5); +x_15 = lean_ctor_get(x_1, 6); +x_16 = lean_ctor_get(x_1, 7); +x_17 = lean_ctor_get(x_1, 8); +x_18 = lean_ctor_get(x_1, 9); +x_19 = lean_ctor_get(x_1, 10); +x_20 = lean_ctor_get(x_1, 11); +x_21 = lean_ctor_get(x_1, 12); +x_22 = lean_ctor_get(x_1, 13); +x_23 = l_Lean_Meta_Grind_injection_x3f(x_9, x_2, x_3, x_4, x_5, x_6, x_7); +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_free_object(x_1); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +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; uint8_t x_33; +x_32 = lean_ctor_get(x_23, 0); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_24); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_24, 0); +lean_ctor_set(x_1, 0, x_34); +lean_ctor_set(x_24, 0, x_1); +return x_23; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_24, 0); +lean_inc(x_35); +lean_dec(x_24); +lean_ctor_set(x_1, 0, x_35); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_23, 0, x_36); +return x_23; +} +} +else +{ +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_23, 1); +lean_inc(x_37); +lean_dec(x_23); +x_38 = lean_ctor_get(x_24, 0); +lean_inc(x_38); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_39 = x_24; +} else { + lean_dec_ref(x_24); + x_39 = lean_box(0); +} +lean_ctor_set(x_1, 0, x_38); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 1, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_1); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_37); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_free_object(x_1); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_42 = !lean_is_exclusive(x_23); +if (x_42 == 0) +{ +return x_23; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_23, 0); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_23); +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 +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_46 = lean_ctor_get(x_1, 0); +x_47 = lean_ctor_get(x_1, 1); +x_48 = lean_ctor_get(x_1, 2); +x_49 = lean_ctor_get(x_1, 3); +x_50 = lean_ctor_get(x_1, 4); +x_51 = lean_ctor_get(x_1, 5); +x_52 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_53 = lean_ctor_get(x_1, 6); +x_54 = lean_ctor_get(x_1, 7); +x_55 = lean_ctor_get(x_1, 8); +x_56 = lean_ctor_get(x_1, 9); +x_57 = lean_ctor_get(x_1, 10); +x_58 = lean_ctor_get(x_1, 11); +x_59 = lean_ctor_get(x_1, 12); +x_60 = lean_ctor_get(x_1, 13); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +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_dec(x_1); +x_61 = l_Lean_Meta_Grind_injection_x3f(x_46, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_47); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_64 = x_61; +} else { + lean_dec_ref(x_61); + x_64 = lean_box(0); +} +x_65 = lean_box(0); +if (lean_is_scalar(x_64)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_64; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; +} +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_object* x_73; +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_68 = x_61; +} else { + lean_dec_ref(x_61); + x_68 = lean_box(0); +} +x_69 = lean_ctor_get(x_62, 0); +lean_inc(x_69); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + x_70 = x_62; +} else { + lean_dec_ref(x_62); + x_70 = lean_box(0); +} +x_71 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_47); +lean_ctor_set(x_71, 2, x_48); +lean_ctor_set(x_71, 3, x_49); +lean_ctor_set(x_71, 4, x_50); +lean_ctor_set(x_71, 5, x_51); +lean_ctor_set(x_71, 6, x_53); +lean_ctor_set(x_71, 7, x_54); +lean_ctor_set(x_71, 8, x_55); +lean_ctor_set(x_71, 9, x_56); +lean_ctor_set(x_71, 10, x_57); +lean_ctor_set(x_71, 11, x_58); +lean_ctor_set(x_71, 12, x_59); +lean_ctor_set(x_71, 13, x_60); +lean_ctor_set_uint8(x_71, sizeof(void*)*14, x_52); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(1, 1, 0); +} else { + x_72 = x_70; +} +lean_ctor_set(x_72, 0, x_71); +if (lean_is_scalar(x_68)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_68; +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_67); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_47); +x_74 = lean_ctor_get(x_61, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_61, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_76 = x_61; +} else { + lean_dec_ref(x_61); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_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) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; lean_object* x_13; +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_1); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_dec(x_2); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_16 = l_Lean_Meta_Grind_intros_go(x_1, x_14, 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; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_2 = x_15; +x_11 = x_17; +goto _start; +} +else +{ +uint8_t x_19; +lean_dec(x_15); +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_1); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +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_dec(x_16); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_go___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) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; lean_object* x_13; +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_1); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_15); +lean_dec(x_2); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_16 = l_Lean_Meta_Grind_intros_go(x_1, x_14, 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; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_2 = x_15; +x_11 = x_17; +goto _start; +} +else +{ +uint8_t x_19; +lean_dec(x_15); +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_1); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +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_dec(x_16); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_3); +x_12 = l_Lean_Meta_Grind_addHypothesis(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; uint8_t x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_get(x_3, x_13); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_14, 1); +x_17 = lean_st_ref_get(x_3, x_16); +lean_dec(x_3); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_17, 0); +lean_ctor_set(x_14, 1, x_19); +lean_ctor_set(x_17, 0, x_14); +return x_17; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_17); +lean_ctor_set(x_14, 1, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_14); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +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; +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_st_ref_get(x_3, x_24); +lean_dec(x_3); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_28 = x_25; +} else { + lean_dec_ref(x_25); + x_28 = lean_box(0); +} +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_26); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_12); +if (x_31 == 0) +{ +return x_12; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_12, 0); +x_33 = lean_ctor_get(x_12, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_12); +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_Meta_Grind_intros_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_intros_go___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_intros_go___lambda__3___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21, lean_object* x_22, lean_object* x_23, lean_object* x_24, lean_object* x_25, lean_object* x_26, lean_object* x_27) { +_start: +{ +lean_object* x_28; +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_1); +x_28 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext(x_1, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +switch (lean_obj_tag(x_29)) { +case 0: +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +x_31 = l_Lean_MVarId_byContra_x3f(x_2, x_23, x_24, x_25, x_26, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_st_ref_take(x_19, x_33); +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(x_34); +x_37 = lean_array_push(x_35, x_1); +x_38 = lean_st_ref_set(x_19, x_37, x_36); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +x_41 = lean_box(0); +lean_ctor_set(x_38, 0, x_41); +return x_38; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_dec(x_38); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_1); +x_45 = lean_ctor_get(x_31, 1); +lean_inc(x_45); +lean_dec(x_31); +x_46 = lean_ctor_get(x_32, 0); +lean_inc(x_46); +lean_dec(x_32); +x_47 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_3); +lean_ctor_set(x_47, 2, x_4); +lean_ctor_set(x_47, 3, x_5); +lean_ctor_set(x_47, 4, x_6); +lean_ctor_set(x_47, 5, x_7); +lean_ctor_set(x_47, 6, x_9); +lean_ctor_set(x_47, 7, x_10); +lean_ctor_set(x_47, 8, x_11); +lean_ctor_set(x_47, 9, x_12); +lean_ctor_set(x_47, 10, x_13); +lean_ctor_set(x_47, 11, x_14); +lean_ctor_set(x_47, 12, x_15); +lean_ctor_set(x_47, 13, x_16); +lean_ctor_set_uint8(x_47, sizeof(void*)*14, x_8); +x_48 = l_Lean_Meta_Grind_intros_go(x_17, x_47, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_45); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_31); +if (x_49 == 0) +{ +return x_31; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_31, 0); +x_51 = lean_ctor_get(x_31, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_31); +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; +} +} +} +case 1: +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_ctor_get(x_28, 1); +lean_inc(x_53); +lean_dec(x_28); +x_54 = lean_ctor_get(x_29, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_29, 1); +lean_inc(x_55); +lean_dec(x_29); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_54); +lean_inc(x_55); +x_56 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f(x_55, x_54, x_23, x_24, x_25, x_26, x_53); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_54); +lean_inc(x_55); +x_59 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyInjection_x3f(x_55, x_54, x_23, x_24, x_25, x_26, x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_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_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_ctor_get(x_55, 0); +lean_inc(x_62); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_intros_go___lambda__1___boxed), 9, 1); +lean_closure_set(x_63, 0, x_55); +lean_inc(x_17); +x_64 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_intros_go___lambda__2), 11, 2); +lean_closure_set(x_64, 0, x_54); +lean_closure_set(x_64, 1, x_17); +x_65 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_65, 0, x_63); +lean_closure_set(x_65, 1, x_64); +x_66 = l_Lean_Meta_Grind_intros_go___lambda__4___closed__1; +x_67 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_67, 0, x_65); +lean_closure_set(x_67, 1, x_66); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +x_68 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_62, x_67, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_61); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l_Lean_Meta_Grind_intros_go(x_17, x_69, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_70); +return x_71; +} +else +{ +uint8_t x_72; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +x_72 = !lean_is_exclusive(x_68); +if (x_72 == 0) +{ +return x_68; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_68, 0); +x_74 = lean_ctor_get(x_68, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_68); +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; +} +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_55); +lean_dec(x_54); +x_76 = lean_ctor_get(x_59, 1); +lean_inc(x_76); +lean_dec(x_59); +x_77 = lean_ctor_get(x_60, 0); +lean_inc(x_77); +lean_dec(x_60); +x_78 = l_Lean_Meta_Grind_intros_go(x_17, x_77, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_76); +return x_78; +} +} +else +{ +uint8_t x_79; +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +x_79 = !lean_is_exclusive(x_59); +if (x_79 == 0) +{ +return x_59; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_59, 0); +x_81 = lean_ctor_get(x_59, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_59); +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; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_55); +lean_dec(x_54); +x_83 = lean_ctor_get(x_56, 1); +lean_inc(x_83); +lean_dec(x_56); +x_84 = lean_ctor_get(x_57, 0); +lean_inc(x_84); +lean_dec(x_57); +x_85 = l_List_forM___at_Lean_Meta_Grind_intros_go___spec__1(x_17, x_84, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_83); +return x_85; +} +} +else +{ +uint8_t x_86; +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +x_86 = !lean_is_exclusive(x_56); +if (x_86 == 0) +{ +return x_56; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_56, 0); +x_88 = lean_ctor_get(x_56, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_56); +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; +} +} +} +case 2: +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_90 = lean_ctor_get(x_28, 1); +lean_inc(x_90); +lean_dec(x_28); +x_91 = lean_ctor_get(x_29, 0); +lean_inc(x_91); +lean_dec(x_29); +x_92 = l_Lean_Meta_Grind_intros_go(x_17, x_91, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_90); +return x_92; +} +default: +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_93 = lean_ctor_get(x_28, 1); +lean_inc(x_93); +lean_dec(x_28); +x_94 = lean_ctor_get(x_29, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_29, 1); +lean_inc(x_95); +lean_dec(x_29); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_95); +x_96 = l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_applyCases_x3f(x_95, x_94, x_23, x_24, x_25, x_26, x_93); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = l_Lean_Meta_Grind_intros_go(x_17, x_95, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_98); +return x_99; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_95); +x_100 = lean_ctor_get(x_96, 1); +lean_inc(x_100); +lean_dec(x_96); +x_101 = lean_ctor_get(x_97, 0); +lean_inc(x_101); +lean_dec(x_97); +x_102 = l_List_forM___at_Lean_Meta_Grind_intros_go___spec__2(x_17, x_101, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_100); +return x_102; +} +} +else +{ +uint8_t x_103; +lean_dec(x_95); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +x_103 = !lean_is_exclusive(x_96); +if (x_103 == 0) +{ +return x_96; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_96, 0); +x_105 = lean_ctor_get(x_96, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_96); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +} +} +else +{ +uint8_t x_107; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_28); +if (x_107 == 0) +{ +return x_28; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_28, 0); +x_109 = lean_ctor_get(x_28, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_28); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_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: +{ +uint8_t x_12; +x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*14); +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; 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_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 3); +lean_inc(x_16); +x_17 = lean_ctor_get(x_2, 4); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 5); +lean_inc(x_18); +x_19 = lean_ctor_get(x_2, 6); +lean_inc(x_19); +x_20 = lean_ctor_get(x_2, 7); +lean_inc(x_20); +x_21 = lean_ctor_get(x_2, 8); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 9); +lean_inc(x_22); +x_23 = lean_ctor_get(x_2, 10); +lean_inc(x_23); +x_24 = lean_ctor_get(x_2, 11); +lean_inc(x_24); +x_25 = lean_ctor_get(x_2, 12); +lean_inc(x_25); +x_26 = lean_ctor_get(x_2, 13); +lean_inc(x_26); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Grind_intros_go___lambda__4(x_2, x_13, x_14, x_15, x_16, x_17, x_18, x_12, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_1, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; +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); +lean_dec(x_1); +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_11); +return x_30; +} +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_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) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forM___at_Lean_Meta_Grind_intros_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); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_intros_go___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) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forM___at_Lean_Meta_Grind_intros_go___spec__2(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_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_intros_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_intros_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_go___lambda__4___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; +lean_object* x_26 = _args[25]; +lean_object* x_27 = _args[26]; +_start: +{ +uint8_t x_28; lean_object* x_29; +x_28 = lean_unbox(x_8); +lean_dec(x_8); +x_29 = l_Lean_Meta_Grind_intros_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27); +lean_dec(x_19); +lean_dec(x_18); +return x_29; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros_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: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_intros_go(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_3); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_intros___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_intros(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; +x_11 = l_Lean_Meta_Grind_intros___closed__1; +x_12 = lean_st_mk_ref(x_11, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Meta_Grind_intros_go(x_2, x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_get(x_13, x_16); +lean_dec(x_13); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_array_to_list(x_19); +lean_ctor_set(x_17, 0, x_20); +return x_17; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_17); +x_23 = lean_array_to_list(x_21); +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_13); +x_25 = !lean_is_exclusive(x_15); +if (x_25 == 0) +{ +return x_15; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_assertAt___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("h", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_assertAt___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_assertAt___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_assertAt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_17; +x_13 = l_Lean_Meta_Grind_assertAt___closed__2; +x_14 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_13, x_10, x_11, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_1); +if (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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_18 = lean_ctor_get(x_1, 0); +x_19 = lean_ctor_get(x_1, 1); +x_20 = lean_ctor_get(x_1, 2); +x_21 = lean_ctor_get(x_1, 3); +x_22 = lean_ctor_get(x_1, 4); +x_23 = lean_ctor_get(x_1, 5); +x_24 = lean_ctor_get(x_1, 6); +x_25 = lean_ctor_get(x_1, 7); +x_26 = lean_ctor_get(x_1, 8); +x_27 = lean_ctor_get(x_1, 9); +x_28 = lean_ctor_get(x_1, 10); +x_29 = lean_ctor_get(x_1, 11); +x_30 = lean_ctor_get(x_1, 12); +x_31 = lean_ctor_get(x_1, 13); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_32 = l_Lean_MVarId_assert(x_18, x_15, x_3, x_2, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +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(x_32); +lean_ctor_set(x_1, 0, x_33); +x_35 = l_Lean_Meta_Grind_intros(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +return x_35; +} +else +{ +uint8_t x_36; +lean_free_object(x_1); +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_11); +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); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +return x_32; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_32, 0); +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_32); +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_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_40 = lean_ctor_get(x_1, 0); +x_41 = lean_ctor_get(x_1, 1); +x_42 = lean_ctor_get(x_1, 2); +x_43 = lean_ctor_get(x_1, 3); +x_44 = lean_ctor_get(x_1, 4); +x_45 = lean_ctor_get(x_1, 5); +x_46 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_47 = lean_ctor_get(x_1, 6); +x_48 = lean_ctor_get(x_1, 7); +x_49 = lean_ctor_get(x_1, 8); +x_50 = lean_ctor_get(x_1, 9); +x_51 = lean_ctor_get(x_1, 10); +x_52 = lean_ctor_get(x_1, 11); +x_53 = lean_ctor_get(x_1, 12); +x_54 = lean_ctor_get(x_1, 13); +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_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_1); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_55 = l_Lean_MVarId_assert(x_40, x_15, x_3, x_2, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +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(x_55); +x_58 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_41); +lean_ctor_set(x_58, 2, x_42); +lean_ctor_set(x_58, 3, x_43); +lean_ctor_set(x_58, 4, x_44); +lean_ctor_set(x_58, 5, x_45); +lean_ctor_set(x_58, 6, x_47); +lean_ctor_set(x_58, 7, x_48); +lean_ctor_set(x_58, 8, x_49); +lean_ctor_set(x_58, 9, x_50); +lean_ctor_set(x_58, 10, x_51); +lean_ctor_set(x_58, 11, x_52); +lean_ctor_set(x_58, 12, x_53); +lean_ctor_set(x_58, 13, x_54); +lean_ctor_set_uint8(x_58, sizeof(void*)*14, x_46); +x_59 = l_Lean_Meta_Grind_intros(x_58, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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_54); +lean_dec(x_53); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_47); +lean_dec(x_45); +lean_dec(x_44); +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_11); +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); +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +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; +} else { + lean_dec_ref(x_55); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_assertNext_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: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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; +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 3); +x_15 = lean_ctor_get(x_1, 4); +x_16 = lean_ctor_get(x_1, 5); +x_17 = lean_ctor_get(x_1, 6); +x_18 = lean_ctor_get(x_1, 7); +x_19 = lean_ctor_get(x_1, 8); +x_20 = lean_ctor_get(x_1, 9); +x_21 = lean_ctor_get(x_1, 10); +x_22 = lean_ctor_get(x_1, 11); +x_23 = lean_ctor_get(x_1, 12); +x_24 = lean_ctor_get(x_1, 13); +x_25 = l_Std_Queue_dequeue_x3f___rarg(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_1); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_9); +return x_27; +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_25); +if (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; +x_29 = lean_ctor_get(x_25, 0); +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(x_29); +lean_ctor_set(x_1, 13, x_31); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +x_34 = lean_ctor_get(x_30, 2); +lean_inc(x_34); +lean_dec(x_30); +x_35 = l_Lean_Meta_Grind_assertAt(x_1, x_32, x_33, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_35) == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_ctor_set(x_25, 0, x_37); +lean_ctor_set(x_35, 0, x_25); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_35, 0); +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_35); +lean_ctor_set(x_25, 0, x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +else +{ +uint8_t x_41; +lean_free_object(x_25); +x_41 = !lean_is_exclusive(x_35); +if (x_41 == 0) +{ +return x_35; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +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_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_25, 0); +lean_inc(x_45); +lean_dec(x_25); +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(x_45); +lean_ctor_set(x_1, 13, x_47); +x_48 = lean_ctor_get(x_46, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_46, 2); +lean_inc(x_50); +lean_dec(x_46); +x_51 = l_Lean_Meta_Grind_assertAt(x_1, x_48, x_49, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_54 = x_51; +} else { + lean_dec_ref(x_51); + x_54 = lean_box(0); +} +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_52); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_51, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_51, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_59 = x_51; +} else { + lean_dec_ref(x_51); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_61 = lean_ctor_get(x_1, 0); +x_62 = lean_ctor_get(x_1, 1); +x_63 = lean_ctor_get(x_1, 2); +x_64 = lean_ctor_get(x_1, 3); +x_65 = lean_ctor_get(x_1, 4); +x_66 = lean_ctor_get(x_1, 5); +x_67 = lean_ctor_get_uint8(x_1, sizeof(void*)*14); +x_68 = lean_ctor_get(x_1, 6); +x_69 = lean_ctor_get(x_1, 7); +x_70 = lean_ctor_get(x_1, 8); +x_71 = lean_ctor_get(x_1, 9); +x_72 = lean_ctor_get(x_1, 10); +x_73 = lean_ctor_get(x_1, 11); +x_74 = lean_ctor_get(x_1, 12); +x_75 = lean_ctor_get(x_1, 13); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_1); +x_76 = l_Std_Queue_dequeue_x3f___rarg(x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_74); +lean_dec(x_73); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +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_77 = lean_box(0); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_9); +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_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + x_80 = x_76; +} else { + lean_dec_ref(x_76); + x_80 = lean_box(0); +} +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_83, 0, x_61); +lean_ctor_set(x_83, 1, x_62); +lean_ctor_set(x_83, 2, x_63); +lean_ctor_set(x_83, 3, x_64); +lean_ctor_set(x_83, 4, x_65); +lean_ctor_set(x_83, 5, x_66); +lean_ctor_set(x_83, 6, x_68); +lean_ctor_set(x_83, 7, x_69); +lean_ctor_set(x_83, 8, x_70); +lean_ctor_set(x_83, 9, x_71); +lean_ctor_set(x_83, 10, x_72); +lean_ctor_set(x_83, 11, x_73); +lean_ctor_set(x_83, 12, x_74); +lean_ctor_set(x_83, 13, x_82); +lean_ctor_set_uint8(x_83, sizeof(void*)*14, x_67); +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_81, 1); +lean_inc(x_85); +x_86 = lean_ctor_get(x_81, 2); +lean_inc(x_86); +lean_dec(x_81); +x_87 = l_Lean_Meta_Grind_assertAt(x_83, x_84, x_85, x_86, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_91 = lean_alloc_ctor(1, 1, 0); +} else { + x_91 = x_80; +} +lean_ctor_set(x_91, 0, x_88); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); +return x_92; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_80); +x_93 = lean_ctor_get(x_87, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_95 = x_87; +} else { + lean_dec_ref(x_87); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_iterate_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: +{ +if (lean_obj_tag(x_2) == 0) +{ +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_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_2); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +lean_inc(x_1); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_14); +x_16 = lean_apply_9(x_1, x_14, 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; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_ctor_set(x_2, 1, x_3); +{ +lean_object* _tmp_1 = x_15; +lean_object* _tmp_2 = x_2; +lean_object* _tmp_10 = x_18; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_11 = _tmp_10; +} +goto _start; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_free_object(x_2); +lean_dec(x_14); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_ctor_get(x_17, 0); +lean_inc(x_21); +lean_dec(x_17); +x_22 = l_List_appendTR___rarg(x_21, x_15); +x_2 = x_22; +x_11 = x_20; +goto _start; +} +} +else +{ +uint8_t x_24; +lean_free_object(x_2); +lean_dec(x_15); +lean_dec(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_3); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +return x_16; +} +else +{ +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_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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_2, 0); +x_29 = lean_ctor_get(x_2, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_2); +lean_inc(x_1); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_28); +x_30 = lean_apply_9(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_3); +x_2 = x_29; +x_3 = x_33; +x_11 = x_32; +goto _start; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_28); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_dec(x_30); +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +lean_dec(x_31); +x_37 = l_List_appendTR___rarg(x_36, x_29); +x_2 = x_37; +x_11 = x_35; +goto _start; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_29); +lean_dec(x_28); +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); +lean_dec(x_1); +x_39 = lean_ctor_get(x_30, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_41 = x_30; +} else { + lean_dec_ref(x_30); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_iterate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Meta_Grind_iterate_go(x_2, x_12, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +} +static lean_object* _init_l_Lean_Meta_Grind_assertAll___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_assertNext_x3f), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_assertAll(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_assertAll___closed__1; +x_11 = l_Lean_Meta_Grind_iterate(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Assert(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_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Injection(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Core(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Intro(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_Init_Grind_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Assert(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); +res = initialize_Lean_Meta_Tactic_Grind_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_Cases(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Injection(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Core(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_instInhabitedIntroResult = _init_l_Lean_Meta_Grind_instInhabitedIntroResult(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedIntroResult); +l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__1); +l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__2); +l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__3); +l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Intro_0__Lean_Meta_Grind_introNext___lambda__5___closed__4); +l_Lean_Meta_Grind_intros_go___lambda__4___closed__1 = _init_l_Lean_Meta_Grind_intros_go___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_intros_go___lambda__4___closed__1); +l_Lean_Meta_Grind_intros___closed__1 = _init_l_Lean_Meta_Grind_intros___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_intros___closed__1); +l_Lean_Meta_Grind_assertAt___closed__1 = _init_l_Lean_Meta_Grind_assertAt___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_assertAt___closed__1); +l_Lean_Meta_Grind_assertAt___closed__2 = _init_l_Lean_Meta_Grind_assertAt___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_assertAt___closed__2); +l_Lean_Meta_Grind_assertAll___closed__1 = _init_l_Lean_Meta_Grind_assertAll___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_assertAll___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Inv.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Inv.c index 244a42840b..dc2a5be0cb 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Inv.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Inv.c @@ -16,27 +16,29 @@ extern "C" { LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__1; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__1___closed__6; -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_Grind_checkInvariants___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__2___boxed(lean_object**); -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4; size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkInvariants___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, 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_Inv_0__Lean_Meta_Grind_checkParents___spec__2___closed__1; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__3; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__3___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_checkInvariants___spec__3(lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_checkInvariants___spec__4___rarg(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*); uint8_t l_Lean_Expr_isApp(lean_object*); -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3; uint8_t l_Lean_Meta_Grind_isCongruent(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); +lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__5(lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_checkInvariants___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -45,27 +47,30 @@ uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___closed__2; uint64_t l_Lean_Meta_Grind_congrHash(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___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_Inv_0__Lean_Meta_Grind_checkProofs(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_grind_debug_proofs; static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__1; static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___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_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getEqcs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__5; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__1(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_Inv_0__Lean_Meta_Grind_checkParents___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__3___closed__2; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4; extern lean_object* l_Lean_Meta_Grind_grind_debug; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents(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___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2; extern lean_object* l_instInhabitedNat; extern lean_object* l_instInhabitedPUnit; lean_object* l_Lean_Meta_Grind_getRoot(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___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1; -lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(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_Inv_0__Lean_Meta_Grind_checkParents___closed__1; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkInvariants___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,36 +81,41 @@ size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___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*); +static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_checkInvariants___closed__2; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__1___closed__2; static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__3___closed__1; +lean_object* l_Lean_Meta_Grind_mkEqHEqProof(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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__5; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__1___closed__7; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__4; -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__9; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_checkInvariants___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__3___closed__5; extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkInvariants(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_checkInvariants___spec__5___rarg___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_checkInvariants___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_checkInvariants___closed__1; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(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_findEntryAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__5___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static double l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__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_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(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_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); @@ -113,7 +123,7 @@ static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Me LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__8(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_getParents(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(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_Inv_0__Lean_Meta_Grind_checkProofs___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*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___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_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___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*); extern lean_object* l_Lean_Meta_instMonadMetaM; @@ -123,42 +133,45 @@ lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_Meta_Grind_getENodes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_Grind_getNext(lean_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_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___boxed(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*); -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__7; -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6; +lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__2; +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__7; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_checkInvariants___spec__5(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_checkInvariants___lambda__1___closed__1; +static lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntry_x3f___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); -lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findEntryAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__5___closed__1; lean_object* l_Lean_Meta_Grind_getENode(lean_object*, lean_object*, lean_object*, 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_Inv_0__Lean_Meta_Grind_checkEqc___spec__1___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___closed__3; -static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__2; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAtAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___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_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_object*); +lean_object* lean_array_mk(lean_object*); lean_object* l_Lean_Meta_Grind_isRoot(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_Inv_0__Lean_Meta_Grind_checkEqc___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1(lean_object*, lean_object*, 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_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__6; +lean_object* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkInvariants___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,25 +181,34 @@ size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___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_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkParents___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__3; +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc(lean_object*, lean_object*, lean_object*, 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_Inv_0__Lean_Meta_Grind_checkEqc___spec__8___closed__1; lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAtAux___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__2___closed__3; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkEqc___spec__7___lambda__1___closed__5; -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__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_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_checkInvariants___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getRoot_x3f(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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2; lean_object* l_ReaderT_instMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_checkInvariants___spec__3___rarg(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); @@ -3158,7 +3180,378 @@ lean_dec(x_1); return x_18; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1() { +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 2); +x_12 = l_Lean_isTracingEnabledForCore(x_1, x_11, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +static double _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; double x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = 0; +x_3 = l_Float_ofScientific(x_1, x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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) { +_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; uint8_t x_19; +x_12 = lean_ctor_get(x_9, 5); +x_13 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_10, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_16, 1); +x_21 = lean_ctor_get(x_16, 0); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_17, 3); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +lean_object* x_25; double x_26; uint8_t 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_25 = lean_ctor_get(x_18, 0); +x_26 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1; +x_27 = 0; +x_28 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; +x_29 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set_float(x_29, sizeof(void*)*2, x_26); +lean_ctor_set_float(x_29, sizeof(void*)*2 + 8, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*2 + 16, x_27); +x_30 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3; +x_31 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_14); +lean_ctor_set(x_31, 2, x_30); +lean_inc(x_12); +lean_ctor_set(x_16, 1, x_31); +lean_ctor_set(x_16, 0, x_12); +x_32 = l_Lean_PersistentArray_push___rarg(x_25, x_16); +lean_ctor_set(x_18, 0, x_32); +x_33 = lean_st_ref_set(x_10, x_17, x_20); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +x_36 = lean_box(0); +lean_ctor_set(x_33, 0, x_36); +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +lean_dec(x_33); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +uint64_t x_40; lean_object* x_41; double 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; lean_object* x_53; lean_object* x_54; +x_40 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); +x_41 = lean_ctor_get(x_18, 0); +lean_inc(x_41); +lean_dec(x_18); +x_42 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1; +x_43 = 0; +x_44 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; +x_45 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set_float(x_45, sizeof(void*)*2, x_42); +lean_ctor_set_float(x_45, sizeof(void*)*2 + 8, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*2 + 16, x_43); +x_46 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3; +x_47 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_14); +lean_ctor_set(x_47, 2, x_46); +lean_inc(x_12); +lean_ctor_set(x_16, 1, x_47); +lean_ctor_set(x_16, 0, x_12); +x_48 = l_Lean_PersistentArray_push___rarg(x_41, x_16); +x_49 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set_uint64(x_49, sizeof(void*)*1, x_40); +lean_ctor_set(x_17, 3, x_49); +x_50 = lean_st_ref_set(x_10, x_17, x_20); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_52 = x_50; +} else { + lean_dec_ref(x_50); + x_52 = lean_box(0); +} +x_53 = lean_box(0); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +return x_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; uint64_t x_62; lean_object* x_63; lean_object* x_64; double x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_55 = lean_ctor_get(x_17, 0); +x_56 = lean_ctor_get(x_17, 1); +x_57 = lean_ctor_get(x_17, 2); +x_58 = lean_ctor_get(x_17, 4); +x_59 = lean_ctor_get(x_17, 5); +x_60 = lean_ctor_get(x_17, 6); +x_61 = lean_ctor_get(x_17, 7); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_17); +x_62 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); +x_63 = lean_ctor_get(x_18, 0); +lean_inc(x_63); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_64 = x_18; +} else { + lean_dec_ref(x_18); + x_64 = lean_box(0); +} +x_65 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1; +x_66 = 0; +x_67 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; +x_68 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_68, 0, x_1); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set_float(x_68, sizeof(void*)*2, x_65); +lean_ctor_set_float(x_68, sizeof(void*)*2 + 8, x_65); +lean_ctor_set_uint8(x_68, sizeof(void*)*2 + 16, x_66); +x_69 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3; +x_70 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_14); +lean_ctor_set(x_70, 2, x_69); +lean_inc(x_12); +lean_ctor_set(x_16, 1, x_70); +lean_ctor_set(x_16, 0, x_12); +x_71 = l_Lean_PersistentArray_push___rarg(x_63, x_16); +if (lean_is_scalar(x_64)) { + x_72 = lean_alloc_ctor(0, 1, 8); +} else { + x_72 = x_64; +} +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set_uint64(x_72, sizeof(void*)*1, x_62); +x_73 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_73, 0, x_55); +lean_ctor_set(x_73, 1, x_56); +lean_ctor_set(x_73, 2, x_57); +lean_ctor_set(x_73, 3, x_72); +lean_ctor_set(x_73, 4, x_58); +lean_ctor_set(x_73, 5, x_59); +lean_ctor_set(x_73, 6, x_60); +lean_ctor_set(x_73, 7, x_61); +x_74 = lean_st_ref_set(x_10, x_73, x_20); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; +} else { + lean_dec_ref(x_74); + x_76 = lean_box(0); +} +x_77 = lean_box(0); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_76; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +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_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint64_t x_88; lean_object* x_89; lean_object* x_90; double x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_79 = lean_ctor_get(x_16, 1); +lean_inc(x_79); +lean_dec(x_16); +x_80 = lean_ctor_get(x_17, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_17, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_17, 2); +lean_inc(x_82); +x_83 = lean_ctor_get(x_17, 4); +lean_inc(x_83); +x_84 = lean_ctor_get(x_17, 5); +lean_inc(x_84); +x_85 = lean_ctor_get(x_17, 6); +lean_inc(x_85); +x_86 = lean_ctor_get(x_17, 7); +lean_inc(x_86); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + lean_ctor_release(x_17, 2); + lean_ctor_release(x_17, 3); + lean_ctor_release(x_17, 4); + lean_ctor_release(x_17, 5); + lean_ctor_release(x_17, 6); + lean_ctor_release(x_17, 7); + x_87 = x_17; +} else { + lean_dec_ref(x_17); + x_87 = lean_box(0); +} +x_88 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); +x_89 = lean_ctor_get(x_18, 0); +lean_inc(x_89); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_90 = x_18; +} else { + lean_dec_ref(x_18); + x_90 = lean_box(0); +} +x_91 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1; +x_92 = 0; +x_93 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; +x_94 = lean_alloc_ctor(0, 2, 17); +lean_ctor_set(x_94, 0, x_1); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set_float(x_94, sizeof(void*)*2, x_91); +lean_ctor_set_float(x_94, sizeof(void*)*2 + 8, x_91); +lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 16, x_92); +x_95 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3; +x_96 = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_14); +lean_ctor_set(x_96, 2, x_95); +lean_inc(x_12); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_12); +lean_ctor_set(x_97, 1, x_96); +x_98 = l_Lean_PersistentArray_push___rarg(x_89, x_97); +if (lean_is_scalar(x_90)) { + x_99 = lean_alloc_ctor(0, 1, 8); +} else { + x_99 = x_90; +} +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set_uint64(x_99, sizeof(void*)*1, x_88); +if (lean_is_scalar(x_87)) { + x_100 = lean_alloc_ctor(0, 8, 0); +} else { + x_100 = x_87; +} +lean_ctor_set(x_100, 0, x_80); +lean_ctor_set(x_100, 1, x_81); +lean_ctor_set(x_100, 2, x_82); +lean_ctor_set(x_100, 3, x_99); +lean_ctor_set(x_100, 4, x_83); +lean_ctor_set(x_100, 5, x_84); +lean_ctor_set(x_100, 6, x_85); +lean_ctor_set(x_100, 7, x_86); +x_101 = lean_st_ref_set(x_10, x_100, x_79); +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_box(0); +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; +} +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -3168,7 +3561,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2() { _start: { lean_object* x_1; @@ -3176,33 +3569,25 @@ x_1 = lean_mk_string_unchecked("checked: ", 9, 9); return x_1; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4; +x_1 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; @@ -3219,7 +3604,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); lean_inc(x_2); -x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +x_15 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_unbox(x_16); @@ -3239,7 +3624,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; x_19 = lean_ctor_get(x_15, 0); lean_dec(x_19); -x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; lean_ctor_set(x_15, 0, x_20); return x_15; } @@ -3249,7 +3634,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_15, 1); lean_inc(x_21); lean_dec(x_15); -x_22 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_22 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -3276,15 +3661,15 @@ x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); x_28 = l_Lean_MessageData_ofExpr(x_26); -x_29 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3; +x_29 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3; x_30 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); -x_31 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5; +x_31 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4; 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_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); +x_33 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3295,7 +3680,7 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_33, 0); lean_dec(x_35); -x_36 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_36 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; lean_ctor_set(x_33, 0, x_36); return x_33; } @@ -3305,7 +3690,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_33, 1); lean_inc(x_37); lean_dec(x_33); -x_38 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_38 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); @@ -3371,7 +3756,7 @@ return x_47; } } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1() { _start: { lean_object* x_1; @@ -3379,7 +3764,7 @@ x_1 = lean_mk_string_unchecked("grind", 5, 5); return x_1; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2() { _start: { lean_object* x_1; @@ -3387,7 +3772,7 @@ x_1 = lean_mk_string_unchecked("debug", 5, 5); return x_1; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3() { _start: { lean_object* x_1; @@ -3395,18 +3780,18 @@ x_1 = lean_mk_string_unchecked("proofs", 6, 6); return x_1; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1; -x_2 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2; -x_3 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1; +x_2 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2; +x_3 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5() { _start: { lean_object* x_1; @@ -3414,16 +3799,16 @@ x_1 = lean_mk_string_unchecked(" = ", 3, 3); return x_1; } } -static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6() { +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5; +x_1 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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, lean_object* x_16) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { if (lean_obj_tag(x_5) == 0) @@ -3467,7 +3852,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_19); lean_inc(x_3); -x_22 = lean_grind_mk_eq_proof(x_3, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_22 = l_Lean_Meta_Grind_mkEqHEqProof(x_3, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); 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; uint8_t x_28; @@ -3476,8 +3861,8 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4; -x_26 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_25, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_25 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4; +x_26 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(x_25, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_unbox(x_27); @@ -3495,7 +3880,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_31 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_23, x_25, x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +x_31 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_23, x_25, x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_29); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; @@ -3602,11 +3987,11 @@ x_48 = lean_ctor_get(x_26, 0); lean_dec(x_48); lean_inc(x_3); x_49 = l_Lean_MessageData_ofExpr(x_3); -x_50 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5; +x_50 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4; lean_ctor_set_tag(x_26, 7); lean_ctor_set(x_26, 1, x_49); lean_ctor_set(x_26, 0, x_50); -x_51 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6; +x_51 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6; lean_ctor_set_tag(x_5, 7); lean_ctor_set(x_5, 1, x_51); lean_ctor_set(x_5, 0, x_26); @@ -3617,7 +4002,7 @@ lean_ctor_set(x_53, 1, x_52); x_54 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_50); -x_55 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_25, x_54, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_47); +x_55 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(x_25, x_54, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_47); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); @@ -3627,7 +4012,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_58 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_23, x_25, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_57); +x_58 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_23, x_25, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_57); lean_dec(x_56); if (lean_obj_tag(x_58) == 0) { @@ -3731,11 +4116,11 @@ lean_inc(x_73); lean_dec(x_26); lean_inc(x_3); x_74 = l_Lean_MessageData_ofExpr(x_3); -x_75 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5; +x_75 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4; x_76 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); -x_77 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6; +x_77 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6; lean_ctor_set_tag(x_5, 7); lean_ctor_set(x_5, 1, x_77); lean_ctor_set(x_5, 0, x_76); @@ -3746,7 +4131,7 @@ lean_ctor_set(x_79, 1, x_78); x_80 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_80, 0, x_79); lean_ctor_set(x_80, 1, x_75); -x_81 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_25, x_80, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_73); +x_81 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(x_25, x_80, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_73); x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); x_83 = lean_ctor_get(x_81, 1); @@ -3756,7 +4141,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_84 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_23, x_25, x_82, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_83); +x_84 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_23, x_25, x_82, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_83); lean_dec(x_82); if (lean_obj_tag(x_84) == 0) { @@ -3920,7 +4305,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_103); lean_inc(x_3); -x_106 = lean_grind_mk_eq_proof(x_3, x_103, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_106 = l_Lean_Meta_Grind_mkEqHEqProof(x_3, x_103, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); if (lean_obj_tag(x_106) == 0) { lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; @@ -3929,8 +4314,8 @@ lean_inc(x_107); x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); lean_dec(x_106); -x_109 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4; -x_110 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_109, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_108); +x_109 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4; +x_110 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(x_109, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_108); x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); x_112 = lean_unbox(x_111); @@ -3947,7 +4332,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_115 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_107, x_109, x_114, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_113); +x_115 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_107, x_109, x_114, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_113); if (lean_obj_tag(x_115) == 0) { lean_object* x_116; @@ -4054,7 +4439,7 @@ if (lean_is_exclusive(x_110)) { } lean_inc(x_3); x_130 = l_Lean_MessageData_ofExpr(x_3); -x_131 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5; +x_131 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4; if (lean_is_scalar(x_129)) { x_132 = lean_alloc_ctor(7, 2, 0); } else { @@ -4063,7 +4448,7 @@ if (lean_is_scalar(x_129)) { } lean_ctor_set(x_132, 0, x_131); lean_ctor_set(x_132, 1, x_130); -x_133 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6; +x_133 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6; x_134 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); @@ -4074,7 +4459,7 @@ lean_ctor_set(x_136, 1, x_135); x_137 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_137, 0, x_136); lean_ctor_set(x_137, 1, x_131); -x_138 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_109, x_137, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_128); +x_138 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(x_109, x_137, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_128); x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); x_140 = lean_ctor_get(x_138, 1); @@ -4084,7 +4469,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_141 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_107, x_109, x_139, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_140); +x_141 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_107, x_109, x_139, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_140); lean_dec(x_139); if (lean_obj_tag(x_141) == 0) { @@ -4228,7 +4613,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { if (lean_obj_tag(x_4) == 0) @@ -4267,7 +4652,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(x_1, x_2, x_17, x_1, x_1, x_19, lean_box(0), x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(x_1, x_2, x_17, x_1, x_1, x_19, lean_box(0), x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; @@ -4315,7 +4700,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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: { if (lean_obj_tag(x_4) == 0) @@ -4354,7 +4739,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc_n(x_17, 2); -x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(x_17, x_19, x_17, x_17, x_20, lean_box(0), x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_21 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__4(x_17, x_19, x_17, x_17, x_20, lean_box(0), x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_17); if (lean_obj_tag(x_21) == 0) { @@ -4418,7 +4803,7 @@ lean_dec(x_10); x_13 = lean_box(0); x_14 = lean_box(0); lean_inc(x_11); -x_15 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(x_11, x_13, x_11, x_11, x_14, lean_box(0), x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__5(x_11, x_13, x_11, x_11, x_14, lean_box(0), x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_11); if (lean_obj_tag(x_15) == 0) { @@ -4499,11 +4884,43 @@ return x_27; } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1(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(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); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2(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(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -4512,32 +4929,32 @@ lean_dec(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_object* x_16) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, 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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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); +x_17 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); return x_17; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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, lean_object* x_15) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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, x_14, x_15); +x_16 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_3); lean_dec(x_2); return x_16; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_16 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___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_3); lean_dec(x_2); lean_dec(x_1); @@ -5204,147 +5621,146 @@ x_13 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_checkInvariants__ return x_13; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_box_usize(x_3); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_4); -x_16 = lean_apply_11(x_1, x_15, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_14; lean_object* x_15; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_4); +x_15 = lean_apply_11(x_1, x_14, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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) { -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_17; +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_16); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_16, 0); -lean_dec(x_19); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) -{ -return x_16; +return x_15; } else { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_17, 0); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_16, 0, x_22); -return x_16; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_15, 0, x_21); +return x_15; } } else { -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_16, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_dec(x_15); +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); +} +if (lean_is_scalar(x_24)) { + x_25 = lean_alloc_ctor(0, 1, 0); +} else { + x_25 = x_24; +} +lean_ctor_set(x_25, 0, x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; +} +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_15); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_15, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_16); +if (x_29 == 0) +{ +return x_15; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_16, 0); +lean_inc(x_30); lean_dec(x_16); -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); -} -if (lean_is_scalar(x_25)) { - x_26 = lean_alloc_ctor(0, 1, 0); -} else { - x_26 = x_25; -} -lean_ctor_set(x_26, 0, x_24); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_23); -return x_27; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_15, 0, x_31); +return x_15; } } else { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_16); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_16, 0); -lean_dec(x_29); -x_30 = !lean_is_exclusive(x_17); -if (x_30 == 0) -{ -return x_16; -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_17, 0); -lean_inc(x_31); -lean_dec(x_17); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_16, 0, x_32); -return x_16; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_16, 1); +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_15, 1); +lean_inc(x_32); +lean_dec(x_15); +x_33 = lean_ctor_get(x_16, 0); lean_inc(x_33); -lean_dec(x_16); -x_34 = lean_ctor_get(x_17, 0); -lean_inc(x_34); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - x_35 = x_17; +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + x_34 = x_16; } else { - lean_dec_ref(x_17); - x_35 = lean_box(0); + lean_dec_ref(x_16); + x_34 = lean_box(0); } -if (lean_is_scalar(x_35)) { - x_36 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(1, 1, 0); } else { - x_36 = x_35; + x_35 = x_34; } -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_33); -return x_37; +lean_ctor_set(x_35, 0, x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_32); +return x_36; } } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_16); -if (x_38 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_15); +if (x_37 == 0) { -return x_16; +return x_15; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_16, 0); -x_40 = lean_ctor_get(x_16, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_15, 0); +x_39 = lean_ctor_get(x_15, 1); lean_inc(x_39); -lean_dec(x_16); -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_inc(x_38); +lean_dec(x_15); +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; } } } @@ -5353,7 +5769,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_che _start: { lean_object* x_13; lean_object* x_14; -x_13 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1___boxed), 13, 1); +x_13 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1), 13, 1); lean_closure_set(x_13, 0, x_3); x_14 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_checkInvariants___spec__3___rarg(x_13, x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_14) == 0) @@ -5518,7 +5934,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_20 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; lean_ctor_set(x_14, 0, x_20); return x_14; } @@ -5536,7 +5952,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; x_23 = lean_ctor_get(x_21, 0); lean_dec(x_23); -x_24 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_24 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; lean_ctor_set(x_21, 0, x_24); return x_21; } @@ -5546,7 +5962,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; x_25 = lean_ctor_get(x_21, 1); lean_inc(x_25); lean_dec(x_21); -x_26 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_26 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); @@ -5600,7 +6016,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_35 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_35 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_32); @@ -5623,7 +6039,7 @@ if (lean_is_exclusive(x_37)) { lean_dec_ref(x_37); x_39 = lean_box(0); } -x_40 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1; +x_40 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1; if (lean_is_scalar(x_39)) { x_41 = lean_alloc_ctor(0, 2, 0); } else { @@ -5875,16 +6291,6 @@ lean_dec(x_2); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -size_t x_14; lean_object* x_15; -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_checkInvariants___spec__1___lambda__1(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_15; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkInvariants___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -5915,6 +6321,288 @@ x_12 = l_Lean_Meta_Grind_checkInvariants(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8 return x_12; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__2(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) { +_start: +{ +lean_object* x_11; +lean_inc(x_2); +x_11 = l_Lean_Meta_Grind_checkInvariants(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; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_2, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_13, 1); +x_16 = lean_st_ref_get(x_2, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_13, 1, x_18); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_13, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_st_ref_get(x_2, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_27; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_2); +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_Meta_Grind_Goal_checkInvariants___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_checkInvariants___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Goal_checkInvariants___lambda__3___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Goal_checkInvariants___lambda__1___boxed), 9, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = lean_box(x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Goal_checkInvariants___lambda__2___boxed), 10, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_15, 0, x_12); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_Grind_Goal_checkInvariants___closed__1; +x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); +x_18 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_18, 0, x_21); +return x_18; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_box(0); +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; +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +return x_18; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_18); +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_Goal_checkInvariants___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_Goal_checkInvariants___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Lean_Meta_Grind_Goal_checkInvariants___lambda__2(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_Goal_checkInvariants___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_checkInvariants___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_2); +lean_dec(x_2); +x_12 = l_Lean_Meta_Grind_Goal_checkInvariants(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Proof(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -6022,34 +6710,39 @@ l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Met lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__6); l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__7 = _init_l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__7(); lean_mark_persistent(l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkPtrEqImpliesStructEq___spec__1___closed__7); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__1); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__2); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__3); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__4); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___lambda__1___closed__5); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__1); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__2); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__3); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__4); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__5); -l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6(); -lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__1___closed__6); +l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__1(); +l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__2); +l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__2___closed__3); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__1); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__2); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__3); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___lambda__1___closed__4); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__1); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__2); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__3); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__4); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__5); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Inv_0__Lean_Meta_Grind_checkProofs___spec__3___closed__6); l_Lean_Meta_Grind_checkInvariants___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_checkInvariants___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_checkInvariants___lambda__1___closed__1); l_Lean_Meta_Grind_checkInvariants___closed__1 = _init_l_Lean_Meta_Grind_checkInvariants___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_checkInvariants___closed__1); l_Lean_Meta_Grind_checkInvariants___closed__2 = _init_l_Lean_Meta_Grind_checkInvariants___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_checkInvariants___closed__2); +l_Lean_Meta_Grind_Goal_checkInvariants___closed__1 = _init_l_Lean_Meta_Grind_Goal_checkInvariants___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_Goal_checkInvariants___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c new file mode 100644 index 0000000000..3b38da4bde --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c @@ -0,0 +1,3559 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Main +// Imports: Init.Grind.Lemmas Lean.Meta.Tactic.Util Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.PropagatorAttr Lean.Meta.Tactic.Grind.Proj Lean.Meta.Tactic.Grind.ForallProp Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.Intro Lean.Meta.Tactic.Grind.EMatch +#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_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; +lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__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___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_Meta_Grind_ematchStar(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_preprocessAndProbe___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(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_GrindM_run___rarg___closed__20; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; +extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2; +size_t lean_uint64_to_usize(uint64_t); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__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_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___lambda__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_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3; +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_MVarId_revertAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_main___lambda__2___closed__2; +lean_object* l_Std_Queue_empty(lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__1; +lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_getFalseExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal(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_GrindM_run___rarg___closed__10; +lean_object* l_Lean_Meta_Grind_Goal_checkInvariants(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +lean_object* l_Lean_Meta_Simp_SimprocExtension_getSimprocs(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3(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_main___lambda__2___closed__3; +static lean_object* l_Lean_Meta_Grind_main___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_propagateProjEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofFormat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_getTrueExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2; +lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe___lambda__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_Lean_Meta_Grind_preprocessAndProbe___closed__1; +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__15; +lean_object* l_ShareCommon_mkStateImpl(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__1(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_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Simp_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_Grind_builtinPropagatorsRef; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__18; +static lean_object* l_Lean_Meta_Grind_main___lambda__2___closed__5; +lean_object* l_Lean_MVarId_clearAuxDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__7; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__12; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__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_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3___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_mkMethods___rarg(lean_object*); +extern lean_object* l_Lean_Meta_Grind_grindNormSimprocExt; +static lean_object* l_Lean_Meta_Grind_main___closed__1; +lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__3; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore(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_main___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__6; +lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_ensureNoMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___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_mkMethods___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_intros(lean_object*, 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_main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__19; +static lean_object* l_Lean_Meta_Grind_main___lambda__2___closed__6; +uint64_t l_Lean_Name_hash___override(lean_object*); +extern lean_object* l_Lean_Meta_Grind_grindNormExt; +uint64_t lean_uint64_xor(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_MVarId_transformTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_resetCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__17; +lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_all(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_object* lean_array_mk(lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__4; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Grind_all___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_MVarId_ensureProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__8; +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_unfoldReducible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__9; +lean_object* l_Lean_Meta_Grind_propagateForallProp(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*); +extern lean_object* l_Lean_ShareCommon_objectFactory; +lean_object* lean_state_sharecommon(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkMethods___rarg___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; +static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__2; +lean_object* l_Lean_Meta_Grind_ppGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MVarId_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_land(size_t, size_t); +lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(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 = lean_name_eq(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_Lean_Meta_Grind_mkMethods___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_12 = l_Lean_Meta_Grind_propagateForallProp(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; +x_14 = lean_ctor_get(x_12, 1); +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = l_Lean_Expr_getAppFn(x_2); +if (lean_obj_tag(x_16) == 4) +{ +lean_object* x_17; lean_object* x_18; +lean_free_object(x_12); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_propagateProjEq(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) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t 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; size_t x_32; size_t x_33; size_t x_34; size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_18, 1); +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_array_get_size(x_23); +x_25 = l_Lean_Name_hash___override(x_17); +x_26 = 32; +x_27 = lean_uint64_shift_right(x_25, x_26); +x_28 = lean_uint64_xor(x_25, x_27); +x_29 = 16; +x_30 = lean_uint64_shift_right(x_28, x_29); +x_31 = lean_uint64_xor(x_28, x_30); +x_32 = lean_uint64_to_usize(x_31); +x_33 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_34 = 1; +x_35 = lean_usize_sub(x_33, x_34); +x_36 = lean_usize_land(x_32, x_35); +x_37 = lean_array_uget(x_23, x_36); +x_38 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_17, x_37); +lean_dec(x_37); +lean_dec(x_17); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +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); +lean_dec(x_2); +x_39 = lean_box(0); +lean_ctor_set(x_18, 0, x_39); +return x_18; +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_free_object(x_18); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_apply_10(x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; uint64_t x_50; uint64_t x_51; uint64_t x_52; size_t x_53; size_t x_54; size_t x_55; size_t x_56; size_t x_57; lean_object* x_58; lean_object* x_59; +x_42 = lean_ctor_get(x_1, 0); +x_43 = lean_ctor_get(x_18, 1); +lean_inc(x_43); +lean_dec(x_18); +x_44 = lean_ctor_get(x_42, 1); +x_45 = lean_array_get_size(x_44); +x_46 = l_Lean_Name_hash___override(x_17); +x_47 = 32; +x_48 = lean_uint64_shift_right(x_46, x_47); +x_49 = lean_uint64_xor(x_46, x_48); +x_50 = 16; +x_51 = lean_uint64_shift_right(x_49, x_50); +x_52 = lean_uint64_xor(x_49, x_51); +x_53 = lean_uint64_to_usize(x_52); +x_54 = lean_usize_of_nat(x_45); +lean_dec(x_45); +x_55 = 1; +x_56 = lean_usize_sub(x_54, x_55); +x_57 = lean_usize_land(x_53, x_56); +x_58 = lean_array_uget(x_44, x_57); +x_59 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_17, x_58); +lean_dec(x_58); +lean_dec(x_17); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; +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); +lean_dec(x_2); +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_43); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 0); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_apply_10(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_17); +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); +lean_dec(x_2); +x_64 = !lean_is_exclusive(x_18); +if (x_64 == 0) +{ +return x_18; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_18, 0); +x_66 = lean_ctor_get(x_18, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_18); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +lean_object* x_68; +lean_dec(x_16); +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); +lean_dec(x_2); +x_68 = lean_box(0); +lean_ctor_set(x_12, 0, x_68); +return x_12; +} +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_12, 1); +lean_inc(x_69); +lean_dec(x_12); +x_70 = l_Lean_Expr_getAppFn(x_2); +if (lean_obj_tag(x_70) == 4) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +lean_dec(x_70); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_72 = l_Lean_Meta_Grind_propagateProjEq(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_69); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint64_t x_78; uint64_t x_79; uint64_t x_80; uint64_t x_81; uint64_t x_82; uint64_t x_83; uint64_t x_84; size_t x_85; size_t x_86; size_t x_87; size_t x_88; size_t x_89; lean_object* x_90; lean_object* x_91; +x_73 = lean_ctor_get(x_1, 0); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; +} else { + lean_dec_ref(x_72); + x_75 = lean_box(0); +} +x_76 = lean_ctor_get(x_73, 1); +x_77 = lean_array_get_size(x_76); +x_78 = l_Lean_Name_hash___override(x_71); +x_79 = 32; +x_80 = lean_uint64_shift_right(x_78, x_79); +x_81 = lean_uint64_xor(x_78, x_80); +x_82 = 16; +x_83 = lean_uint64_shift_right(x_81, x_82); +x_84 = lean_uint64_xor(x_81, x_83); +x_85 = lean_uint64_to_usize(x_84); +x_86 = lean_usize_of_nat(x_77); +lean_dec(x_77); +x_87 = 1; +x_88 = lean_usize_sub(x_86, x_87); +x_89 = lean_usize_land(x_85, x_88); +x_90 = lean_array_uget(x_76, x_89); +x_91 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_71, x_90); +lean_dec(x_90); +lean_dec(x_71); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; +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); +lean_dec(x_2); +x_92 = lean_box(0); +if (lean_is_scalar(x_75)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_75; +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_74); +return x_93; +} +else +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_75); +x_94 = lean_ctor_get(x_91, 0); +lean_inc(x_94); +lean_dec(x_91); +x_95 = lean_apply_10(x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_74); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_71); +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); +lean_dec(x_2); +x_96 = lean_ctor_get(x_72, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_72, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_98 = x_72; +} else { + lean_dec_ref(x_72); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_70); +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); +lean_dec(x_2); +x_100 = lean_box(0); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_69); +return x_101; +} +} +} +else +{ +uint8_t x_102; +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); +lean_dec(x_2); +x_102 = !lean_is_exclusive(x_12); +if (x_102 == 0) +{ +return x_12; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_12, 0); +x_104 = lean_ctor_get(x_12, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_12); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Expr_getAppFn(x_2); +if (lean_obj_tag(x_12) == 4) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; 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; uint64_t x_24; uint64_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; lean_object* x_31; lean_object* x_32; +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = lean_array_get_size(x_16); +x_19 = l_Lean_Name_hash___override(x_14); +x_20 = 32; +x_21 = lean_uint64_shift_right(x_19, x_20); +x_22 = lean_uint64_xor(x_19, x_21); +x_23 = 16; +x_24 = lean_uint64_shift_right(x_22, x_23); +x_25 = lean_uint64_xor(x_22, x_24); +x_26 = lean_uint64_to_usize(x_25); +x_27 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_28 = 1; +x_29 = lean_usize_sub(x_27, x_28); +x_30 = lean_usize_land(x_26, x_29); +x_31 = lean_array_uget(x_16, x_30); +lean_dec(x_16); +x_32 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_14, x_31); +lean_dec(x_31); +lean_dec(x_14); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +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); +lean_dec(x_2); +x_33 = lean_box(0); +lean_ctor_set(x_13, 1, x_11); +lean_ctor_set(x_13, 0, x_33); +return x_13; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_free_object(x_13); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_apply_10(x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; uint64_t x_41; uint64_t x_42; uint64_t x_43; uint64_t x_44; size_t x_45; size_t x_46; size_t x_47; size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; +x_36 = lean_ctor_get(x_13, 1); +lean_inc(x_36); +lean_dec(x_13); +x_37 = lean_array_get_size(x_36); +x_38 = l_Lean_Name_hash___override(x_14); +x_39 = 32; +x_40 = lean_uint64_shift_right(x_38, x_39); +x_41 = lean_uint64_xor(x_38, x_40); +x_42 = 16; +x_43 = lean_uint64_shift_right(x_41, x_42); +x_44 = lean_uint64_xor(x_41, x_43); +x_45 = lean_uint64_to_usize(x_44); +x_46 = lean_usize_of_nat(x_37); +lean_dec(x_37); +x_47 = 1; +x_48 = lean_usize_sub(x_46, x_47); +x_49 = lean_usize_land(x_45, x_48); +x_50 = lean_array_uget(x_36, x_49); +lean_dec(x_36); +x_51 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_14, x_50); +lean_dec(x_50); +lean_dec(x_14); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; +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); +lean_dec(x_2); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_11); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 0); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_apply_10(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_55; +} +} +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(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); +lean_dec(x_2); +lean_dec(x_1); +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_11); +return x_57; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkMethods___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_builtinPropagatorsRef; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Meta_Grind_mkMethods___rarg___closed__1; +x_3 = lean_st_ref_get(x_2, x_1); +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, 0); +lean_inc(x_5); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed), 11, 1); +lean_closure_set(x_6, 0, x_5); +x_7 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__2), 11, 1); +lean_closure_set(x_7, 0, x_5); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +lean_ctor_set(x_3, 0, x_8); +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; +x_9 = lean_ctor_get(x_3, 0); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_3); +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed), 11, 1); +lean_closure_set(x_11, 0, x_9); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__2), 11, 1); +lean_closure_set(x_12, 0, x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg), 1, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mkMethods___rarg___lambda__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_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_mkMethods(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_ShareCommon_objectFactory; +x_2 = l_ShareCommon_mkStateImpl(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("False", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___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_GrindM_run___rarg___closed__2; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__3; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_ShareCommon_objectFactory; +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__1; +x_3 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__4; +x_4 = lean_state_sharecommon(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("True", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___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_GrindM_run___rarg___closed__6; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__7; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_grindNormExt; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_grindNormSimprocExt; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_1 = l_Lean_Meta_Simp_defaultMaxSteps; +x_2 = lean_unsigned_to_nat(2u); +x_3 = 0; +x_4 = 1; +x_5 = 0; +x_6 = lean_alloc_ctor(0, 2, 19); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set_uint8(x_6, sizeof(void*)*2, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 1, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 2, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 3, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 5, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 6, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 7, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 8, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 9, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 10, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 11, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 12, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 13, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 14, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 15, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 16, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 17, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 18, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__12() { +_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_GrindM_run___rarg___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__12; +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_GrindM_run___rarg___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_2 = lean_alloc_ctor(0, 3, 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); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__16() { +_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_Lean_Meta_Grind_GrindM_run___rarg___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; +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_GrindM_run___rarg___closed__18() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__17; +x_3 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__18; +x_3 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_1); +lean_ctor_set(x_3, 3, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__15; +x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__19; +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_GrindM_run___rarg(lean_object* x_1, lean_object* x_2, 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; uint8_t x_24; +x_9 = lean_box(0); +x_10 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__5; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_13 = l_Lean_ShareCommon_objectFactory; +x_14 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__8; +x_15 = lean_state_sharecommon(x_13, x_12, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__9; +x_19 = l_Lean_Meta_SimpExtension_getTheorems(x_18, x_6, x_7, x_8); +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(x_19); +x_22 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__10; +x_23 = l_Lean_Meta_Simp_SimprocExtension_getSimprocs(x_22, x_6, x_7, x_21); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_23, 1); +lean_ctor_set_tag(x_23, 1); +lean_ctor_set(x_23, 1, x_9); +x_26 = lean_array_mk(x_23); +x_27 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_7, x_25); +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; 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; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 1, x_9); +lean_ctor_set(x_27, 0, x_20); +x_31 = lean_array_mk(x_27); +x_32 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; +x_33 = l_Lean_Meta_Simp_mkContext(x_32, x_31, x_29, x_4, x_5, x_6, x_7, x_30); +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(x_33); +x_36 = l_Lean_Meta_Grind_mkMethods___rarg(x_35); +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(x_36); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_26); +lean_ctor_set(x_39, 2, x_2); +lean_ctor_set(x_39, 3, x_3); +x_40 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; +x_41 = lean_unsigned_to_nat(1u); +x_42 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_43 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; +x_44 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_17); +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_16); +lean_ctor_set(x_44, 6, x_11); +x_45 = lean_st_mk_ref(x_44, x_38); +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(x_45); +lean_inc(x_46); +x_48 = lean_apply_8(x_1, x_37, x_39, x_46, x_4, x_5, x_6, x_7, x_47); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_st_ref_get(x_46, x_50); +lean_dec(x_46); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set(x_51, 0, x_49); +return x_51; +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_49); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +else +{ +uint8_t x_56; +lean_dec(x_46); +x_56 = !lean_is_exclusive(x_48); +if (x_56 == 0) +{ +return x_48; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_48, 0); +x_58 = lean_ctor_get(x_48, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_48); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_60 = lean_ctor_get(x_27, 0); +x_61 = lean_ctor_get(x_27, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_27); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_20); +lean_ctor_set(x_62, 1, x_9); +x_63 = lean_array_mk(x_62); +x_64 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; +x_65 = l_Lean_Meta_Simp_mkContext(x_64, x_63, x_60, x_4, x_5, x_6, x_7, x_61); +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(x_65); +x_68 = l_Lean_Meta_Grind_mkMethods___rarg(x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_71, 0, x_66); +lean_ctor_set(x_71, 1, x_26); +lean_ctor_set(x_71, 2, x_2); +lean_ctor_set(x_71, 3, x_3); +x_72 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; +x_73 = lean_unsigned_to_nat(1u); +x_74 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_75 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; +x_76 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_76, 0, x_72); +lean_ctor_set(x_76, 1, x_17); +lean_ctor_set(x_76, 2, x_73); +lean_ctor_set(x_76, 3, x_74); +lean_ctor_set(x_76, 4, x_75); +lean_ctor_set(x_76, 5, x_16); +lean_ctor_set(x_76, 6, x_11); +x_77 = lean_st_mk_ref(x_76, x_70); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +lean_inc(x_78); +x_80 = lean_apply_8(x_1, x_69, x_71, x_78, x_4, x_5, x_6, x_7, x_79); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_st_ref_get(x_78, x_82); +lean_dec(x_78); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_81); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_78); +x_87 = lean_ctor_get(x_80, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_80, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_89 = x_80; +} else { + lean_dec_ref(x_80); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; +} +} +} +else +{ +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; +x_91 = lean_ctor_get(x_23, 0); +x_92 = lean_ctor_get(x_23, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_23); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_9); +x_94 = lean_array_mk(x_93); +x_95 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_7, x_92); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_98 = x_95; +} else { + lean_dec_ref(x_95); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; + lean_ctor_set_tag(x_99, 1); +} +lean_ctor_set(x_99, 0, x_20); +lean_ctor_set(x_99, 1, x_9); +x_100 = lean_array_mk(x_99); +x_101 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; +x_102 = l_Lean_Meta_Simp_mkContext(x_101, x_100, x_96, x_4, x_5, x_6, x_7, x_97); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = l_Lean_Meta_Grind_mkMethods___rarg(x_104); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_108, 0, x_103); +lean_ctor_set(x_108, 1, x_94); +lean_ctor_set(x_108, 2, x_2); +lean_ctor_set(x_108, 3, x_3); +x_109 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; +x_110 = lean_unsigned_to_nat(1u); +x_111 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_112 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; +x_113 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_113, 0, x_109); +lean_ctor_set(x_113, 1, x_17); +lean_ctor_set(x_113, 2, x_110); +lean_ctor_set(x_113, 3, x_111); +lean_ctor_set(x_113, 4, x_112); +lean_ctor_set(x_113, 5, x_16); +lean_ctor_set(x_113, 6, x_11); +x_114 = lean_st_mk_ref(x_113, x_107); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_115); +x_117 = lean_apply_8(x_1, x_106, x_108, x_115, x_4, x_5, x_6, x_7, x_116); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = lean_st_ref_get(x_115, x_119); +lean_dec(x_115); +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; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_115); +x_124 = lean_ctor_get(x_117, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_117, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_126 = x_117; +} else { + lean_dec_ref(x_117); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GrindM_run___rarg), 8, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +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; uint8_t x_20; +x_12 = 1; +x_13 = 0; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Meta_Grind_mkENodeCore(x_2, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_get(x_3, x_18); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_19, 1); +x_22 = lean_st_ref_get(x_3, x_21); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_ctor_set(x_19, 1, x_24); +lean_ctor_set(x_22, 0, x_19); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_22, 0); +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_22); +lean_ctor_set(x_19, 1, x_25); +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 +{ +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_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_30 = lean_st_ref_get(x_3, 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); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_33 = x_30; +} else { + lean_dec_ref(x_30); + x_33 = lean_box(0); +} +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_28); +lean_ctor_set(x_34, 1, x_31); +if (lean_is_scalar(x_33)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_33; +} +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +return x_35; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = l_Std_Queue_empty(lean_box(0)); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_10 = l_Lean_Meta_Grind_getTrueExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_Grind_getFalseExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Meta_Grind_getEMatchTheorems___rarg(x_8, x_15); +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(x_16); +x_19 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; +x_20 = l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1; +x_21 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1; +x_22 = 0; +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__18; +x_25 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2; +x_26 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2; +lean_inc(x_1); +x_27 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_19); +lean_ctor_set(x_27, 2, x_19); +lean_ctor_set(x_27, 3, x_20); +lean_ctor_set(x_27, 4, x_19); +lean_ctor_set(x_27, 5, x_21); +lean_ctor_set(x_27, 6, x_23); +lean_ctor_set(x_27, 7, x_23); +lean_ctor_set(x_27, 8, x_24); +lean_ctor_set(x_27, 9, x_24); +lean_ctor_set(x_27, 10, x_17); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set(x_27, 12, x_25); +lean_ctor_set(x_27, 13, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*14, x_22); +x_28 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__1___boxed), 9, 1); +lean_closure_set(x_28, 0, x_27); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2___boxed), 11, 2); +lean_closure_set(x_29, 0, x_14); +lean_closure_set(x_29, 1, x_11); +x_30 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_30, 0, x_28); +lean_closure_set(x_30, 1, x_29); +x_31 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3; +x_32 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_32, 0, x_30); +lean_closure_set(x_32, 1, x_31); +x_33 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_1, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +return x_33; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__2(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(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_10; lean_object* x_11; +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_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_15 = l_Lean_Meta_Grind_Goal_checkInvariants(x_12, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_1 = x_13; +x_9 = x_16; +goto _start; +} +else +{ +uint8_t x_18; +lean_dec(x_13); +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_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint8(x_4, sizeof(void*)*14); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_1, 0); +lean_dec(x_8); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_7; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_4); +lean_ctor_set(x_11, 1, x_2); +x_1 = x_10; +x_2 = x_11; +goto _start; +} +} +else +{ +lean_object* x_13; +lean_dec(x_4); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_1 = x_13; +goto _start; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible), 6, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_MVarId_betaReduce___lambda__1___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_10 = l_Lean_MVarId_ensureProp(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +lean_inc(x_1); +x_12 = l_Lean_MVarId_ensureNoMVar(x_1, x_5, x_6, x_7, x_8, 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(x_12); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_MVarId_clearAuxDecls(x_1, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_17 = l_Lean_MVarId_revertAll(x_15, x_5, x_6, x_7, x_8, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_21 = l_Lean_MVarId_transformTarget(x_18, x_20, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_21) == 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_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_25 = l_Lean_MVarId_transformTarget(x_22, x_24, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_28 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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(x_28); +x_31 = lean_unsigned_to_nat(0u); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_32 = l_Lean_Meta_Grind_intros(x_29, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +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(x_32); +lean_inc(x_33); +x_35 = l_List_forM___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__1(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +if (lean_obj_tag(x_35) == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +x_38 = lean_box(0); +x_39 = l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__2(x_33, x_38); +lean_ctor_set(x_35, 0, x_39); +return x_35; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = lean_box(0); +x_42 = l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___spec__2(x_33, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_33); +x_44 = !lean_is_exclusive(x_35); +if (x_44 == 0) +{ +return x_35; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_35, 0); +x_46 = lean_ctor_get(x_35, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_35); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +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_48 = !lean_is_exclusive(x_32); +if (x_48 == 0) +{ +return x_32; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_32, 0); +x_50 = lean_ctor_get(x_32, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_32); +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_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_52 = !lean_is_exclusive(x_28); +if (x_52 == 0) +{ +return x_28; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_28, 0); +x_54 = lean_ctor_get(x_28, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_28); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_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_56 = !lean_is_exclusive(x_25); +if (x_56 == 0) +{ +return x_25; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_25, 0); +x_58 = lean_ctor_get(x_25, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_25); +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_60; +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_60 = !lean_is_exclusive(x_21); +if (x_60 == 0) +{ +return x_21; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_21, 0); +x_62 = lean_ctor_get(x_21, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_21); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +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_64 = !lean_is_exclusive(x_17); +if (x_64 == 0) +{ +return x_17; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_17, 0); +x_66 = lean_ctor_get(x_17, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_17); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +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_68 = !lean_is_exclusive(x_14); +if (x_68 == 0) +{ +return x_14; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_14, 0); +x_70 = lean_ctor_get(x_14, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_14); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +uint8_t x_72; +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); +lean_dec(x_1); +x_72 = !lean_is_exclusive(x_12); +if (x_72 == 0) +{ +return x_12; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_12, 0); +x_74 = lean_ctor_get(x_12, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_12); +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; +} +} +} +else +{ +uint8_t x_76; +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); +lean_dec(x_1); +x_76 = !lean_is_exclusive(x_10); +if (x_76 == 0) +{ +return x_10; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_10, 0); +x_78 = lean_ctor_get(x_10, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_10); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Grind_all___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: +{ +if (lean_obj_tag(x_3) == 0) +{ +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_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_3, 1); +lean_inc(x_14); +lean_dec(x_3); +lean_inc(x_1); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_15 = lean_apply_9(x_1, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; 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(x_15); +x_18 = l_List_appendTR___rarg(x_2, x_16); +x_2 = x_18; +x_3 = x_14; +x_11 = x_17; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(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); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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_all(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_List_foldlM___at_Lean_Meta_Grind_all___spec__1(x_2, x_11, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_ematchStar), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1; +x_11 = l_Lean_Meta_Grind_all(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +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; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_box(0); +x_12 = l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(x_1, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +return x_13; +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___lambda__2___closed__1() { +_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_main___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("debug", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("final", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_main___lambda__2___closed__1; +x_2 = l_Lean_Meta_Grind_main___lambda__2___closed__2; +x_3 = l_Lean_Meta_Grind_main___lambda__2___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_main___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_Meta_Grind_all(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +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; uint8_t x_17; +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(x_11); +x_14 = l_Lean_Meta_Grind_main___lambda__2___closed__4; +x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_box(0); +x_20 = l_Lean_Meta_Grind_main___lambda__1(x_12, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +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); +return x_20; +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_15, 1); +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_12); +x_24 = l_Lean_Meta_Grind_ppGoals(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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(x_24); +x_27 = l_Lean_MessageData_ofFormat(x_25); +x_28 = l_Lean_Meta_Grind_main___lambda__2___closed__6; +lean_ctor_set_tag(x_15, 7); +lean_ctor_set(x_15, 1, x_27); +lean_ctor_set(x_15, 0, x_28); +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_15); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_14, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_26); +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_30); +x_33 = l_Lean_Meta_Grind_main___lambda__1(x_12, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_32); +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); +lean_dec(x_31); +return x_33; +} +else +{ +uint8_t x_34; +lean_free_object(x_15); +lean_dec(x_12); +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_34 = !lean_is_exclusive(x_24); +if (x_34 == 0) +{ +return x_24; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_24, 0); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_15, 1); +lean_inc(x_38); +lean_dec(x_15); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_12); +x_39 = l_Lean_Meta_Grind_ppGoals(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_38); +if (lean_obj_tag(x_39) == 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; lean_object* x_49; +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(x_39); +x_42 = l_Lean_MessageData_ofFormat(x_40); +x_43 = l_Lean_Meta_Grind_main___lambda__2___closed__6; +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_14, x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_41); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_Meta_Grind_main___lambda__1(x_12, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); +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); +lean_dec(x_47); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_12); +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_50 = lean_ctor_get(x_39, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_39, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_52 = x_39; +} else { + lean_dec_ref(x_39); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +} +} +else +{ +uint8_t x_54; +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_54 = !lean_is_exclusive(x_11); +if (x_54 == 0) +{ +return x_11; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_11, 0); +x_56 = lean_ctor_get(x_11, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_11); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_main___lambda__2), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(lean_object* x_1, lean_object* x_2, 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; +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore), 9, 1); +lean_closure_set(x_9, 0, x_1); +x_10 = l_Lean_Meta_Grind_main___closed__1; +x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +x_12 = l_Lean_Meta_Grind_GrindM_run___rarg(x_11, x_3, x_2, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_main___lambda__1(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(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); +return x_11; +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_2); +x_11 = lean_apply_9(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; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_2, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_13, 1); +x_16 = lean_st_ref_get(x_2, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_13, 1, x_18); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_13, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_st_ref_get(x_2, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_27; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_2); +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_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___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: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; lean_object* x_12; +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_1); +x_11 = lean_box(0); +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; +} +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; lean_object* x_20; lean_object* x_21; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_dec(x_2); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__1___boxed), 9, 1); +lean_closure_set(x_16, 0, x_13); +lean_inc(x_1); +x_17 = lean_alloc_closure((void*)(l_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___lambda__1), 10, 1); +lean_closure_set(x_17, 0, x_1); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_17); +x_19 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3; +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_19); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_21 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_15, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_2 = x_14; +x_10 = x_22; +goto _start; +} +else +{ +uint8_t x_24; +lean_dec(x_14); +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_1); +x_24 = !lean_is_exclusive(x_21); +if (x_24 == 0) +{ +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_21); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_st_ref_get(x_3, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_11 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +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_object* x_17; lean_object* x_18; uint8_t x_19; +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(x_11); +x_14 = l_Lean_Meta_resetCache___rarg(x_3, x_4, x_5, x_13); +lean_dec(x_5); +lean_dec(x_4); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_st_ref_take(x_3, x_15); +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(x_16); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +lean_ctor_set(x_17, 0, x_10); +x_21 = lean_st_ref_set(x_3, x_17, x_18); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_12); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_12); +lean_ctor_set(x_25, 1, x_24); +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; +x_26 = lean_ctor_get(x_17, 1); +x_27 = lean_ctor_get(x_17, 2); +x_28 = lean_ctor_get(x_17, 3); +x_29 = lean_ctor_get(x_17, 4); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +x_30 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_30, 0, x_10); +lean_ctor_set(x_30, 1, x_26); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_28); +lean_ctor_set(x_30, 4, x_29); +x_31 = lean_st_ref_set(x_3, x_30, x_18); +lean_dec(x_3); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_33 = x_31; +} else { + lean_dec_ref(x_31); + x_33 = lean_box(0); +} +if (lean_is_scalar(x_33)) { + x_34 = lean_alloc_ctor(0, 2, 0); +} else { + x_34 = x_33; +} +lean_ctor_set(x_34, 0, x_12); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_35 = lean_ctor_get(x_11, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_11, 1); +lean_inc(x_36); +lean_dec(x_11); +x_37 = l_Lean_Meta_resetCache___rarg(x_3, x_4, x_5, x_36); +lean_dec(x_5); +lean_dec(x_4); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_st_ref_take(x_3, x_38); +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(x_39); +x_42 = !lean_is_exclusive(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_40, 0); +lean_dec(x_43); +lean_ctor_set(x_40, 0, x_10); +x_44 = lean_st_ref_set(x_3, x_40, x_41); +lean_dec(x_3); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; +x_46 = lean_ctor_get(x_44, 0); +lean_dec(x_46); +lean_ctor_set_tag(x_44, 1); +lean_ctor_set(x_44, 0, x_35); +return x_44; +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_35); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_49 = lean_ctor_get(x_40, 1); +x_50 = lean_ctor_get(x_40, 2); +x_51 = lean_ctor_get(x_40, 3); +x_52 = lean_ctor_get(x_40, 4); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_40); +x_53 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_53, 0, x_10); +lean_ctor_set(x_53, 1, x_49); +lean_ctor_set(x_53, 2, x_50); +lean_ctor_set(x_53, 3, x_51); +lean_ctor_set(x_53, 4, x_52); +x_54 = lean_st_ref_set(x_3, x_53, x_41); +lean_dec(x_3); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; + lean_ctor_set_tag(x_57, 1); +} +lean_ctor_set(x_57, 0, x_35); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2___rarg), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forM___at_Lean_Meta_Grind_preprocessAndProbe___spec__1(x_1, x_2, 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); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = l_Lean_Meta_Grind_main___lambda__2___closed__4; +x_12 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_Grind_preprocessAndProbe___lambda__1(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +return x_17; +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_12, 1); +x_20 = lean_ctor_get(x_12, 0); +lean_dec(x_20); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_21 = l_Lean_Meta_Grind_ppGoals(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +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; lean_object* x_30; +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(x_21); +x_24 = l_Lean_MessageData_ofFormat(x_22); +x_25 = l_Lean_Meta_Grind_main___lambda__2___closed__6; +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_24); +lean_ctor_set(x_12, 0, x_25); +x_26 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_26, 0, x_12); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_11, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +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_27); +x_30 = l_Lean_Meta_Grind_preprocessAndProbe___lambda__1(x_1, x_2, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +lean_dec(x_28); +return x_30; +} +else +{ +uint8_t x_31; +lean_free_object(x_12); +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); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) +{ +return x_21; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +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 +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_12, 1); +lean_inc(x_35); +lean_dec(x_12); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_36 = l_Lean_Meta_Grind_ppGoals(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +if (lean_obj_tag(x_36) == 0) +{ +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; +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(x_36); +x_39 = l_Lean_MessageData_ofFormat(x_37); +x_40 = l_Lean_Meta_Grind_main___lambda__2___closed__6; +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_11, x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_Meta_Grind_preprocessAndProbe___lambda__1(x_1, x_2, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +lean_dec(x_44); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +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); +lean_dec(x_1); +x_47 = lean_ctor_get(x_36, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_36, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_49 = x_36; +} else { + lean_dec_ref(x_36); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_preprocessAndProbe___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 0; +x_2 = lean_unsigned_to_nat(100u); +x_3 = lean_unsigned_to_nat(5u); +x_4 = lean_unsigned_to_nat(1000u); +x_5 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*4, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe(lean_object* x_1, lean_object* x_2, 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; +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore), 9, 1); +lean_closure_set(x_9, 0, x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_preprocessAndProbe___lambda__2), 10, 1); +lean_closure_set(x_10, 0, x_3); +x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +x_12 = l_Lean_Meta_Grind_preprocessAndProbe___closed__1; +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GrindM_run___rarg), 8, 3); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_12); +x_14 = l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__2___rarg(x_13, x_4, x_5, x_6, x_7, x_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_preprocessAndProbe___lambda__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_3); +return x_12; +} +} +lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_RevertAll(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_PropagatorAttr(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Proj(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_ForallProp(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Inv(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Intro(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_EMatch(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Main(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_Init_Grind_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Util(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_RevertAll(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_PropagatorAttr(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Proj(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_ForallProp(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Util(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Inv(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Intro(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_EMatch(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Meta_Grind_mkMethods___rarg___closed__1 = _init_l_Lean_Meta_Grind_mkMethods___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkMethods___rarg___closed__1); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__1); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__2 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__2); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__3 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__3); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__4 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__4); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__5 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__5); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__6 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__6); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__7 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__7); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__8 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__8); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__9 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__9); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__10 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__10); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__11 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__11); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__12 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__12); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__13 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__13); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__14 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__14); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__15 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__15(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__15); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__16 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__16(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__16); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__17 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__17(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__17); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__18 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__18(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__18); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__19 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__19(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__19); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__20 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__20(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__20); +l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1 = _init_l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__1); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__2); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___closed__3); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__1); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_initCore___closed__2); +l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_simple___closed__1); +l_Lean_Meta_Grind_main___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__1); +l_Lean_Meta_Grind_main___lambda__2___closed__2 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__2); +l_Lean_Meta_Grind_main___lambda__2___closed__3 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__3); +l_Lean_Meta_Grind_main___lambda__2___closed__4 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__4); +l_Lean_Meta_Grind_main___lambda__2___closed__5 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__5); +l_Lean_Meta_Grind_main___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_main___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_main___lambda__2___closed__6); +l_Lean_Meta_Grind_main___closed__1 = _init_l_Lean_Meta_Grind_main___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_main___closed__1); +l_Lean_Meta_Grind_preprocessAndProbe___closed__1 = _init_l_Lean_Meta_Grind_preprocessAndProbe___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_preprocessAndProbe___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/MarkNestedProofs.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/MarkNestedProofs.c index 99b9a11a5e..2f082515ee 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/MarkNestedProofs.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/MarkNestedProofs.c @@ -24,7 +24,9 @@ size_t lean_uint64_to_usize(uint64_t); lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +lean_object* l_Lean_Expr_mdata___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_markNestedProofsImpl_visit___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5542,57 +5544,262 @@ return x_65; } } } -default: +case 10: { -uint8_t x_66; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_8); -if (x_66 == 0) +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_8, 1); +lean_inc(x_66); +lean_dec(x_8); +x_67 = lean_ctor_get(x_1, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_1, 1); +lean_inc(x_68); +lean_inc(x_68); +x_69 = l_Lean_Meta_Grind_markNestedProofsImpl_visit(x_68, x_2, x_3, x_4, x_5, x_6, x_66); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_67; -x_67 = lean_ctor_get(x_8, 0); -lean_dec(x_67); -lean_ctor_set(x_8, 0, x_1); -return x_8; +uint8_t x_70; +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; size_t x_72; size_t x_73; uint8_t x_74; +x_71 = lean_ctor_get(x_69, 0); +x_72 = lean_ptr_addr(x_68); +lean_dec(x_68); +x_73 = lean_ptr_addr(x_71); +x_74 = lean_usize_dec_eq(x_72, x_73); +if (x_74 == 0) +{ +lean_object* x_75; +lean_dec(x_1); +x_75 = l_Lean_Expr_mdata___override(x_67, x_71); +lean_ctor_set(x_69, 0, x_75); +return x_69; } else { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_8, 1); -lean_inc(x_68); -lean_dec(x_8); -x_69 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_71); +lean_dec(x_67); lean_ctor_set(x_69, 0, x_1); -lean_ctor_set(x_69, 1, x_68); return x_69; } } +else +{ +lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; uint8_t x_80; +x_76 = lean_ctor_get(x_69, 0); +x_77 = lean_ctor_get(x_69, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_69); +x_78 = lean_ptr_addr(x_68); +lean_dec(x_68); +x_79 = lean_ptr_addr(x_76); +x_80 = lean_usize_dec_eq(x_78, x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_1); +x_81 = l_Lean_Expr_mdata___override(x_67, x_76); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_77); +return x_82; +} +else +{ +lean_object* x_83; +lean_dec(x_76); +lean_dec(x_67); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_1); +lean_ctor_set(x_83, 1, x_77); +return x_83; +} } } else { -uint8_t x_70; -x_70 = !lean_is_exclusive(x_8); -if (x_70 == 0) +uint8_t x_84; +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_1); +x_84 = !lean_is_exclusive(x_69); +if (x_84 == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_71 = lean_ctor_get(x_8, 1); -x_72 = lean_ctor_get(x_8, 0); -lean_dec(x_72); -x_73 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__2___closed__4; -x_74 = l_Lean_Expr_isAppOf(x_1, x_73); -if (x_74 == 0) +return x_69; +} +else { -lean_object* x_75; lean_object* x_76; -lean_free_object(x_8); -x_75 = lean_box(0); -x_76 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__3(x_1, x_75, x_2, x_3, x_4, x_5, x_6, x_71); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_69, 0); +x_86 = lean_ctor_get(x_69, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_69); +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; +} +} +} +case 11: +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_8, 1); +lean_inc(x_88); +lean_dec(x_8); +x_89 = lean_ctor_get(x_1, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_1, 1); +lean_inc(x_90); +x_91 = lean_ctor_get(x_1, 2); +lean_inc(x_91); +lean_inc(x_91); +x_92 = l_Lean_Meta_Grind_markNestedProofsImpl_visit(x_91, x_2, x_3, x_4, x_5, x_6, x_88); +if (lean_obj_tag(x_92) == 0) +{ +uint8_t x_93; +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; size_t x_95; size_t x_96; uint8_t x_97; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ptr_addr(x_91); +lean_dec(x_91); +x_96 = lean_ptr_addr(x_94); +x_97 = lean_usize_dec_eq(x_95, x_96); +if (x_97 == 0) +{ +lean_object* x_98; +lean_dec(x_1); +x_98 = l_Lean_Expr_proj___override(x_89, x_90, x_94); +lean_ctor_set(x_92, 0, x_98); +return x_92; +} +else +{ +lean_dec(x_94); +lean_dec(x_90); +lean_dec(x_89); +lean_ctor_set(x_92, 0, x_1); +return x_92; +} +} +else +{ +lean_object* x_99; lean_object* x_100; size_t x_101; size_t x_102; uint8_t x_103; +x_99 = lean_ctor_get(x_92, 0); +x_100 = lean_ctor_get(x_92, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_92); +x_101 = lean_ptr_addr(x_91); +lean_dec(x_91); +x_102 = lean_ptr_addr(x_99); +x_103 = lean_usize_dec_eq(x_101, x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_1); +x_104 = l_Lean_Expr_proj___override(x_89, x_90, x_99); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_100); +return x_105; +} +else +{ +lean_object* x_106; +lean_dec(x_99); +lean_dec(x_90); +lean_dec(x_89); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_1); +lean_ctor_set(x_106, 1, x_100); +return x_106; +} +} +} +else +{ +uint8_t x_107; +lean_dec(x_91); +lean_dec(x_90); +lean_dec(x_89); +lean_dec(x_1); +x_107 = !lean_is_exclusive(x_92); +if (x_107 == 0) +{ +return x_92; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_92, 0); +x_109 = lean_ctor_get(x_92, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_92); +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; +} +} +} +default: +{ +uint8_t x_111; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -return x_76; +x_111 = !lean_is_exclusive(x_8); +if (x_111 == 0) +{ +lean_object* x_112; +x_112 = lean_ctor_get(x_8, 0); +lean_dec(x_112); +lean_ctor_set(x_8, 0, x_1); +return x_8; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_8, 1); +lean_inc(x_113); +lean_dec(x_8); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_1); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +} +else +{ +uint8_t x_115; +x_115 = !lean_is_exclusive(x_8); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_116 = lean_ctor_get(x_8, 1); +x_117 = lean_ctor_get(x_8, 0); +lean_dec(x_117); +x_118 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__2___closed__4; +x_119 = l_Lean_Expr_isAppOf(x_1, x_118); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; +lean_free_object(x_8); +x_120 = lean_box(0); +x_121 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__3(x_1, x_120, x_2, x_3, x_4, x_5, x_6, x_116); +lean_dec(x_2); +return x_121; } else { @@ -5607,62 +5814,62 @@ return x_8; } else { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_8, 1); -lean_inc(x_77); +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_ctor_get(x_8, 1); +lean_inc(x_122); lean_dec(x_8); -x_78 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__2___closed__4; -x_79 = l_Lean_Expr_isAppOf(x_1, x_78); -if (x_79 == 0) +x_123 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__2___closed__4; +x_124 = l_Lean_Expr_isAppOf(x_1, x_123); +if (x_124 == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_box(0); -x_81 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__3(x_1, x_80, x_2, x_3, x_4, x_5, x_6, x_77); +lean_object* x_125; lean_object* x_126; +x_125 = lean_box(0); +x_126 = l_Lean_Meta_Grind_markNestedProofsImpl_visit___lambda__3(x_1, x_125, x_2, x_3, x_4, x_5, x_6, x_122); lean_dec(x_2); -return x_81; +return x_126; } else { -lean_object* x_82; +lean_object* x_127; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_1); -lean_ctor_set(x_82, 1, x_77); -return x_82; +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_1); +lean_ctor_set(x_127, 1, x_122); +return x_127; } } } } else { -uint8_t x_83; +uint8_t x_128; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_83 = !lean_is_exclusive(x_8); -if (x_83 == 0) +x_128 = !lean_is_exclusive(x_8); +if (x_128 == 0) { return x_8; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_8, 0); -x_85 = lean_ctor_get(x_8, 1); -lean_inc(x_85); -lean_inc(x_84); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_8, 0); +x_130 = lean_ctor_get(x_8, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_8); -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_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; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c index d1b03fc76b..0e511d3997 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c @@ -14,12 +14,14 @@ extern "C" { #endif static lean_object* l_Lean_Meta_Grind_ppENodeRef___closed__3; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_ppExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppState___spec__1___closed__1; static lean_object* l_Lean_Meta_Grind_ppENodeDecl___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__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* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppState___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*); static lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__2___closed__4; static lean_object* l_Lean_Meta_Grind_ppENodeDecl___closed__3; @@ -45,6 +47,8 @@ static lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDeclValue(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_ppENodeDecl___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_ppENodeDecl___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -53,6 +57,7 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppState___ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppState___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_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__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_ppENodeDecl___lambda__4___closed__2; static lean_object* l_Lean_Meta_Grind_ppENodeDecl___closed__2; uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); @@ -60,20 +65,24 @@ static lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppState___spec__3 LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__1(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_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_ppENodeDeclValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppState___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getENodes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppENodeDeclValue___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_ppENodeDecl___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDeclValue___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_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(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_ppENodeDecl___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppState___spec__3___closed__4; static lean_object* l_Lean_Meta_Grind_ppState___closed__2; static lean_object* l_Lean_Meta_Grind_ppENodeDeclValue___closed__1; +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___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* l_Std_Format_joinSep___at_Prod_repr___spec__1(lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_ppENodeDeclValue___spec__2___lambda__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_List_forIn_x27_loop___at_Lean_Meta_Grind_ppState___spec__3___closed__5; lean_object* l_Lean_Meta_Grind_getENode_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,6 +95,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeDecl(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppENodeRef___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_add(size_t, size_t); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppState___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -93,6 +103,7 @@ static lean_object* l_Lean_Meta_Grind_ppENodeRef___closed__4; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_ppENodeDeclValue___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppENodeDeclValue___spec__1___closed__2; uint8_t l_Lean_Expr_isConst(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppGoals(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_ppState___closed__1; lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1943,6 +1954,422 @@ lean_dec(x_1); return x_16; } } +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_1); +x_10 = l_Lean_Meta_Grind_ppState(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_1, x_12); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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(0, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_17); +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 +{ +uint8_t x_21; +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_10); +if (x_21 == 0) +{ +return x_10; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__2), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___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) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_15; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_4); +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; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1___boxed), 9, 1); +lean_closure_set(x_20, 0, x_17); +x_21 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1; +x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_22, 0, x_20); +lean_closure_set(x_22, 1, x_21); +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); +x_23 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_19, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +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(x_23); +x_26 = !lean_is_exclusive(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_24, 0); +x_28 = lean_ctor_get(x_24, 1); +lean_dec(x_28); +x_29 = lean_box(1); +lean_ctor_set_tag(x_24, 5); +lean_ctor_set(x_24, 1, x_29); +lean_ctor_set(x_24, 0, x_5); +lean_ctor_set_tag(x_4, 5); +lean_ctor_set(x_4, 1, x_27); +lean_ctor_set(x_4, 0, x_24); +{ +lean_object* _tmp_3 = x_18; +lean_object* _tmp_4 = x_4; +lean_object* _tmp_5 = lean_box(0); +lean_object* _tmp_13 = x_25; +x_4 = _tmp_3; +x_5 = _tmp_4; +x_6 = _tmp_5; +x_14 = _tmp_13; +} +goto _start; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_24, 0); +lean_inc(x_31); +lean_dec(x_24); +x_32 = lean_box(1); +x_33 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set_tag(x_4, 5); +lean_ctor_set(x_4, 1, x_31); +lean_ctor_set(x_4, 0, x_33); +{ +lean_object* _tmp_3 = x_18; +lean_object* _tmp_4 = x_4; +lean_object* _tmp_5 = lean_box(0); +lean_object* _tmp_13 = x_25; +x_4 = _tmp_3; +x_5 = _tmp_4; +x_6 = _tmp_5; +x_14 = _tmp_13; +} +goto _start; +} +} +else +{ +uint8_t x_35; +lean_free_object(x_4); +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +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 +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_39 = lean_ctor_get(x_4, 0); +x_40 = lean_ctor_get(x_4, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_4); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1___boxed), 9, 1); +lean_closure_set(x_42, 0, x_39); +x_43 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1; +x_44 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_44, 0, x_42); +lean_closure_set(x_44, 1, x_43); +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); +x_45 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_41, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +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(x_45); +x_48 = lean_ctor_get(x_46, 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; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +x_50 = lean_box(1); +if (lean_is_scalar(x_49)) { + x_51 = lean_alloc_ctor(5, 2, 0); +} else { + x_51 = x_49; + lean_ctor_set_tag(x_51, 5); +} +lean_ctor_set(x_51, 0, x_5); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_48); +x_4 = x_40; +x_5 = x_52; +x_6 = lean_box(0); +x_14 = x_47; +goto _start; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_40); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_54 = lean_ctor_get(x_45, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_45, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_56 = x_45; +} else { + lean_dec_ref(x_45); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_box(0); +x_11 = l_Lean_Meta_Grind_ppENodeRef___closed__6; +lean_inc(x_1); +x_12 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1(x_1, x_10, x_1, x_1, x_11, lean_box(0), x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___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) { +_start: +{ +lean_object* x_15; +x_15 = l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} lean_object* initialize_Init_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -2018,6 +2445,8 @@ l_Lean_Meta_Grind_ppState___closed__1 = _init_l_Lean_Meta_Grind_ppState___closed lean_mark_persistent(l_Lean_Meta_Grind_ppState___closed__1); l_Lean_Meta_Grind_ppState___closed__2 = _init_l_Lean_Meta_Grind_ppState___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_ppState___closed__2); +l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1 = _init_l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_Meta_Grind_ppGoals___spec__1___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c deleted file mode 100644 index 3e7d841bf4..0000000000 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c +++ /dev/null @@ -1,8623 +0,0 @@ -// Lean compiler output -// Module: Lean.Meta.Tactic.Grind.Preprocessor -// Imports: Init.Grind.Lemmas Lean.Meta.Canonicalizer Lean.Meta.Tactic.Util Lean.Meta.Tactic.Intro Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Run -#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_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_bindingName_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_injection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___boxed(lean_object**); -static lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___closed__3; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(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_Preprocessor_introNext___lambda__5___closed__2; -lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1___lambda__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_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__3___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_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___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*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___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_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___lambda__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_Preprocessor_preprocess___lambda__1___boxed(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_isLet(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_usize_dec_eq(size_t, size_t); -LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3; -size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_Meta_Grind_getMainDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_toList___rarg(lean_object*); -lean_object* l_Lean_MVarId_revertAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__6(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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___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_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__5(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_Preprocessor_preprocess___closed__5; -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__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_Preprocessor_loop___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2; -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg(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*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5(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_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop(lean_object*, 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_Preprocessor_preprocess___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_Preprocessor_preprocess___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3(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_Preprocessor_introNext___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1(lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4(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_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MessageData_ofFormat(lean_object*); -lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__3; -static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -lean_object* lean_st_mk_ref(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_isGrindCasesTarget(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_checkInvariants(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_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_ppGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_ppState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_Lean_Meta_Grind_Preprocessor_preprocess___closed__2; -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___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_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_GrindM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___closed__4; -uint8_t l_Lean_Expr_isArrow(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_MVarId_clearAuxDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MVarId_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_Preprocessor_ppGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocessAndProbe(lean_object*, lean_object*, 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_Preprocessor_PreM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MVarId_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_mkLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_main___closed__1; -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__2(lean_object*, lean_object*); -double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_LocalDecl_userName(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3(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_Lean_Meta_Grind_Preprocessor_isCasesCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___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* l_Lean_Expr_bindingDomain_x21(lean_object*); -lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___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*); -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___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*); -lean_object* l_Lean_MVarId_ensureNoMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1(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*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed(lean_object**); -static double l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalDecl_type(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__5(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_Lean_Meta_Grind_Preprocessor_applyInjection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MVarId_transformTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_resetCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_getAppFn(lean_object*); -lean_object* l_List_reverse___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___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_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___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_MVarId_byContra_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_mk(lean_object*); -lean_object* l_Lean_MVarId_ensureProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); -size_t lean_usize_add(size_t, size_t); -lean_object* l_Lean_Meta_Grind_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_Expr_fvar___override(lean_object*); -size_t lean_array_size(lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___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_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed(lean_object**); -lean_object* l_Lean_Meta_Grind_unfoldReducible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___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_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__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_Preprocessor_introNext___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2(lean_object*); -lean_object* l_Lean_Meta_Grind_addHyp(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_Preprocessor_instInhabitedState___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__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_Preprocessor_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___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_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState; -lean_object* l_Lean_Meta_Grind_mkGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_nat_dec_le(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__1(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_lt(size_t, size_t); -static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1; -lean_object* l_Lean_Meta_Grind_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2; -lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_Meta_Grind_Preprocessor_isCasesCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); -uint8_t l_Lean_Expr_isForall(lean_object*); -lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2; -lean_object* l_Lean_MVarId_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4(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* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1() { -_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_Preprocessor_instInhabitedState___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static size_t _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3() { -_start: -{ -lean_object* x_1; size_t x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_usize_of_nat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2; -x_2 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1; -x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3; -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_2); -lean_ctor_set(x_5, 2, x_3); -lean_ctor_set(x_5, 3, x_3); -lean_ctor_set_usize(x_5, 4, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___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_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3() { -_start: -{ -size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 5; -x_2 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2; -x_3 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_4); -lean_ctor_set(x_5, 3, x_4); -lean_ctor_set_usize(x_5, 4, x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3; -x_11 = lean_st_mk_ref(x_10, x_9); -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(x_11); -lean_inc(x_12); -x_14 = lean_apply_9(x_1, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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(x_14); -x_17 = lean_st_ref_get(x_12, x_16); -lean_dec(x_12); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_15); -return x_17; -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_15); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -lean_dec(x_12); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg), 9, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_12 = lean_apply_9(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(x_12); -x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_15; -} -else -{ -uint8_t x_16; -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); -lean_dec(x_2); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -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_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; -x_12 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); -x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(x_1, x_12, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg), 11, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_3 = lean_st_ref_get(x_1, x_2); -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_4, 2); -lean_inc(x_5); -lean_dec(x_4); -x_6 = lean_ctor_get(x_3, 1); -lean_inc(x_6); -lean_dec(x_3); -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_8 = lean_ctor_get(x_5, 0); -x_9 = lean_ctor_get(x_5, 1); -lean_inc(x_9); -lean_inc(x_8); -x_10 = l_Lean_Name_num___override(x_8, x_9); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_9, x_11); -lean_dec(x_9); -lean_ctor_set(x_5, 1, x_12); -x_13 = lean_st_ref_take(x_1, x_6); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_14, 2); -lean_dec(x_17); -lean_ctor_set(x_14, 2, x_5); -x_18 = lean_st_ref_set(x_1, x_14, x_15); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_10); -return x_18; -} -else -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_10); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); -x_25 = lean_ctor_get(x_14, 3); -x_26 = lean_ctor_get(x_14, 4); -x_27 = lean_ctor_get(x_14, 5); -x_28 = lean_ctor_get(x_14, 6); -x_29 = lean_ctor_get(x_14, 7); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_14); -x_30 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -lean_ctor_set(x_30, 2, x_5); -lean_ctor_set(x_30, 3, x_25); -lean_ctor_set(x_30, 4, x_26); -lean_ctor_set(x_30, 5, x_27); -lean_ctor_set(x_30, 6, x_28); -lean_ctor_set(x_30, 7, x_29); -x_31 = lean_st_ref_set(x_1, x_30, x_15); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_33 = x_31; -} else { - lean_dec_ref(x_31); - x_33 = lean_box(0); -} -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(0, 2, 0); -} else { - x_34 = x_33; -} -lean_ctor_set(x_34, 0, x_10); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 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_35 = lean_ctor_get(x_5, 0); -x_36 = lean_ctor_get(x_5, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_5); -lean_inc(x_36); -lean_inc(x_35); -x_37 = l_Lean_Name_num___override(x_35, x_36); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_36, x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_39); -x_41 = lean_st_ref_take(x_1, x_6); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_ctor_get(x_42, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_42, 3); -lean_inc(x_46); -x_47 = lean_ctor_get(x_42, 4); -lean_inc(x_47); -x_48 = lean_ctor_get(x_42, 5); -lean_inc(x_48); -x_49 = lean_ctor_get(x_42, 6); -lean_inc(x_49); -x_50 = lean_ctor_get(x_42, 7); -lean_inc(x_50); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - lean_ctor_release(x_42, 2); - lean_ctor_release(x_42, 3); - lean_ctor_release(x_42, 4); - lean_ctor_release(x_42, 5); - lean_ctor_release(x_42, 6); - lean_ctor_release(x_42, 7); - x_51 = x_42; -} else { - lean_dec_ref(x_42); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(0, 8, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_44); -lean_ctor_set(x_52, 1, x_45); -lean_ctor_set(x_52, 2, x_40); -lean_ctor_set(x_52, 3, x_46); -lean_ctor_set(x_52, 4, x_47); -lean_ctor_set(x_52, 5, x_48); -lean_ctor_set(x_52, 6, x_49); -lean_ctor_set(x_52, 7, x_50); -x_53 = lean_st_ref_set(x_1, x_52, x_43); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_37); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___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) { -_start: -{ -lean_object* x_8; -x_8 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg___boxed), 2, 0); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__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; uint8_t x_11; -x_10 = l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg(x_8, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -return x_10; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_st_ref_take(x_8, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -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; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_14, 7); -x_20 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_19, x_1, x_2); -lean_ctor_set(x_14, 7, x_20); -x_21 = lean_st_ref_set(x_8, x_13, x_15); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -x_24 = lean_box(0); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_21, 1); -lean_inc(x_25); -lean_dec(x_21); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -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; -x_28 = lean_ctor_get(x_14, 0); -x_29 = lean_ctor_get(x_14, 1); -x_30 = lean_ctor_get(x_14, 2); -x_31 = lean_ctor_get(x_14, 3); -x_32 = lean_ctor_get(x_14, 4); -x_33 = lean_ctor_get(x_14, 5); -x_34 = lean_ctor_get(x_14, 6); -x_35 = lean_ctor_get(x_14, 7); -x_36 = lean_ctor_get(x_14, 8); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_14); -x_37 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_35, x_1, x_2); -x_38 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_38, 0, x_28); -lean_ctor_set(x_38, 1, x_29); -lean_ctor_set(x_38, 2, x_30); -lean_ctor_set(x_38, 3, x_31); -lean_ctor_set(x_38, 4, x_32); -lean_ctor_set(x_38, 5, x_33); -lean_ctor_set(x_38, 6, x_34); -lean_ctor_set(x_38, 7, x_37); -lean_ctor_set(x_38, 8, x_36); -lean_ctor_set(x_13, 0, x_38); -x_39 = lean_st_ref_set(x_8, x_13, x_15); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -x_42 = lean_box(0); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -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; 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; -x_44 = lean_ctor_get(x_13, 1); -x_45 = lean_ctor_get(x_13, 2); -x_46 = lean_ctor_get(x_13, 3); -x_47 = lean_ctor_get(x_13, 4); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_13); -x_48 = lean_ctor_get(x_14, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_14, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_14, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_14, 3); -lean_inc(x_51); -x_52 = lean_ctor_get(x_14, 4); -lean_inc(x_52); -x_53 = lean_ctor_get(x_14, 5); -lean_inc(x_53); -x_54 = lean_ctor_get(x_14, 6); -lean_inc(x_54); -x_55 = lean_ctor_get(x_14, 7); -lean_inc(x_55); -x_56 = lean_ctor_get(x_14, 8); -lean_inc(x_56); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - lean_ctor_release(x_14, 2); - lean_ctor_release(x_14, 3); - lean_ctor_release(x_14, 4); - lean_ctor_release(x_14, 5); - lean_ctor_release(x_14, 6); - lean_ctor_release(x_14, 7); - lean_ctor_release(x_14, 8); - x_57 = x_14; -} else { - lean_dec_ref(x_14); - x_57 = lean_box(0); -} -x_58 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_55, x_1, x_2); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 9, 0); -} else { - x_59 = x_57; -} -lean_ctor_set(x_59, 0, x_48); -lean_ctor_set(x_59, 1, x_49); -lean_ctor_set(x_59, 2, x_50); -lean_ctor_set(x_59, 3, x_51); -lean_ctor_set(x_59, 4, x_52); -lean_ctor_set(x_59, 5, x_53); -lean_ctor_set(x_59, 6, x_54); -lean_ctor_set(x_59, 7, x_58); -lean_ctor_set(x_59, 8, x_56); -x_60 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_44); -lean_ctor_set(x_60, 2, x_45); -lean_ctor_set(x_60, 3, x_46); -lean_ctor_set(x_60, 4, x_47); -x_61 = lean_st_ref_set(x_8, x_60, x_15); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_63 = x_61; -} else { - lean_dec_ref(x_61); - x_63 = lean_box(0); -} -x_64 = lean_box(0); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 2, 0); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); -return x_65; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_FVarId_getDecl(x_1, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { -_start: -{ -lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_LocalDecl_type(x_11); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_21); -x_22 = l_Lean_Meta_isProp(x_21, x_16, x_17, x_18, x_19, x_20); -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_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) -{ -uint8_t x_25; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_25 = !lean_is_exclusive(x_22); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 0); -lean_dec(x_26); -x_27 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_27, 0, x_1); -lean_ctor_set(x_27, 1, x_2); -lean_ctor_set(x_27, 2, x_3); -lean_ctor_set(x_27, 3, x_4); -lean_ctor_set(x_27, 4, x_5); -lean_ctor_set(x_27, 5, x_6); -lean_ctor_set(x_27, 6, x_8); -lean_ctor_set(x_27, 7, x_9); -lean_ctor_set_uint8(x_27, sizeof(void*)*8, x_7); -x_28 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_28, 0, x_10); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_22, 0, x_28); -return x_22; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_22, 1); -lean_inc(x_29); -lean_dec(x_22); -x_30 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_30, 1, x_2); -lean_ctor_set(x_30, 2, x_3); -lean_ctor_set(x_30, 3, x_4); -lean_ctor_set(x_30, 4, x_5); -lean_ctor_set(x_30, 5, x_6); -lean_ctor_set(x_30, 6, x_8); -lean_ctor_set(x_30, 7, x_9); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_7); -x_31 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_31, 0, x_10); -lean_ctor_set(x_31, 1, 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_29); -return x_32; -} -} -else -{ -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_33 = lean_ctor_get(x_22, 1); -lean_inc(x_33); -lean_dec(x_22); -x_34 = l_Lean_LocalDecl_userName(x_11); -x_35 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_34, x_18, x_19, x_33); -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(x_35); -x_38 = l_Lean_Expr_fvar___override(x_10); -x_39 = l_Lean_MVarId_assert(x_1, x_36, x_21, x_38, x_16, x_17, x_18, x_19, x_37); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_2); -lean_ctor_set(x_42, 2, x_3); -lean_ctor_set(x_42, 3, x_4); -lean_ctor_set(x_42, 4, x_5); -lean_ctor_set(x_42, 5, x_6); -lean_ctor_set(x_42, 6, x_8); -lean_ctor_set(x_42, 7, x_9); -lean_ctor_set_uint8(x_42, sizeof(void*)*8, x_7); -x_43 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_39, 0, x_43); -return x_39; -} -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_39, 0); -x_45 = lean_ctor_get(x_39, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_39); -x_46 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_2); -lean_ctor_set(x_46, 2, x_3); -lean_ctor_set(x_46, 3, x_4); -lean_ctor_set(x_46, 4, x_5); -lean_ctor_set(x_46, 5, x_6); -lean_ctor_set(x_46, 6, x_8); -lean_ctor_set(x_46, 7, x_9); -lean_ctor_set_uint8(x_46, sizeof(void*)*8, x_7); -x_47 = lean_alloc_ctor(2, 1, 0); -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 -{ -uint8_t x_49; -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_49 = !lean_is_exclusive(x_39); -if (x_49 == 0) -{ -return x_39; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_39, 0); -x_51 = lean_ctor_get(x_39, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_39); -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_53; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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); -lean_dec(x_1); -x_53 = !lean_is_exclusive(x_22); -if (x_53 == 0) -{ -return x_22; -} -else -{ -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_dec(x_22); -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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_isProp(x_1, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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 = 0; -x_12 = 1; -x_13 = 1; -x_14 = l_Lean_Meta_mkLambdaFVars(x_1, x_2, x_11, x_12, x_11, x_13, x_6, x_7, x_8, x_9, x_10); -return x_14; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1() { -_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_Preprocessor_introNext___lambda__5___closed__2() { -_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_Preprocessor_introNext___lambda__5___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("intro_with_eq", 13, 13); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1; -x_2 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2; -x_3 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__3; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, 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) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_27; uint8_t x_28; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_27 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -x_30 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_30, 0, x_3); -lean_ctor_set(x_30, 1, x_4); -lean_ctor_set(x_30, 2, x_5); -lean_ctor_set(x_30, 3, x_6); -lean_ctor_set(x_30, 4, x_7); -lean_ctor_set(x_30, 5, x_8); -lean_ctor_set(x_30, 6, x_10); -lean_ctor_set(x_30, 7, x_11); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_9); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_12); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_27, 0, x_31); -return x_27; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_dec(x_27); -x_33 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_33, 0, x_3); -lean_ctor_set(x_33, 1, x_4); -lean_ctor_set(x_33, 2, x_5); -lean_ctor_set(x_33, 3, x_6); -lean_ctor_set(x_33, 4, x_7); -lean_ctor_set(x_33, 5, x_8); -lean_ctor_set(x_33, 6, x_10); -lean_ctor_set(x_33, 7, x_11); -lean_ctor_set_uint8(x_33, sizeof(void*)*8, x_9); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_12); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; -} -} -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; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_36 = lean_ctor_get(x_1, 0); -x_37 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4; -lean_inc(x_13); -x_38 = l_Lean_Expr_const___override(x_37, x_13); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_17); -lean_ctor_set(x_39, 1, x_13); -lean_inc(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_36); -lean_ctor_set(x_40, 1, x_39); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_14); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_15); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_16); -lean_ctor_set(x_43, 1, x_42); -x_44 = lean_array_mk(x_43); -x_45 = l_Lean_mkAppN(x_38, x_44); -lean_dec(x_44); -x_46 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_45, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); -lean_dec(x_48); -x_49 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_49, 0, x_3); -lean_ctor_set(x_49, 1, x_4); -lean_ctor_set(x_49, 2, x_5); -lean_ctor_set(x_49, 3, x_6); -lean_ctor_set(x_49, 4, x_7); -lean_ctor_set(x_49, 5, x_8); -lean_ctor_set(x_49, 6, x_10); -lean_ctor_set(x_49, 7, x_11); -lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_9); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_12); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_46, 0, x_50); -return x_46; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_46, 1); -lean_inc(x_51); -lean_dec(x_46); -x_52 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_52, 0, x_3); -lean_ctor_set(x_52, 1, x_4); -lean_ctor_set(x_52, 2, x_5); -lean_ctor_set(x_52, 3, x_6); -lean_ctor_set(x_52, 4, x_7); -lean_ctor_set(x_52, 5, x_8); -lean_ctor_set(x_52, 6, x_10); -lean_ctor_set(x_52, 7, x_11); -lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_9); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_12); -lean_ctor_set(x_53, 1, x_52); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_54; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, uint8_t x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20, lean_object* x_21) { -_start: -{ -if (x_12 == 0) -{ -uint8_t x_22; lean_object* x_23; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_11); -x_22 = 1; -x_23 = l_Lean_Meta_intro1Core(x_1, x_22, x_17, x_18, x_19, x_20, x_21); -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; uint8_t x_26; -x_25 = lean_ctor_get(x_23, 0); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 1); -x_28 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_2); -lean_ctor_set(x_28, 2, x_3); -lean_ctor_set(x_28, 3, x_4); -lean_ctor_set(x_28, 4, x_5); -lean_ctor_set(x_28, 5, x_6); -lean_ctor_set(x_28, 6, x_8); -lean_ctor_set(x_28, 7, x_9); -lean_ctor_set_uint8(x_28, sizeof(void*)*8, x_7); -lean_ctor_set_tag(x_25, 3); -lean_ctor_set(x_25, 1, x_28); -return x_23; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -x_31 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_2); -lean_ctor_set(x_31, 2, x_3); -lean_ctor_set(x_31, 3, x_4); -lean_ctor_set(x_31, 4, x_5); -lean_ctor_set(x_31, 5, x_6); -lean_ctor_set(x_31, 6, x_8); -lean_ctor_set(x_31, 7, x_9); -lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_7); -x_32 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_32, 0, x_29); -lean_ctor_set(x_32, 1, x_31); -lean_ctor_set(x_23, 0, x_32); -return x_23; -} -} -else -{ -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; -x_33 = lean_ctor_get(x_23, 0); -x_34 = lean_ctor_get(x_23, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_23); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_37 = x_33; -} else { - lean_dec_ref(x_33); - x_37 = lean_box(0); -} -x_38 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_2); -lean_ctor_set(x_38, 2, x_3); -lean_ctor_set(x_38, 3, x_4); -lean_ctor_set(x_38, 4, x_5); -lean_ctor_set(x_38, 5, x_6); -lean_ctor_set(x_38, 6, x_8); -lean_ctor_set(x_38, 7, x_9); -lean_ctor_set_uint8(x_38, sizeof(void*)*8, x_7); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(3, 2, 0); -} else { - x_39 = x_37; - lean_ctor_set_tag(x_39, 3); -} -lean_ctor_set(x_39, 0, x_35); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_34); -return x_40; -} -} -else -{ -uint8_t x_41; -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_41 = !lean_is_exclusive(x_23); -if (x_41 == 0) -{ -return x_23; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_23, 0); -x_43 = lean_ctor_get(x_23, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_23); -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_inc(x_1); -x_45 = l_Lean_MVarId_getTag(x_1, x_17, x_18, x_19, x_20, x_21); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -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(x_45); -x_48 = l_Lean_Expr_bindingBody_x21(x_10); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_15); -lean_inc(x_11); -x_49 = l_Lean_Meta_Grind_pre(x_11, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_47); -if (lean_obj_tag(x_49) == 0) -{ -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; uint8_t x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_51); -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(x_52); -x_55 = lean_ctor_get(x_17, 2); -lean_inc(x_55); -x_56 = l_Lean_Expr_bindingName_x21(x_10); -x_57 = lean_ctor_get(x_50, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_50, 1); -lean_inc(x_58); -lean_dec(x_50); -x_59 = l_Lean_Expr_bindingInfo_x21(x_10); -x_60 = lean_unbox(x_59); -lean_dec(x_59); -x_61 = 0; -lean_inc(x_57); -lean_inc(x_53); -x_62 = l_Lean_LocalContext_mkLocalDecl(x_55, x_53, x_56, x_57, x_60, x_61); -x_63 = l_Lean_Meta_getLocalInstances(x_17, x_18, x_19, x_20, x_54); -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(x_63); -x_66 = 2; -x_67 = lean_unsigned_to_nat(0u); -lean_inc(x_48); -x_68 = l_Lean_Meta_mkFreshExprMVarAt(x_62, x_64, x_48, x_66, x_46, x_67, x_17, x_18, x_19, x_20, x_65); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_70 = lean_ctor_get(x_68, 0); -x_71 = lean_ctor_get(x_68, 1); -x_72 = l_Lean_Expr_mvarId_x21(x_70); -lean_inc(x_53); -x_73 = l_Lean_Expr_fvar___override(x_53); -x_74 = lean_box(0); -lean_ctor_set_tag(x_68, 1); -lean_ctor_set(x_68, 1, x_74); -lean_ctor_set(x_68, 0, x_73); -x_75 = lean_array_mk(x_68); -x_76 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___boxed), 10, 2); -lean_closure_set(x_76, 0, x_75); -lean_closure_set(x_76, 1, x_70); -x_77 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_77, 0, x_76); -x_78 = lean_box(x_7); -lean_inc(x_72); -x_79 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed), 26, 16); -lean_closure_set(x_79, 0, x_58); -lean_closure_set(x_79, 1, x_1); -lean_closure_set(x_79, 2, x_72); -lean_closure_set(x_79, 3, x_2); -lean_closure_set(x_79, 4, x_3); -lean_closure_set(x_79, 5, x_4); -lean_closure_set(x_79, 6, x_5); -lean_closure_set(x_79, 7, x_6); -lean_closure_set(x_79, 8, x_78); -lean_closure_set(x_79, 9, x_8); -lean_closure_set(x_79, 10, x_9); -lean_closure_set(x_79, 11, x_53); -lean_closure_set(x_79, 12, x_74); -lean_closure_set(x_79, 13, x_48); -lean_closure_set(x_79, 14, x_57); -lean_closure_set(x_79, 15, x_11); -x_80 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_80, 0, x_77); -lean_closure_set(x_80, 1, x_79); -x_81 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_72, x_80, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_71); -return x_81; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_82 = lean_ctor_get(x_68, 0); -x_83 = lean_ctor_get(x_68, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_68); -x_84 = l_Lean_Expr_mvarId_x21(x_82); -lean_inc(x_53); -x_85 = l_Lean_Expr_fvar___override(x_53); -x_86 = lean_box(0); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_array_mk(x_87); -x_89 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___boxed), 10, 2); -lean_closure_set(x_89, 0, x_88); -lean_closure_set(x_89, 1, x_82); -x_90 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_90, 0, x_89); -x_91 = lean_box(x_7); -lean_inc(x_84); -x_92 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed), 26, 16); -lean_closure_set(x_92, 0, x_58); -lean_closure_set(x_92, 1, x_1); -lean_closure_set(x_92, 2, x_84); -lean_closure_set(x_92, 3, x_2); -lean_closure_set(x_92, 4, x_3); -lean_closure_set(x_92, 5, x_4); -lean_closure_set(x_92, 6, x_5); -lean_closure_set(x_92, 7, x_6); -lean_closure_set(x_92, 8, x_91); -lean_closure_set(x_92, 9, x_8); -lean_closure_set(x_92, 10, x_9); -lean_closure_set(x_92, 11, x_53); -lean_closure_set(x_92, 12, x_86); -lean_closure_set(x_92, 13, x_48); -lean_closure_set(x_92, 14, x_57); -lean_closure_set(x_92, 15, x_11); -x_93 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_93, 0, x_90); -lean_closure_set(x_93, 1, x_92); -x_94 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_84, x_93, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_83); -return x_94; -} -} -else -{ -uint8_t x_95; -lean_dec(x_48); -lean_dec(x_46); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_11); -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); -lean_dec(x_1); -x_95 = !lean_is_exclusive(x_49); -if (x_95 == 0) -{ -return x_49; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_49, 0); -x_97 = lean_ctor_get(x_49, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_49); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -else -{ -uint8_t x_99; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_11); -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); -lean_dec(x_1); -x_99 = !lean_is_exclusive(x_45); -if (x_99 == 0) -{ -return x_45; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_45, 0); -x_101 = lean_ctor_get(x_45, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_45); -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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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(x_13); -x_14 = lean_ctor_get(x_1, 3); -lean_inc(x_14); -x_15 = lean_ctor_get(x_1, 4); -lean_inc(x_15); -x_16 = lean_ctor_get(x_1, 5); -lean_inc(x_16); -x_17 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -x_18 = lean_ctor_get(x_1, 6); -lean_inc(x_18); -x_19 = lean_ctor_get(x_1, 7); -lean_inc(x_19); -lean_dec(x_1); -lean_inc(x_11); -x_20 = l_Lean_MVarId_getType(x_11, x_6, x_7, x_8, x_9, x_10); -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_22; lean_object* x_23; lean_object* x_24; uint8_t x_42; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_42 = l_Lean_Expr_isArrow(x_22); -if (x_42 == 0) -{ -uint8_t x_43; -x_43 = l_Lean_Expr_isLet(x_22); -if (x_43 == 0) -{ -uint8_t x_44; -x_44 = l_Lean_Expr_isForall(x_22); -lean_dec(x_22); -if (x_44 == 0) -{ -lean_object* x_45; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -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_45 = lean_box(0); -lean_ctor_set(x_20, 0, x_45); -return x_20; -} -else -{ -lean_object* x_46; -lean_free_object(x_20); -x_46 = lean_box(0); -x_24 = x_46; -goto block_41; -} -} -else -{ -lean_object* x_47; -lean_free_object(x_20); -lean_dec(x_22); -x_47 = lean_box(0); -x_24 = x_47; -goto block_41; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_free_object(x_20); -x_48 = l_Lean_Expr_bindingDomain_x21(x_22); -lean_inc(x_48); -x_49 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 9, 1); -lean_closure_set(x_49, 0, x_48); -x_50 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_50, 0, x_49); -x_51 = lean_box(x_17); -lean_inc(x_11); -x_52 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 21, 11); -lean_closure_set(x_52, 0, x_11); -lean_closure_set(x_52, 1, x_12); -lean_closure_set(x_52, 2, x_13); -lean_closure_set(x_52, 3, x_14); -lean_closure_set(x_52, 4, x_15); -lean_closure_set(x_52, 5, x_16); -lean_closure_set(x_52, 6, x_51); -lean_closure_set(x_52, 7, x_18); -lean_closure_set(x_52, 8, x_19); -lean_closure_set(x_52, 9, x_22); -lean_closure_set(x_52, 10, x_48); -x_53 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_53, 0, x_50); -lean_closure_set(x_53, 1, x_52); -x_54 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); -return x_54; -} -block_41: -{ -uint8_t x_25; lean_object* x_26; -lean_dec(x_24); -x_25 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_26 = l_Lean_Meta_intro1Core(x_11, x_25, x_6, x_7, x_8, x_9, x_23); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -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(x_26); -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -lean_inc(x_29); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 9, 1); -lean_closure_set(x_31, 0, x_29); -x_32 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_32, 0, x_31); -x_33 = lean_box(x_17); -lean_inc(x_30); -x_34 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 20, 10); -lean_closure_set(x_34, 0, x_30); -lean_closure_set(x_34, 1, x_12); -lean_closure_set(x_34, 2, x_13); -lean_closure_set(x_34, 3, x_14); -lean_closure_set(x_34, 4, x_15); -lean_closure_set(x_34, 5, x_16); -lean_closure_set(x_34, 6, x_33); -lean_closure_set(x_34, 7, x_18); -lean_closure_set(x_34, 8, x_19); -lean_closure_set(x_34, 9, x_29); -x_35 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_35, 0, x_32); -lean_closure_set(x_35, 1, x_34); -x_36 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_30, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28); -return x_36; -} -else -{ -uint8_t x_37; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_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 -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_75; -x_55 = lean_ctor_get(x_20, 0); -x_56 = lean_ctor_get(x_20, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_20); -x_75 = l_Lean_Expr_isArrow(x_55); -if (x_75 == 0) -{ -uint8_t x_76; -x_76 = l_Lean_Expr_isLet(x_55); -if (x_76 == 0) -{ -uint8_t x_77; -x_77 = l_Lean_Expr_isForall(x_55); -lean_dec(x_55); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -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_78 = lean_box(0); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_56); -return x_79; -} -else -{ -lean_object* x_80; -x_80 = lean_box(0); -x_57 = x_80; -goto block_74; -} -} -else -{ -lean_object* x_81; -lean_dec(x_55); -x_81 = lean_box(0); -x_57 = x_81; -goto block_74; -} -} -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; -x_82 = l_Lean_Expr_bindingDomain_x21(x_55); -lean_inc(x_82); -x_83 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 9, 1); -lean_closure_set(x_83, 0, x_82); -x_84 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_84, 0, x_83); -x_85 = lean_box(x_17); -lean_inc(x_11); -x_86 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 21, 11); -lean_closure_set(x_86, 0, x_11); -lean_closure_set(x_86, 1, x_12); -lean_closure_set(x_86, 2, x_13); -lean_closure_set(x_86, 3, x_14); -lean_closure_set(x_86, 4, x_15); -lean_closure_set(x_86, 5, x_16); -lean_closure_set(x_86, 6, x_85); -lean_closure_set(x_86, 7, x_18); -lean_closure_set(x_86, 8, x_19); -lean_closure_set(x_86, 9, x_55); -lean_closure_set(x_86, 10, x_82); -x_87 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_87, 0, x_84); -lean_closure_set(x_87, 1, x_86); -x_88 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_56); -return x_88; -} -block_74: -{ -uint8_t x_58; lean_object* x_59; -lean_dec(x_57); -x_58 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_59 = l_Lean_Meta_intro1Core(x_11, x_58, x_6, x_7, x_8, x_9, x_56); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = lean_ctor_get(x_60, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -lean_inc(x_62); -x_64 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 9, 1); -lean_closure_set(x_64, 0, x_62); -x_65 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_65, 0, x_64); -x_66 = lean_box(x_17); -lean_inc(x_63); -x_67 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 20, 10); -lean_closure_set(x_67, 0, x_63); -lean_closure_set(x_67, 1, x_12); -lean_closure_set(x_67, 2, x_13); -lean_closure_set(x_67, 3, x_14); -lean_closure_set(x_67, 4, x_15); -lean_closure_set(x_67, 5, x_16); -lean_closure_set(x_67, 6, x_66); -lean_closure_set(x_67, 7, x_18); -lean_closure_set(x_67, 8, x_19); -lean_closure_set(x_67, 9, x_62); -x_68 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_68, 0, x_65); -lean_closure_set(x_68, 1, x_67); -x_69 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_63, x_68, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_61); -return x_69; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_70 = lean_ctor_get(x_59, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_59, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_72 = x_59; -} else { - lean_dec_ref(x_59); - 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 -{ -uint8_t x_89; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -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_89 = !lean_is_exclusive(x_20); -if (x_89 == 0) -{ -return x_20; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_20, 0); -x_91 = lean_ctor_get(x_20, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_20); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___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_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___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(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); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -_start: -{ -uint8_t x_21; lean_object* x_22; -x_21 = lean_unbox(x_7); -lean_dec(x_7); -x_22 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -return x_22; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4(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(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_1); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -lean_object* x_21 = _args[20]; -lean_object* x_22 = _args[21]; -lean_object* x_23 = _args[22]; -lean_object* x_24 = _args[23]; -lean_object* x_25 = _args[24]; -lean_object* x_26 = _args[25]; -_start: -{ -uint8_t x_27; lean_object* x_28; -x_27 = lean_unbox(x_9); -lean_dec(x_9); -x_28 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_1); -return x_28; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -lean_object* x_21 = _args[20]; -_start: -{ -uint8_t x_22; uint8_t x_23; lean_object* x_24; -x_22 = lean_unbox(x_7); -lean_dec(x_7); -x_23 = lean_unbox(x_12); -lean_dec(x_12); -x_24 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9, x_10, x_11, x_23, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_10); -return x_24; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; uint8_t x_16; -x_11 = lean_st_ref_take(x_2, x_10); -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(x_11); -x_14 = l_Lean_PersistentArray_push___rarg(x_12, x_1); -x_15 = lean_st_ref_set(x_2, x_14, x_13); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -lean_dec(x_15); -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_19); -return x_21; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult___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_Preprocessor_pushResult(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(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); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_isCasesCandidate(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_FVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -x_11 = l_Lean_Expr_getAppFn(x_9); -lean_dec(x_9); -if (lean_obj_tag(x_11) == 4) -{ -lean_object* x_12; lean_object* x_13; -lean_free_object(x_7); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Meta_Grind_isGrindCasesTarget(x_12, x_4, x_5, x_10); -lean_dec(x_12); -return x_13; -} -else -{ -uint8_t x_14; lean_object* x_15; -lean_dec(x_11); -x_14 = 0; -x_15 = lean_box(x_14); -lean_ctor_set(x_7, 0, x_15); -return x_7; -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_7, 0); -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_7); -x_18 = l_Lean_Expr_getAppFn(x_16); -lean_dec(x_16); -if (lean_obj_tag(x_18) == 4) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Meta_Grind_isGrindCasesTarget(x_19, x_4, x_5, x_17); -lean_dec(x_19); -return x_20; -} -else -{ -uint8_t x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_18); -x_21 = 0; -x_22 = lean_box(x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_17); -return x_23; -} -} -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_7); -if (x_24 == 0) -{ -return x_7; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_7, 0); -x_26 = lean_ctor_get(x_7, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_7); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_isCasesCandidate___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_Meta_Grind_Preprocessor_isCasesCandidate(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; -x_4 = l_List_reverse___rarg(x_3); -return x_4; -} -else -{ -uint8_t x_5; -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; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -x_8 = lean_ctor_get(x_1, 1); -x_9 = lean_ctor_get(x_1, 2); -x_10 = lean_ctor_get(x_1, 3); -x_11 = lean_ctor_get(x_1, 4); -x_12 = lean_ctor_get(x_1, 5); -x_13 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -x_14 = lean_ctor_get(x_1, 6); -x_15 = lean_ctor_get(x_1, 7); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_16 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_16, 0, x_6); -lean_ctor_set(x_16, 1, x_8); -lean_ctor_set(x_16, 2, x_9); -lean_ctor_set(x_16, 3, x_10); -lean_ctor_set(x_16, 4, x_11); -lean_ctor_set(x_16, 5, x_12); -lean_ctor_set(x_16, 6, x_14); -lean_ctor_set(x_16, 7, x_15); -lean_ctor_set_uint8(x_16, sizeof(void*)*8, x_13); -lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_16); -{ -lean_object* _tmp_1 = x_7; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; -x_3 = _tmp_2; -} -goto _start; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_18 = lean_ctor_get(x_2, 0); -x_19 = lean_ctor_get(x_2, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_2); -x_20 = lean_ctor_get(x_1, 1); -x_21 = lean_ctor_get(x_1, 2); -x_22 = lean_ctor_get(x_1, 3); -x_23 = lean_ctor_get(x_1, 4); -x_24 = lean_ctor_get(x_1, 5); -x_25 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -x_26 = lean_ctor_get(x_1, 6); -x_27 = lean_ctor_get(x_1, 7); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -x_28 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_28, 0, x_18); -lean_ctor_set(x_28, 1, x_20); -lean_ctor_set(x_28, 2, x_21); -lean_ctor_set(x_28, 3, x_22); -lean_ctor_set(x_28, 4, x_23); -lean_ctor_set(x_28, 5, x_24); -lean_ctor_set(x_28, 6, x_26); -lean_ctor_set(x_28, 7, x_27); -lean_ctor_set_uint8(x_28, sizeof(void*)*8, x_25); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_3); -x_2 = x_19; -x_3 = x_29; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_inc(x_4); -lean_inc(x_1); -x_9 = l_Lean_Meta_Grind_Preprocessor_isCasesCandidate(x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_unbox(x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -uint8_t x_12; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_9, 0); -lean_dec(x_13); -x_14 = lean_box(0); -lean_ctor_set(x_9, 0, x_14); -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_9, 1); -lean_inc(x_15); -lean_dec(x_9); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_9, 1); -lean_inc(x_18); -lean_dec(x_9); -x_19 = l_Lean_Meta_Grind_cases(x_2, x_1, x_4, x_5, x_6, x_7, x_18); -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; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_box(0); -x_23 = l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(x_3, x_21, x_22); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_19, 0, x_24); -return x_19; -} -else -{ -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_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_box(0); -x_28 = l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(x_3, x_25, x_27); -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_26); -return x_30; -} -} -else -{ -uint8_t x_31; -x_31 = !lean_is_exclusive(x_19); -if (x_31 == 0) -{ -return x_19; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_19, 0); -x_33 = lean_ctor_get(x_19, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_19); -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_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_9); -if (x_35 == 0) -{ -return x_9; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_9, 0); -x_37 = lean_ctor_get(x_9, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_9); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_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) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1___boxed), 8, 3); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_8); -lean_closure_set(x_9, 2, x_1); -x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); -return x_10; -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyInjection_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) { -_start: -{ -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; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -x_11 = lean_ctor_get(x_1, 2); -x_12 = lean_ctor_get(x_1, 3); -x_13 = lean_ctor_get(x_1, 4); -x_14 = lean_ctor_get(x_1, 5); -x_15 = lean_ctor_get(x_1, 6); -x_16 = lean_ctor_get(x_1, 7); -x_17 = l_Lean_Meta_Grind_injection_x3f(x_9, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) -{ -uint8_t x_19; -lean_free_object(x_1); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 0); -lean_dec(x_20); -x_21 = lean_box(0); -lean_ctor_set(x_17, 0, x_21); -return x_17; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_17, 1); -lean_inc(x_22); -lean_dec(x_17); -x_23 = lean_box(0); -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; -x_25 = !lean_is_exclusive(x_17); -if (x_25 == 0) -{ -lean_object* x_26; uint8_t x_27; -x_26 = lean_ctor_get(x_17, 0); -lean_dec(x_26); -x_27 = !lean_is_exclusive(x_18); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_18, 0); -lean_ctor_set(x_1, 0, x_28); -lean_ctor_set(x_18, 0, x_1); -return x_17; -} -else -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_18, 0); -lean_inc(x_29); -lean_dec(x_18); -lean_ctor_set(x_1, 0, x_29); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_17, 0, x_30); -return x_17; -} -} -else -{ -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_17, 1); -lean_inc(x_31); -lean_dec(x_17); -x_32 = lean_ctor_get(x_18, 0); -lean_inc(x_32); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_33 = x_18; -} else { - lean_dec_ref(x_18); - x_33 = lean_box(0); -} -lean_ctor_set(x_1, 0, x_32); -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(1, 1, 0); -} else { - x_34 = x_33; -} -lean_ctor_set(x_34, 0, x_1); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_31); -return x_35; -} -} -} -else -{ -uint8_t x_36; -lean_free_object(x_1); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_36 = !lean_is_exclusive(x_17); -if (x_36 == 0) -{ -return x_17; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_17, 0); -x_38 = lean_ctor_get(x_17, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_17); -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_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_40 = lean_ctor_get(x_1, 0); -x_41 = lean_ctor_get(x_1, 1); -x_42 = lean_ctor_get(x_1, 2); -x_43 = lean_ctor_get(x_1, 3); -x_44 = lean_ctor_get(x_1, 4); -x_45 = lean_ctor_get(x_1, 5); -x_46 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -x_47 = lean_ctor_get(x_1, 6); -x_48 = lean_ctor_get(x_1, 7); -lean_inc(x_48); -lean_inc(x_47); -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_dec(x_1); -x_49 = l_Lean_Meta_Grind_injection_x3f(x_40, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_45); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_52 = x_49; -} else { - lean_dec_ref(x_49); - x_52 = lean_box(0); -} -x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_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; -x_55 = lean_ctor_get(x_49, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_56 = x_49; -} else { - lean_dec_ref(x_49); - x_56 = lean_box(0); -} -x_57 = lean_ctor_get(x_50, 0); -lean_inc(x_57); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - x_58 = x_50; -} else { - lean_dec_ref(x_50); - x_58 = lean_box(0); -} -x_59 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_41); -lean_ctor_set(x_59, 2, x_42); -lean_ctor_set(x_59, 3, x_43); -lean_ctor_set(x_59, 4, x_44); -lean_ctor_set(x_59, 5, x_45); -lean_ctor_set(x_59, 6, x_47); -lean_ctor_set(x_59, 7, x_48); -lean_ctor_set_uint8(x_59, sizeof(void*)*8, x_46); -if (lean_is_scalar(x_58)) { - x_60 = lean_alloc_ctor(1, 1, 0); -} else { - x_60 = x_58; -} -lean_ctor_set(x_60, 0, x_59); -if (lean_is_scalar(x_56)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_56; -} -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_45); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -x_62 = lean_ctor_get(x_49, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_49, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_64 = x_49; -} else { - lean_dec_ref(x_49); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -} -} -} -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___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: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_11; lean_object* x_12; -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_box(0); -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; -} -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); -x_14 = lean_ctor_get(x_1, 1); -lean_inc(x_14); -lean_dec(x_1); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_15 = l_Lean_Meta_Grind_Preprocessor_loop(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_1 = x_14; -x_10 = x_16; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_14); -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_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_st_mk_ref(x_1, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -return x_10; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(0u); -lean_inc(x_2); -x_12 = l_Lean_Meta_Grind_addHyp(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -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, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_st_ref_get(x_2, x_13); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_14, 1); -x_17 = lean_st_ref_get(x_2, x_16); -lean_dec(x_2); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_ctor_set(x_14, 1, x_19); -lean_ctor_set(x_17, 0, x_14); -return x_17; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_17); -lean_ctor_set(x_14, 1, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_14); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -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; -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_st_ref_get(x_2, x_24); -lean_dec(x_2); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_28 = x_25; -} else { - lean_dec_ref(x_25); - x_28 = lean_box(0); -} -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_23); -lean_ctor_set(x_29, 1, x_26); -if (lean_is_scalar(x_28)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_28; -} -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_2); -x_31 = !lean_is_exclusive(x_12); -if (x_31 == 0) -{ -return x_12; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_12, 0); -x_33 = lean_ctor_get(x_12, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_12); -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_Meta_Grind_Preprocessor_loop___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_1); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_1, 1); -lean_dec(x_11); -lean_ctor_set(x_1, 1, x_9); -return x_1; -} -else -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -lean_dec(x_1); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__3___boxed), 9, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { -_start: -{ -lean_object* x_21; -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_1); -x_21 = l_Lean_Meta_Grind_Preprocessor_introNext(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -switch (lean_obj_tag(x_22)) { -case 0: -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_24 = l_Lean_MVarId_byContra_x3f(x_2, x_16, x_17, x_18, x_19, x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; -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); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Meta_Grind_Preprocessor_pushResult(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_26); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_1); -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_ctor_get(x_25, 0); -lean_inc(x_29); -lean_dec(x_25); -x_30 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_3); -lean_ctor_set(x_30, 2, x_4); -lean_ctor_set(x_30, 3, x_5); -lean_ctor_set(x_30, 4, x_6); -lean_ctor_set(x_30, 5, x_7); -lean_ctor_set(x_30, 6, x_9); -lean_ctor_set(x_30, 7, x_10); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_8); -x_31 = l_Lean_Meta_Grind_Preprocessor_loop(x_30, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_28); -return x_31; -} -} -else -{ -uint8_t x_32; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_1); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) -{ -return x_24; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_24, 0); -x_34 = lean_ctor_get(x_24, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_24); -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; -} -} -} -case 1: -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -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); -lean_dec(x_1); -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_22, 1); -lean_inc(x_38); -lean_dec(x_22); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_37); -lean_inc(x_38); -x_39 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_38, x_37, x_16, x_17, x_18, x_19, x_36); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_37); -lean_inc(x_38); -x_42 = l_Lean_Meta_Grind_Preprocessor_applyInjection_x3f(x_38, x_37, x_16, x_17, x_18, x_19, x_41); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_38, 0); -lean_inc(x_45); -x_46 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_46, 0, x_38); -x_47 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__2), 10, 1); -lean_closure_set(x_47, 0, x_37); -x_48 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_48, 0, x_46); -lean_closure_set(x_48, 1, x_47); -x_49 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -x_50 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_50, 0, x_48); -lean_closure_set(x_50, 1, x_49); -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); -x_51 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_45, x_50, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_44); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -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(x_51); -x_54 = l_Lean_Meta_Grind_Preprocessor_loop(x_52, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_53); -return x_54; -} -else -{ -uint8_t x_55; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_55 = !lean_is_exclusive(x_51); -if (x_55 == 0) -{ -return x_51; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_51, 0); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_51); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_38); -lean_dec(x_37); -x_59 = lean_ctor_get(x_42, 1); -lean_inc(x_59); -lean_dec(x_42); -x_60 = lean_ctor_get(x_43, 0); -lean_inc(x_60); -lean_dec(x_43); -x_61 = l_Lean_Meta_Grind_Preprocessor_loop(x_60, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_59); -return x_61; -} -} -else -{ -uint8_t x_62; -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_62 = !lean_is_exclusive(x_42); -if (x_62 == 0) -{ -return x_42; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_42, 0); -x_64 = lean_ctor_get(x_42, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_42); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_38); -lean_dec(x_37); -x_66 = lean_ctor_get(x_39, 1); -lean_inc(x_66); -lean_dec(x_39); -x_67 = lean_ctor_get(x_40, 0); -lean_inc(x_67); -lean_dec(x_40); -x_68 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___spec__1(x_67, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_66); -return x_68; -} -} -else -{ -uint8_t x_69; -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_69 = !lean_is_exclusive(x_39); -if (x_69 == 0) -{ -return x_39; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_39, 0); -x_71 = lean_ctor_get(x_39, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_39); -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 2: -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -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); -lean_dec(x_1); -x_73 = lean_ctor_get(x_21, 1); -lean_inc(x_73); -lean_dec(x_21); -x_74 = lean_ctor_get(x_22, 0); -lean_inc(x_74); -lean_dec(x_22); -x_75 = l_Lean_Meta_Grind_Preprocessor_loop(x_74, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_73); -return x_75; -} -default: -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -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); -lean_dec(x_1); -x_76 = lean_ctor_get(x_21, 1); -lean_inc(x_76); -lean_dec(x_21); -x_77 = lean_ctor_get(x_22, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_22, 1); -lean_inc(x_78); -lean_dec(x_22); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_78); -x_79 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_78, x_77, x_16, x_17, x_18, x_19, x_76); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = l_Lean_Meta_Grind_Preprocessor_loop(x_78, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_81); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_78); -x_83 = lean_ctor_get(x_79, 1); -lean_inc(x_83); -lean_dec(x_79); -x_84 = lean_ctor_get(x_80, 0); -lean_inc(x_84); -lean_dec(x_80); -x_85 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___spec__1(x_84, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_83); -return x_85; -} -} -else -{ -uint8_t x_86; -lean_dec(x_78); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_86 = !lean_is_exclusive(x_79); -if (x_86 == 0) -{ -return x_79; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_79, 0); -x_88 = lean_ctor_get(x_79, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_79); -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_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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); -lean_dec(x_1); -x_90 = !lean_is_exclusive(x_21); -if (x_90 == 0) -{ -return x_21; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_21, 0); -x_92 = lean_ctor_get(x_21, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_21); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -if (x_11 == 0) -{ -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_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -x_14 = lean_ctor_get(x_1, 2); -lean_inc(x_14); -x_15 = lean_ctor_get(x_1, 3); -lean_inc(x_15); -x_16 = lean_ctor_get(x_1, 4); -lean_inc(x_16); -x_17 = lean_ctor_get(x_1, 5); -lean_inc(x_17); -x_18 = lean_ctor_get(x_1, 6); -lean_inc(x_18); -x_19 = lean_ctor_get(x_1, 7); -lean_inc(x_19); -x_20 = lean_box(0); -x_21 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_11, x_18, x_19, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; -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); -lean_dec(x_1); -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_10); -return x_23; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -_start: -{ -uint8_t x_21; lean_object* x_22; -x_21 = lean_unbox(x_8); -lean_dec(x_8); -x_22 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_11); -return x_22; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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: -{ -uint8_t x_18; -x_18 = lean_usize_dec_lt(x_7, x_6); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_8); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -else -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_array_uget(x_5, x_7); -x_21 = !lean_is_exclusive(x_8); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_8, 1); -x_23 = lean_ctor_get(x_8, 0); -lean_dec(x_23); -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_22); -x_24 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2(x_1, x_20, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_20); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 0); -lean_dec(x_27); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_25); -lean_ctor_set(x_8, 0, x_28); -lean_ctor_set(x_24, 0, x_8); -return x_24; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_25); -lean_ctor_set(x_8, 0, x_30); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; -lean_dec(x_22); -x_32 = lean_ctor_get(x_24, 1); -lean_inc(x_32); -lean_dec(x_24); -x_33 = lean_ctor_get(x_25, 0); -lean_inc(x_33); -lean_dec(x_25); -lean_inc(x_4); -lean_ctor_set(x_8, 1, x_33); -lean_ctor_set(x_8, 0, x_4); -x_34 = 1; -x_35 = lean_usize_add(x_7, x_34); -x_7 = x_35; -x_17 = x_32; -goto _start; -} -} -else -{ -uint8_t x_37; -lean_free_object(x_8); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_24); -if (x_37 == 0) -{ -return x_24; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_24, 0); -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_24); -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_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); -lean_inc(x_41); -lean_dec(x_8); -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_41); -x_42 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2(x_1, x_20, x_41, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_20); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_45 = x_42; -} else { - lean_dec_ref(x_42); - x_45 = lean_box(0); -} -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_43); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_41); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_44); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; -lean_dec(x_41); -x_49 = lean_ctor_get(x_42, 1); -lean_inc(x_49); -lean_dec(x_42); -x_50 = lean_ctor_get(x_43, 0); -lean_inc(x_50); -lean_dec(x_43); -lean_inc(x_4); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_4); -lean_ctor_set(x_51, 1, x_50); -x_52 = 1; -x_53 = lean_usize_add(x_7, x_52); -x_7 = x_53; -x_8 = x_51; -x_17 = x_49; -goto _start; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_41); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_55 = lean_ctor_get(x_42, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_42, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_57 = x_42; -} else { - lean_dec_ref(x_42); - x_57 = lean_box(0); -} -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); -} else { - x_58 = x_57; -} -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -lean_inc(x_1); -x_10 = l_Lean_Meta_Grind_ppState(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_st_ref_get(x_1, x_12); -lean_dec(x_1); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_11); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set(x_13, 0, x_16); -return x_13; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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(0, 2, 0); -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_17); -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 -{ -uint8_t x_21; -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_10); -if (x_21 == 0) -{ -return x_10; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_10, 0); -x_23 = lean_ctor_get(x_10, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_10); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___lambda__1), 9, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4(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: -{ -uint8_t x_17; -x_17 = lean_usize_dec_lt(x_6, x_5); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_15); -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(x_3); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -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_array_uget(x_4, x_6); -x_20 = lean_ctor_get(x_7, 1); -lean_inc(x_20); -lean_dec(x_7); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_22, 0, x_19); -x_23 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1; -x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_24, 0, x_22); -lean_closure_set(x_24, 1, x_23); -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); -x_25 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_21, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; -x_29 = lean_ctor_get(x_26, 0); -x_30 = lean_ctor_get(x_26, 1); -lean_dec(x_30); -x_31 = lean_box(1); -lean_ctor_set_tag(x_26, 5); -lean_ctor_set(x_26, 1, x_31); -lean_ctor_set(x_26, 0, x_20); -x_32 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_32, 0, x_26); -lean_ctor_set(x_32, 1, x_29); -lean_inc(x_3); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_3); -lean_ctor_set(x_33, 1, x_32); -x_34 = 1; -x_35 = lean_usize_add(x_6, x_34); -x_6 = x_35; -x_7 = x_33; -x_16 = x_27; -goto _start; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; size_t x_42; size_t x_43; -x_37 = lean_ctor_get(x_26, 0); -lean_inc(x_37); -lean_dec(x_26); -x_38 = lean_box(1); -x_39 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_39, 0, x_20); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -lean_inc(x_3); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_3); -lean_ctor_set(x_41, 1, x_40); -x_42 = 1; -x_43 = lean_usize_add(x_6, x_42); -x_6 = x_43; -x_7 = x_41; -x_16 = x_27; -goto _start; -} -} -else -{ -uint8_t x_45; -lean_dec(x_20); -lean_dec(x_15); -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(x_3); -x_45 = !lean_is_exclusive(x_25); -if (x_45 == 0) -{ -return x_25; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_25, 0); -x_47 = lean_ctor_get(x_25, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_25); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_1); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___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) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; -x_13 = lean_ctor_get(x_2, 0); -x_14 = lean_box(0); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_3); -x_17 = lean_array_size(x_13); -x_18 = 0; -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_inc(x_5); -x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3(x_1, x_13, x_14, x_15, x_13, x_17, x_18, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = lean_box(0); -x_25 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(x_23, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_25; -} -else -{ -uint8_t x_26; -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_19, 0); -lean_dec(x_27); -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -lean_dec(x_21); -lean_ctor_set(x_19, 0, x_28); -return x_19; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_dec(x_19); -x_30 = lean_ctor_get(x_21, 0); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -} -else -{ -uint8_t x_32; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_32 = !lean_is_exclusive(x_19); -if (x_32 == 0) -{ -return x_19; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_19, 0); -x_34 = lean_ctor_get(x_19, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_19); -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; lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; -x_36 = lean_ctor_get(x_2, 0); -x_37 = lean_box(0); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_3); -x_40 = lean_array_size(x_36); -x_41 = 0; -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_inc(x_5); -x_42 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4(x_36, x_37, x_38, x_36, x_40, x_41, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_box(0); -x_48 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(x_46, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_48; -} -else -{ -uint8_t x_49; -lean_dec(x_43); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_49 = !lean_is_exclusive(x_42); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_42, 0); -lean_dec(x_50); -x_51 = lean_ctor_get(x_44, 0); -lean_inc(x_51); -lean_dec(x_44); -lean_ctor_set(x_42, 0, x_51); -return x_42; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_42, 1); -lean_inc(x_52); -lean_dec(x_42); -x_53 = lean_ctor_get(x_44, 0); -lean_inc(x_53); -lean_dec(x_44); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -return x_54; -} -} -} -else -{ -uint8_t x_55; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_55 = !lean_is_exclusive(x_42); -if (x_55 == 0) -{ -return x_42; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_42, 0); -x_57 = lean_ctor_get(x_42, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_42); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__5(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: -{ -uint8_t x_17; -x_17 = lean_usize_dec_lt(x_6, x_5); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_15); -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(x_3); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -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_array_uget(x_4, x_6); -x_20 = lean_ctor_get(x_7, 1); -lean_inc(x_20); -lean_dec(x_7); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_22, 0, x_19); -x_23 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1; -x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_24, 0, x_22); -lean_closure_set(x_24, 1, x_23); -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); -x_25 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_21, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; -x_29 = lean_ctor_get(x_26, 0); -x_30 = lean_ctor_get(x_26, 1); -lean_dec(x_30); -x_31 = lean_box(1); -lean_ctor_set_tag(x_26, 5); -lean_ctor_set(x_26, 1, x_31); -lean_ctor_set(x_26, 0, x_20); -x_32 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_32, 0, x_26); -lean_ctor_set(x_32, 1, x_29); -lean_inc(x_3); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_3); -lean_ctor_set(x_33, 1, x_32); -x_34 = 1; -x_35 = lean_usize_add(x_6, x_34); -x_6 = x_35; -x_7 = x_33; -x_16 = x_27; -goto _start; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; size_t x_42; size_t x_43; -x_37 = lean_ctor_get(x_26, 0); -lean_inc(x_37); -lean_dec(x_26); -x_38 = lean_box(1); -x_39 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_39, 0, x_20); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -lean_inc(x_3); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_3); -lean_ctor_set(x_41, 1, x_40); -x_42 = 1; -x_43 = lean_usize_add(x_6, x_42); -x_6 = x_43; -x_7 = x_41; -x_16 = x_27; -goto _start; -} -} -else -{ -uint8_t x_45; -lean_dec(x_20); -lean_dec(x_15); -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(x_3); -x_45 = !lean_is_exclusive(x_25); -if (x_45 == 0) -{ -return x_25; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_25, 0); -x_47 = lean_ctor_get(x_25, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_25); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_object* x_13; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_13 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2(x_2, 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); -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_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); -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_ctor_get(x_14, 0); -lean_inc(x_17); -lean_dec(x_14); -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_ctor_get(x_14, 0); -lean_inc(x_19); -lean_dec(x_14); -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; -x_21 = lean_ctor_get(x_13, 1); -lean_inc(x_21); -lean_dec(x_13); -x_22 = lean_ctor_get(x_14, 0); -lean_inc(x_22); -lean_dec(x_14); -x_23 = lean_ctor_get(x_1, 1); -x_24 = lean_box(0); -x_25 = lean_box(0); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_22); -x_27 = lean_array_size(x_23); -x_28 = 0; -x_29 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__5(x_23, x_24, x_25, x_23, x_27, x_28, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_29, 0); -lean_dec(x_33); -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -lean_ctor_set(x_29, 0, x_34); -return x_29; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_dec(x_29); -x_36 = lean_ctor_get(x_30, 1); -lean_inc(x_36); -lean_dec(x_30); -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_30); -x_38 = !lean_is_exclusive(x_29); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_29, 0); -lean_dec(x_39); -x_40 = lean_ctor_get(x_31, 0); -lean_inc(x_40); -lean_dec(x_31); -lean_ctor_set(x_29, 0, x_40); -return x_29; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_29, 1); -lean_inc(x_41); -lean_dec(x_29); -x_42 = lean_ctor_get(x_31, 0); -lean_inc(x_42); -lean_dec(x_31); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -} -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_29); -if (x_44 == 0) -{ -return x_29; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_29, 0); -x_46 = lean_ctor_get(x_29, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_29); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -} -else -{ -uint8_t x_48; -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); -x_48 = !lean_is_exclusive(x_13); -if (x_48 == 0) -{ -return x_13; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_13, 0); -x_50 = lean_ctor_get(x_13, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_13); -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; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_ppGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_st_ref_get(x_1, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2; -x_14 = l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1(x_11, x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_11); -if (lean_obj_tag(x_14) == 0) -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -return x_14; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_14); -if (x_19 == 0) -{ -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3___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: -{ -size_t x_18; size_t x_19; lean_object* x_20; -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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__3(x_1, x_2, x_3, x_4, x_5, x_18, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_20; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4(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_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__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_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); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___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); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___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, 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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__5(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_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__1___lambda__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_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); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_ppGoals___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_3); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_ppGoals___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: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_Preprocessor_ppGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___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; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_8, 2); -x_12 = l_Lean_isTracingEnabledForCore(x_1, x_11, x_10); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -return x_12; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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: -{ -uint8_t x_18; -x_18 = lean_usize_dec_lt(x_7, x_6); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_8); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -else -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_array_uget(x_5, x_7); -x_21 = !lean_is_exclusive(x_8); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_8, 1); -x_23 = lean_ctor_get(x_8, 0); -lean_dec(x_23); -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_22); -x_24 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(x_1, x_20, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_20); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 0); -lean_dec(x_27); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_25); -lean_ctor_set(x_8, 0, x_28); -lean_ctor_set(x_24, 0, x_8); -return x_24; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_25); -lean_ctor_set(x_8, 0, x_30); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; -lean_dec(x_22); -x_32 = lean_ctor_get(x_24, 1); -lean_inc(x_32); -lean_dec(x_24); -x_33 = lean_ctor_get(x_25, 0); -lean_inc(x_33); -lean_dec(x_25); -lean_inc(x_4); -lean_ctor_set(x_8, 1, x_33); -lean_ctor_set(x_8, 0, x_4); -x_34 = 1; -x_35 = lean_usize_add(x_7, x_34); -x_7 = x_35; -x_17 = x_32; -goto _start; -} -} -else -{ -uint8_t x_37; -lean_free_object(x_8); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_24); -if (x_37 == 0) -{ -return x_24; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_24, 0); -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_24); -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_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); -lean_inc(x_41); -lean_dec(x_8); -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_41); -x_42 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(x_1, x_20, x_41, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_20); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_45 = x_42; -} else { - lean_dec_ref(x_42); - x_45 = lean_box(0); -} -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_43); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_41); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_44); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; -lean_dec(x_41); -x_49 = lean_ctor_get(x_42, 1); -lean_inc(x_49); -lean_dec(x_42); -x_50 = lean_ctor_get(x_43, 0); -lean_inc(x_50); -lean_dec(x_43); -lean_inc(x_4); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_4); -lean_ctor_set(x_51, 1, x_50); -x_52 = 1; -x_53 = lean_usize_add(x_7, x_52); -x_7 = x_53; -x_8 = x_51; -x_17 = x_49; -goto _start; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_41); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -x_55 = lean_ctor_get(x_42, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_42, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_57 = x_42; -} else { - lean_dec_ref(x_42); - x_57 = lean_box(0); -} -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); -} else { - x_58 = x_57; -} -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = 1; -lean_inc(x_1); -x_11 = l_Lean_Meta_Grind_checkInvariants(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_1, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_13, 1); -x_16 = lean_st_ref_get(x_1, x_15); -lean_dec(x_1); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_ctor_set(x_13, 1, x_18); -lean_ctor_set(x_16, 0, x_13); -return x_16; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_16, 0); -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_16); -lean_ctor_set(x_13, 1, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -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_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_st_ref_get(x_1, x_23); -lean_dec(x_1); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_27 = x_24; -} else { - lean_dec_ref(x_24); - x_27 = lean_box(0); -} -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_25); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 2, 0); -} else { - x_29 = x_27; -} -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_26); -return x_29; -} -} -else -{ -uint8_t x_30; -lean_dec(x_1); -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; -} -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___lambda__1), 9, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5(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: -{ -uint8_t x_17; -x_17 = lean_usize_dec_lt(x_6, x_5); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_15); -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(x_3); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -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; lean_object* x_26; -lean_dec(x_7); -x_19 = lean_array_uget(x_4, x_6); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_21, 0, x_19); -x_22 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1; -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_23, 0, x_21); -lean_closure_set(x_23, 1, x_22); -x_24 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_25, 0, x_23); -lean_closure_set(x_25, 1, x_24); -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); -x_26 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_20, x_25, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_box(0); -lean_inc(x_3); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_3); -lean_ctor_set(x_29, 1, x_28); -x_30 = 1; -x_31 = lean_usize_add(x_6, x_30); -x_6 = x_31; -x_7 = x_29; -x_16 = x_27; -goto _start; -} -else -{ -uint8_t x_33; -lean_dec(x_15); -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(x_3); -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_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; -x_13 = lean_ctor_get(x_2, 0); -x_14 = lean_box(0); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_3); -x_17 = lean_array_size(x_13); -x_18 = 0; -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_inc(x_5); -x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4(x_1, x_13, x_14, x_15, x_13, x_17, x_18, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = lean_box(0); -x_25 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(x_23, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_25; -} -else -{ -uint8_t x_26; -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_19, 0); -lean_dec(x_27); -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -lean_dec(x_21); -lean_ctor_set(x_19, 0, x_28); -return x_19; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_dec(x_19); -x_30 = lean_ctor_get(x_21, 0); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -} -else -{ -uint8_t x_32; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_32 = !lean_is_exclusive(x_19); -if (x_32 == 0) -{ -return x_19; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_19, 0); -x_34 = lean_ctor_get(x_19, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_19); -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; lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; -x_36 = lean_ctor_get(x_2, 0); -x_37 = lean_box(0); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_3); -x_40 = lean_array_size(x_36); -x_41 = 0; -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_inc(x_5); -x_42 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5(x_36, x_37, x_38, x_36, x_40, x_41, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_box(0); -x_48 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__2___lambda__1(x_46, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_48; -} -else -{ -uint8_t x_49; -lean_dec(x_43); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_49 = !lean_is_exclusive(x_42); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_42, 0); -lean_dec(x_50); -x_51 = lean_ctor_get(x_44, 0); -lean_inc(x_51); -lean_dec(x_44); -lean_ctor_set(x_42, 0, x_51); -return x_42; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_42, 1); -lean_inc(x_52); -lean_dec(x_42); -x_53 = lean_ctor_get(x_44, 0); -lean_inc(x_53); -lean_dec(x_44); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -return x_54; -} -} -} -else -{ -uint8_t x_55; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_55 = !lean_is_exclusive(x_42); -if (x_55 == 0) -{ -return x_42; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_42, 0); -x_57 = lean_ctor_get(x_42, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_42); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__6(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: -{ -uint8_t x_17; -x_17 = lean_usize_dec_lt(x_6, x_5); -if (x_17 == 0) -{ -lean_object* x_18; -lean_dec(x_15); -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(x_3); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_7); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -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; lean_object* x_26; -lean_dec(x_7); -x_19 = lean_array_uget(x_4, x_6); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_21, 0, x_19); -x_22 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1; -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_23, 0, x_21); -lean_closure_set(x_23, 1, x_22); -x_24 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_25, 0, x_23); -lean_closure_set(x_25, 1, x_24); -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); -x_26 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_20, x_25, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_box(0); -lean_inc(x_3); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_3); -lean_ctor_set(x_29, 1, x_28); -x_30 = 1; -x_31 = lean_usize_add(x_6, x_30); -x_6 = x_31; -x_7 = x_29; -x_16 = x_27; -goto _start; -} -else -{ -uint8_t x_33; -lean_dec(x_15); -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(x_3); -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_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___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) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_13 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(x_2, 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); -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_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); -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_ctor_get(x_14, 0); -lean_inc(x_17); -lean_dec(x_14); -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_ctor_get(x_14, 0); -lean_inc(x_19); -lean_dec(x_14); -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; -x_21 = lean_ctor_get(x_13, 1); -lean_inc(x_21); -lean_dec(x_13); -x_22 = lean_ctor_get(x_14, 0); -lean_inc(x_22); -lean_dec(x_14); -x_23 = lean_ctor_get(x_1, 1); -x_24 = lean_box(0); -x_25 = lean_box(0); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_22); -x_27 = lean_array_size(x_23); -x_28 = 0; -x_29 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__6(x_23, x_24, x_25, x_23, x_27, x_28, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_29, 0); -lean_dec(x_33); -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -lean_ctor_set(x_29, 0, x_34); -return x_29; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_dec(x_29); -x_36 = lean_ctor_get(x_30, 1); -lean_inc(x_36); -lean_dec(x_30); -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_30); -x_38 = !lean_is_exclusive(x_29); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_29, 0); -lean_dec(x_39); -x_40 = lean_ctor_get(x_31, 0); -lean_inc(x_40); -lean_dec(x_31); -lean_ctor_set(x_29, 0, x_40); -return x_29; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_29, 1); -lean_inc(x_41); -lean_dec(x_29); -x_42 = lean_ctor_get(x_31, 0); -lean_inc(x_42); -lean_dec(x_31); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -} -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_29); -if (x_44 == 0) -{ -return x_29; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_29, 0); -x_46 = lean_ctor_get(x_29, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_29); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -} -else -{ -uint8_t x_48; -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); -x_48 = !lean_is_exclusive(x_13); -if (x_48 == 0) -{ -return x_13; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_13, 0); -x_50 = lean_ctor_get(x_13, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_13); -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; -} -} -} -} -static double _init_l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; double x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = 0; -x_3 = l_Float_ofScientific(x_1, x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___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, 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; uint8_t x_19; -x_12 = lean_ctor_get(x_9, 5); -x_13 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_st_ref_take(x_10, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_17, 3); -lean_dec(x_23); -x_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) -{ -lean_object* x_25; double x_26; uint8_t 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_25 = lean_ctor_get(x_18, 0); -x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1; -x_27 = 0; -x_28 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -x_29 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_29, 0, x_1); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set_float(x_29, sizeof(void*)*2, x_26); -lean_ctor_set_float(x_29, sizeof(void*)*2 + 8, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*2 + 16, x_27); -x_30 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2; -x_31 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_14); -lean_ctor_set(x_31, 2, x_30); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_31); -lean_ctor_set(x_16, 0, x_12); -x_32 = l_Lean_PersistentArray_push___rarg(x_25, x_16); -lean_ctor_set(x_18, 0, x_32); -x_33 = lean_st_ref_set(x_10, x_17, x_20); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -else -{ -uint64_t x_40; lean_object* x_41; double 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; lean_object* x_53; lean_object* x_54; -x_40 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_41 = lean_ctor_get(x_18, 0); -lean_inc(x_41); -lean_dec(x_18); -x_42 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1; -x_43 = 0; -x_44 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -x_45 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_45, 0, x_1); -lean_ctor_set(x_45, 1, x_44); -lean_ctor_set_float(x_45, sizeof(void*)*2, x_42); -lean_ctor_set_float(x_45, sizeof(void*)*2 + 8, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*2 + 16, x_43); -x_46 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2; -x_47 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_14); -lean_ctor_set(x_47, 2, x_46); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_47); -lean_ctor_set(x_16, 0, x_12); -x_48 = l_Lean_PersistentArray_push___rarg(x_41, x_16); -x_49 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set_uint64(x_49, sizeof(void*)*1, x_40); -lean_ctor_set(x_17, 3, x_49); -x_50 = lean_st_ref_set(x_10, x_17, x_20); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_52 = x_50; -} else { - lean_dec_ref(x_50); - x_52 = lean_box(0); -} -x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_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; uint64_t x_62; lean_object* x_63; lean_object* x_64; double x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_55 = lean_ctor_get(x_17, 0); -x_56 = lean_ctor_get(x_17, 1); -x_57 = lean_ctor_get(x_17, 2); -x_58 = lean_ctor_get(x_17, 4); -x_59 = lean_ctor_get(x_17, 5); -x_60 = lean_ctor_get(x_17, 6); -x_61 = lean_ctor_get(x_17, 7); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_17); -x_62 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_63 = lean_ctor_get(x_18, 0); -lean_inc(x_63); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_64 = x_18; -} else { - lean_dec_ref(x_18); - x_64 = lean_box(0); -} -x_65 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1; -x_66 = 0; -x_67 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -x_68 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_68, 0, x_1); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set_float(x_68, sizeof(void*)*2, x_65); -lean_ctor_set_float(x_68, sizeof(void*)*2 + 8, x_65); -lean_ctor_set_uint8(x_68, sizeof(void*)*2 + 16, x_66); -x_69 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2; -x_70 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_14); -lean_ctor_set(x_70, 2, x_69); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_70); -lean_ctor_set(x_16, 0, x_12); -x_71 = l_Lean_PersistentArray_push___rarg(x_63, x_16); -if (lean_is_scalar(x_64)) { - x_72 = lean_alloc_ctor(0, 1, 8); -} else { - x_72 = x_64; -} -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set_uint64(x_72, sizeof(void*)*1, x_62); -x_73 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_73, 0, x_55); -lean_ctor_set(x_73, 1, x_56); -lean_ctor_set(x_73, 2, x_57); -lean_ctor_set(x_73, 3, x_72); -lean_ctor_set(x_73, 4, x_58); -lean_ctor_set(x_73, 5, x_59); -lean_ctor_set(x_73, 6, x_60); -lean_ctor_set(x_73, 7, x_61); -x_74 = lean_st_ref_set(x_10, x_73, x_20); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_76 = x_74; -} else { - lean_dec_ref(x_74); - x_76 = lean_box(0); -} -x_77 = lean_box(0); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_75); -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_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint64_t x_88; lean_object* x_89; lean_object* x_90; double x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_79 = lean_ctor_get(x_16, 1); -lean_inc(x_79); -lean_dec(x_16); -x_80 = lean_ctor_get(x_17, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_17, 1); -lean_inc(x_81); -x_82 = lean_ctor_get(x_17, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_17, 4); -lean_inc(x_83); -x_84 = lean_ctor_get(x_17, 5); -lean_inc(x_84); -x_85 = lean_ctor_get(x_17, 6); -lean_inc(x_85); -x_86 = lean_ctor_get(x_17, 7); -lean_inc(x_86); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - lean_ctor_release(x_17, 2); - lean_ctor_release(x_17, 3); - lean_ctor_release(x_17, 4); - lean_ctor_release(x_17, 5); - lean_ctor_release(x_17, 6); - lean_ctor_release(x_17, 7); - x_87 = x_17; -} else { - lean_dec_ref(x_17); - x_87 = lean_box(0); -} -x_88 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_89 = lean_ctor_get(x_18, 0); -lean_inc(x_89); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_90 = x_18; -} else { - lean_dec_ref(x_18); - x_90 = lean_box(0); -} -x_91 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1; -x_92 = 0; -x_93 = l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1; -x_94 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_94, 0, x_1); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set_float(x_94, sizeof(void*)*2, x_91); -lean_ctor_set_float(x_94, sizeof(void*)*2 + 8, x_91); -lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 16, x_92); -x_95 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2; -x_96 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_14); -lean_ctor_set(x_96, 2, x_95); -lean_inc(x_12); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_12); -lean_ctor_set(x_97, 1, x_96); -x_98 = l_Lean_PersistentArray_push___rarg(x_89, x_97); -if (lean_is_scalar(x_90)) { - x_99 = lean_alloc_ctor(0, 1, 8); -} else { - x_99 = x_90; -} -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set_uint64(x_99, sizeof(void*)*1, x_88); -if (lean_is_scalar(x_87)) { - x_100 = lean_alloc_ctor(0, 8, 0); -} else { - x_100 = x_87; -} -lean_ctor_set(x_100, 0, x_80); -lean_ctor_set(x_100, 1, x_81); -lean_ctor_set(x_100, 2, x_82); -lean_ctor_set(x_100, 3, x_99); -lean_ctor_set(x_100, 4, x_83); -lean_ctor_set(x_100, 5, x_84); -lean_ctor_set(x_100, 6, x_85); -lean_ctor_set(x_100, 7, x_86); -x_101 = lean_st_ref_set(x_10, x_100, x_79); -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_box(0); -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; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_st_ref_get(x_2, x_10); -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(x_11); -x_14 = lean_box(0); -x_15 = l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__2(x_12, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_12); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_st_ref_get(x_2, x_16); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -return x_17; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -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; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible), 6, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MVarId_betaReduce___lambda__1___boxed), 6, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_preprocess___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_Preprocessor_preprocess___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("pre", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__3; -x_2 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__4; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1___boxed), 10, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_1); -x_11 = l_Lean_MVarId_ensureProp(x_1, 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, 1); -lean_inc(x_12); -lean_dec(x_11); -lean_inc(x_1); -x_13 = l_Lean_MVarId_ensureNoMVar(x_1, x_6, x_7, x_8, x_9, 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(x_13); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_15 = l_Lean_MVarId_clearAuxDecls(x_1, x_6, x_7, x_8, x_9, 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(x_15); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_18 = l_Lean_MVarId_revertAll(x_16, x_6, x_7, x_8, x_9, x_17); -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(x_18); -lean_inc(x_19); -x_21 = l_Lean_MVarId_ensureNoMVar(x_19, x_6, x_7, x_8, x_9, 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; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_Lean_Meta_Grind_getMainDeclName___rarg(x_4, x_5, x_6, x_7, x_8, 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(x_23); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_26 = l_Lean_MVarId_abstractNestedProofs(x_19, x_24, 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(x_26); -x_29 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_30 = l_Lean_MVarId_transformTarget(x_27, x_29, x_6, x_7, x_8, x_9, x_28); -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, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__2; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_34 = l_Lean_MVarId_transformTarget(x_31, x_33, x_6, x_7, x_8, x_9, x_32); -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(x_34); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_37 = l_Lean_Meta_Grind_mkGoal(x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_40 = l_Lean_Meta_Grind_Preprocessor_loop(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_39); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__5; -x_43 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6; -x_47 = lean_unbox(x_44); -lean_dec(x_44); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_box(0); -x_49 = lean_apply_10(x_46, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_45); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_45); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_unbox(x_51); -lean_dec(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_box(0); -x_55 = lean_apply_10(x_46, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_dec(x_50); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_57 = l_Lean_Meta_Grind_Preprocessor_ppGoals(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_MessageData_ofFormat(x_58); -x_61 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7(x_42, x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_59); -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(x_61); -x_64 = lean_apply_10(x_46, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_63); -return x_64; -} -else -{ -uint8_t x_65; -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_65 = !lean_is_exclusive(x_57); -if (x_65 == 0) -{ -return x_57; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_57, 0); -x_67 = lean_ctor_get(x_57, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_57); -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; -} -} -} -} -} -else -{ -uint8_t x_69; -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_69 = !lean_is_exclusive(x_40); -if (x_69 == 0) -{ -return x_40; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_40, 0); -x_71 = lean_ctor_get(x_40, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_40); -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; -} -} -} -else -{ -uint8_t x_73; -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_73 = !lean_is_exclusive(x_37); -if (x_73 == 0) -{ -return x_37; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_37, 0); -x_75 = lean_ctor_get(x_37, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_37); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -else -{ -uint8_t x_77; -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_77 = !lean_is_exclusive(x_34); -if (x_77 == 0) -{ -return x_34; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_34, 0); -x_79 = lean_ctor_get(x_34, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_34); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_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_81 = !lean_is_exclusive(x_30); -if (x_81 == 0) -{ -return x_30; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_30, 0); -x_83 = lean_ctor_get(x_30, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_30); -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; -} -} -} -else -{ -uint8_t x_85; -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_85 = !lean_is_exclusive(x_26); -if (x_85 == 0) -{ -return x_26; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_26, 0); -x_87 = lean_ctor_get(x_26, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_26); -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_19); -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_89 = !lean_is_exclusive(x_21); -if (x_89 == 0) -{ -return x_21; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_21, 0); -x_91 = lean_ctor_get(x_21, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_21); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -else -{ -uint8_t x_93; -lean_dec(x_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_93 = !lean_is_exclusive(x_18); -if (x_93 == 0) -{ -return x_18; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_18, 0); -x_95 = lean_ctor_get(x_18, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_18); -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; -} -} -} -else -{ -uint8_t x_97; -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_97 = !lean_is_exclusive(x_15); -if (x_97 == 0) -{ -return x_15; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_15, 0); -x_99 = lean_ctor_get(x_15, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_15); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -else -{ -uint8_t x_101; -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); -lean_dec(x_1); -x_101 = !lean_is_exclusive(x_13); -if (x_101 == 0) -{ -return x_13; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_13, 0); -x_103 = lean_ctor_get(x_13, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_13); -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(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); -lean_dec(x_1); -x_105 = !lean_is_exclusive(x_11); -if (x_105 == 0) -{ -return x_11; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_11, 0); -x_107 = lean_ctor_get(x_11, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_11); -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_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___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) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(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(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); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -_start: -{ -size_t x_18; size_t x_19; lean_object* x_20; -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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__4(x_1, x_2, x_3, x_4, x_5, x_18, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_20; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___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, 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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5(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_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_PersistentArray_forInAux___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___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, 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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__6(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_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_PersistentArray_forIn___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__2(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_3); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___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, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7(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(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); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3(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) { -_start: -{ -uint8_t x_15; -x_15 = lean_usize_dec_eq(x_3, x_4); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_5); -x_16 = lean_array_uget(x_2, x_3); -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_1); -x_17 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__2(x_1, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_16); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = 1; -x_21 = lean_usize_add(x_3, x_20); -x_3 = x_21; -x_5 = x_18; -x_14 = x_19; -goto _start; -} -else -{ -uint8_t x_23; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_17); -if (x_23 == 0) -{ -return x_17; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_17, 0); -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_17); -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; -} -} -} -else -{ -lean_object* x_27; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_5); -lean_ctor_set(x_27, 1, x_14); -return x_27; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -lean_inc(x_2); -x_11 = lean_apply_9(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; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_2, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_13, 1); -x_16 = lean_st_ref_get(x_2, x_15); -lean_dec(x_2); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_ctor_set(x_13, 1, x_18); -lean_ctor_set(x_16, 0, x_13); -return x_16; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_16, 0); -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_16); -lean_ctor_set(x_13, 1, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -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_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_st_ref_get(x_2, x_23); -lean_dec(x_2); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_27 = x_24; -} else { - lean_dec_ref(x_24); - x_27 = lean_box(0); -} -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_25); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 2, 0); -} else { - x_29 = x_27; -} -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_26); -return x_29; -} -} -else -{ -uint8_t x_30; -lean_dec(x_2); -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_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4(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) { -_start: -{ -uint8_t x_15; -x_15 = lean_usize_dec_eq(x_3, x_4); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_5); -x_16 = lean_array_uget(x_2, x_3); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_18, 0, x_16); -lean_inc(x_1); -x_19 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4___lambda__1), 10, 1); -lean_closure_set(x_19, 0, x_1); -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_20, 0, x_18); -lean_closure_set(x_20, 1, x_19); -x_21 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_22, 0, x_20); -lean_closure_set(x_22, 1, x_21); -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); -x_23 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_17, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = 1; -x_26 = lean_usize_add(x_3, x_25); -x_27 = lean_box(0); -x_3 = x_26; -x_5 = x_27; -x_14 = x_24; -goto _start; -} -else -{ -uint8_t x_29; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_23); -if (x_29 == 0) -{ -return x_23; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_23, 0); -x_31 = lean_ctor_get(x_23, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_23); -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_object* x_33; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_5); -lean_ctor_set(x_33, 1, x_14); -return x_33; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_array_get_size(x_12); -x_14 = lean_unsigned_to_nat(0u); -x_15 = lean_nat_dec_lt(x_14, x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_13); -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_1); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_11); -return x_17; -} -else -{ -uint8_t x_18; -x_18 = lean_nat_dec_le(x_13, x_13); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_13); -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_1); -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_11); -return x_20; -} -else -{ -size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; -x_21 = 0; -x_22 = lean_usize_of_nat(x_13); -lean_dec(x_13); -x_23 = lean_box(0); -x_24 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3(x_1, x_12, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -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_2, 0); -x_26 = lean_array_get_size(x_25); -x_27 = lean_unsigned_to_nat(0u); -x_28 = lean_nat_dec_lt(x_27, x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_26); -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_1); -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_11); -return x_30; -} -else -{ -uint8_t x_31; -x_31 = lean_nat_dec_le(x_26, x_26); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_26); -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_1); -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_11); -return x_33; -} -else -{ -size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; -x_34 = 0; -x_35 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_36 = lean_box(0); -x_37 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4(x_1, x_25, x_34, x_35, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_37; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__5(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) { -_start: -{ -uint8_t x_15; -x_15 = lean_usize_dec_eq(x_3, x_4); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_5); -x_16 = lean_array_uget(x_2, x_3); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 9, 1); -lean_closure_set(x_18, 0, x_16); -lean_inc(x_1); -x_19 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4___lambda__1), 10, 1); -lean_closure_set(x_19, 0, x_1); -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_20, 0, x_18); -lean_closure_set(x_20, 1, x_19); -x_21 = l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1; -x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_22, 0, x_20); -lean_closure_set(x_22, 1, x_21); -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); -x_23 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_17, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = 1; -x_26 = lean_usize_add(x_3, x_25); -x_27 = lean_box(0); -x_3 = x_26; -x_5 = x_27; -x_14 = x_24; -goto _start; -} -else -{ -uint8_t x_29; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_23); -if (x_29 == 0) -{ -return x_23; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_23, 0); -x_31 = lean_ctor_get(x_23, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_23); -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_object* x_33; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_5); -lean_ctor_set(x_33, 1, x_14); -return x_33; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_object* x_13; -x_12 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_13 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_15 = lean_ctor_get(x_13, 1); -x_16 = lean_ctor_get(x_13, 0); -lean_dec(x_16); -x_17 = lean_ctor_get(x_2, 1); -x_18 = lean_array_get_size(x_17); -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_nat_dec_lt(x_19, x_18); -if (x_20 == 0) -{ -lean_object* x_21; -lean_dec(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_1); -x_21 = lean_box(0); -lean_ctor_set(x_13, 0, x_21); -return x_13; -} -else -{ -uint8_t x_22; -x_22 = lean_nat_dec_le(x_18, x_18); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(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_1); -x_23 = lean_box(0); -lean_ctor_set(x_13, 0, x_23); -return x_13; -} -else -{ -size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; -lean_free_object(x_13); -x_24 = 0; -x_25 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_26 = lean_box(0); -x_27 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__5(x_1, x_17, x_24, x_25, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -return x_27; -} -} -} -else -{ -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_13, 1); -lean_inc(x_28); -lean_dec(x_13); -x_29 = lean_ctor_get(x_2, 1); -x_30 = lean_array_get_size(x_29); -x_31 = lean_unsigned_to_nat(0u); -x_32 = lean_nat_dec_lt(x_31, x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -lean_dec(x_30); -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_1); -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_28); -return x_34; -} -else -{ -uint8_t x_35; -x_35 = lean_nat_dec_le(x_30, x_30); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_30); -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_1); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_28); -return x_37; -} -else -{ -size_t x_38; size_t x_39; lean_object* x_40; lean_object* x_41; -x_38 = 0; -x_39 = lean_usize_of_nat(x_30); -lean_dec(x_30); -x_40 = lean_box(0); -x_41 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__5(x_1, x_29, x_38, x_39, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_28); -return x_41; -} -} -} -} -else -{ -uint8_t x_42; -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_1); -x_42 = !lean_is_exclusive(x_13); -if (x_42 == 0) -{ -return x_13; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_13, 0); -x_44 = lean_ctor_get(x_13, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_13); -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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocessAndProbe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_12 = l_Lean_Meta_Grind_Preprocessor_preprocess(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(x_12); -x_15 = l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__1(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -lean_dec(x_3); -lean_dec(x_13); -return x_15; -} -else -{ -uint8_t x_16; -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); -lean_dec(x_2); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -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_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__3(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_6); -lean_dec(x_2); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__4(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_6); -lean_dec(x_2); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_PersistentArray_forMAux___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__2(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_3); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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) { -_start: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___spec__5(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_6); -lean_dec(x_2); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_PersistentArray_forM___at_Lean_Meta_Grind_Preprocessor_preprocessAndProbe___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_3); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_st_ref_get(x_3, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_11 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -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_object* x_17; lean_object* x_18; uint8_t x_19; -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(x_11); -x_14 = l_Lean_Meta_resetCache___rarg(x_3, x_4, x_5, x_13); -lean_dec(x_5); -lean_dec(x_4); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_st_ref_take(x_3, x_15); -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(x_16); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_17, 0); -lean_dec(x_20); -lean_ctor_set(x_17, 0, x_10); -x_21 = lean_st_ref_set(x_3, x_17, x_18); -lean_dec(x_3); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_12); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_24); -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; -x_26 = lean_ctor_get(x_17, 1); -x_27 = lean_ctor_get(x_17, 2); -x_28 = lean_ctor_get(x_17, 3); -x_29 = lean_ctor_get(x_17, 4); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_17); -x_30 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_30, 0, x_10); -lean_ctor_set(x_30, 1, x_26); -lean_ctor_set(x_30, 2, x_27); -lean_ctor_set(x_30, 3, x_28); -lean_ctor_set(x_30, 4, x_29); -x_31 = lean_st_ref_set(x_3, x_30, x_18); -lean_dec(x_3); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_33 = x_31; -} else { - lean_dec_ref(x_31); - x_33 = lean_box(0); -} -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(0, 2, 0); -} else { - x_34 = x_33; -} -lean_ctor_set(x_34, 0, x_12); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_35 = lean_ctor_get(x_11, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_11, 1); -lean_inc(x_36); -lean_dec(x_11); -x_37 = l_Lean_Meta_resetCache___rarg(x_3, x_4, x_5, x_36); -lean_dec(x_5); -lean_dec(x_4); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_st_ref_take(x_3, x_38); -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(x_39); -x_42 = !lean_is_exclusive(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_40, 0); -lean_dec(x_43); -lean_ctor_set(x_40, 0, x_10); -x_44 = lean_st_ref_set(x_3, x_40, x_41); -lean_dec(x_3); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set_tag(x_44, 1); -lean_ctor_set(x_44, 0, x_35); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_35); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_49 = lean_ctor_get(x_40, 1); -x_50 = lean_ctor_get(x_40, 2); -x_51 = lean_ctor_get(x_40, 3); -x_52 = lean_ctor_get(x_40, 4); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_40); -x_53 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_53, 0, x_10); -lean_ctor_set(x_53, 1, x_49); -lean_ctor_set(x_53, 2, x_50); -lean_ctor_set(x_53, 3, x_51); -lean_ctor_set(x_53, 4, x_52); -x_54 = lean_st_ref_set(x_3, x_53, x_41); -lean_dec(x_3); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; -} else { - lean_dec_ref(x_54); - x_56 = lean_box(0); -} -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); -} else { - x_57 = x_56; - lean_ctor_set_tag(x_57, 1); -} -lean_ctor_set(x_57, 0, x_35); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___rarg), 6, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessAndProbe(lean_object* x_1, lean_object* x_2, 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; -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocessAndProbe), 11, 2); -lean_closure_set(x_9, 0, x_1); -lean_closure_set(x_9, 1, x_3); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg), 9, 1); -lean_closure_set(x_10, 0, x_9); -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GrindM_run___rarg), 7, 2); -lean_closure_set(x_11, 0, x_10); -lean_closure_set(x_11, 1, x_2); -x_12 = l_Lean_Meta_withoutModifyingMCtx___at_Lean_Meta_Grind_preprocessAndProbe___spec__1___rarg(x_11, x_4, x_5, x_6, x_7, x_8); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocess(lean_object* x_1, 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_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess), 10, 1); -lean_closure_set(x_8, 0, x_1); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg), 9, 1); -lean_closure_set(x_9, 0, x_8); -x_10 = l_Lean_Meta_Grind_GrindM_run___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7); -return x_10; -} -} -LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -if (x_5 == 0) -{ -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_ctor_get(x_1, 0); -lean_dec(x_8); -lean_ctor_set(x_1, 1, x_2); -{ -lean_object* _tmp_0 = x_7; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_4); -lean_ctor_set(x_11, 1, x_2); -x_1 = x_10; -x_2 = x_11; -goto _start; -} -} -else -{ -lean_object* x_13; -lean_dec(x_4); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -lean_dec(x_1); -x_1 = x_13; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -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; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = l_Lean_PersistentArray_toList___rarg(x_1); -x_11 = lean_box(0); -x_12 = l_List_filterTR_loop___at_Lean_Meta_Grind_main___spec__1(x_10, x_11); -x_13 = l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__2(x_12, x_11); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_9); -return x_14; -} -} -static lean_object* _init_l_Lean_Meta_Grind_main___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_main___lambda__1___boxed), 9, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(lean_object* x_1, 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; -x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess), 10, 1); -lean_closure_set(x_8, 0, x_1); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg), 9, 1); -lean_closure_set(x_9, 0, x_8); -x_10 = l_Lean_Meta_Grind_main___closed__1; -x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_11, 0, x_9); -lean_closure_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_Grind_GrindM_run___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -lean_dec(x_1); -return x_10; -} -} -lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Canonicalizer(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Intro(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Simp_Main(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Attr(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_RevertAll(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Injection(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Core(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_Run(uint8_t builtin, lean_object*); -static bool _G_initialized = false; -LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Preprocessor(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_Init_Grind_Lemmas(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Canonicalizer(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Util(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Intro(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Simp_Main(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_Attr(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_RevertAll(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_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_Util(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_Cases(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_Injection(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_Core(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); -res = initialize_Lean_Meta_Tactic_Grind_Run(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1); -l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2); -l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3(); -l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4); -l_Lean_Meta_Grind_Preprocessor_instInhabitedState = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState); -l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1); -l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__2); -l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3); -l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1); -l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2); -l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__3 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__3); -l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4); -l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_loop___lambda__4___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_ppGoals___spec__4___closed__1); -l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__1); -l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_ppGoals___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__5___closed__1); -l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__1(); -l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__7___closed__2); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__1); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__2); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__3 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__3); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__4 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__4); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__5 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__5); -l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6 = _init_l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_preprocess___closed__6); -l_Lean_Meta_Grind_main___closed__1 = _init_l_Lean_Meta_Grind_main___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_main___closed__1); -return lean_io_result_mk_ok(lean_box(0)); -} -#ifdef __cplusplus -} -#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c index 6ca513b78b..a7040611d7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c @@ -14,27 +14,42 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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* 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*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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* l_Lean_Meta_Grind_isCongrRoot(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_appArg_x21(lean_object*); static lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___spec__1___closed__1; extern lean_object* l_Lean_projectionFnInfoExt; lean_object* l_Lean_Meta_Grind_getRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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_Lean_Meta_Grind_propagateProjEq___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq(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*); +static lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3; +static lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4; +lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__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_propagateProjEq___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___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_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___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* l_Lean_Meta_Grind_getGeneration(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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*); extern lean_object* l_Lean_instInhabitedProjectionFunctionInfo; +lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,9 +57,12 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___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_propagateProjEq___lambda__3___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_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_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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*); static lean_object* _init_l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___spec__1___closed__1() { _start: { @@ -159,15 +177,181 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_14 = lean_ctor_get(x_1, 1); +x_15 = lean_ctor_get(x_1, 2); +x_16 = lean_nat_add(x_14, x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_17); +x_19 = lean_nat_dec_lt(x_16, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_3); +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_13); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l_Lean_Meta_Grind_propagateProjEq___lambda__1(x_2, x_16, x_3, x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_16); +return x_23; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1() { +_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_propagateProjEq___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("debug", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("proj", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1; +x_2 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__2; +x_3 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4; +x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_addCongrTable___spec__8(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_box(0); +x_19 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_1, x_2, x_3, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); +return x_19; +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_14); +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; +x_21 = lean_ctor_get(x_14, 1); +x_22 = lean_ctor_get(x_14, 0); +lean_dec(x_22); +lean_inc(x_3); +x_23 = l_Lean_MessageData_ofExpr(x_3); +x_24 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6; +lean_ctor_set_tag(x_14, 7); +lean_ctor_set(x_14, 1, x_23); +lean_ctor_set(x_14, 0, x_24); +x_25 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +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(x_26); +x_29 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_1, x_2, x_3, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +lean_dec(x_27); +return x_29; +} +else +{ +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_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_dec(x_14); +lean_inc(x_3); +x_31 = l_Lean_MessageData_ofExpr(x_3); +x_32 = l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6; +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_addTrace___at_Lean_Meta_Grind_addCongrTable___spec__9(x_13, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +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(x_35); +x_38 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_1, x_2, x_3, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +lean_dec(x_36); +return x_38; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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; -x_15 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_2); +x_15 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_2); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = l_Lean_Expr_appFn_x21(x_3); +x_16 = l_Lean_Expr_appFn_x21(x_4); +lean_inc(x_2); x_17 = l_Lean_Expr_app___override(x_16, x_2); x_18 = l_Lean_Meta_Grind_shareCommon(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); x_19 = lean_ctor_get(x_18, 0); @@ -175,7 +359,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Meta_Grind_getGeneration(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +x_21 = l_Lean_Meta_Grind_getGeneration(x_4, 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; @@ -184,12 +368,33 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); +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_inc(x_19); x_24 = l_Lean_Meta_Grind_internalize(x_19, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -return x_24; +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(x_24); +x_26 = l_Lean_Meta_Grind_propagateProjEq___lambda__3(x_1, x_2, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_26; } else { -uint8_t x_25; +uint8_t x_27; lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); @@ -199,40 +404,31 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_25 = !lean_is_exclusive(x_21); -if (x_25 == 0) +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) { -return x_21; +return x_24; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_21, 0); -x_27 = lean_ctor_get(x_21, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_21); -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_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_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; } } } else { -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_29 = lean_ctor_get(x_4, 1); -x_30 = lean_ctor_get(x_4, 2); -x_31 = lean_nat_add(x_29, x_30); -x_32 = lean_unsigned_to_nat(0u); -x_33 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_32); -x_34 = lean_nat_dec_lt(x_31, x_33); -lean_dec(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_31); +uint8_t x_31; +lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -241,31 +437,41 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); lean_dec(x_2); -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_14); -return x_36; +x_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) +{ +return x_21; } else { -lean_object* x_37; lean_object* x_38; -x_37 = lean_box(0); -x_38 = l_Lean_Meta_Grind_propagateProjEq___lambda__1(x_2, x_31, x_3, x_37, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +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 +{ +lean_object* x_35; +x_35 = l_Lean_Meta_Grind_propagateProjEq___lambda__3(x_1, x_2, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_31); lean_dec(x_2); -return x_38; +return x_35; } } } -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; @@ -306,7 +512,7 @@ else lean_object* x_21; lean_object* x_22; lean_free_object(x_14); x_21 = lean_box(0); -x_22 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_13, x_16, x_1, x_2, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); +x_22 = l_Lean_Meta_Grind_propagateProjEq___lambda__4(x_2, x_16, x_13, x_1, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); lean_dec(x_13); return x_22; } @@ -345,7 +551,7 @@ else { lean_object* x_29; lean_object* x_30; x_29 = lean_box(0); -x_30 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_13, x_23, x_1, x_2, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +x_30 = l_Lean_Meta_Grind_propagateProjEq___lambda__4(x_2, x_23, x_13, x_1, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); lean_dec(x_13); return x_30; } @@ -385,6 +591,98 @@ return x_34; } } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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; +lean_inc(x_1); +x_13 = l_Lean_Meta_Grind_isCongrRoot(x_1, 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; uint8_t x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +uint8_t x_16; +lean_dec(x_11); +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_1); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_13, 0, x_18); +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_dec(x_13); +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_19); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_13, 1); +lean_inc(x_22); +lean_dec(x_13); +x_23 = lean_box(0); +x_24 = l_Lean_Meta_Grind_propagateProjEq___lambda__5(x_1, x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_11); +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_1); +x_25 = !lean_is_exclusive(x_13); +if (x_25 == 0) +{ +return x_13; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_13, 0); +x_27 = lean_ctor_get(x_13, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_13); +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_propagateProjEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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: { @@ -479,7 +777,7 @@ else lean_object* x_32; lean_object* x_33; lean_free_object(x_13); x_32 = lean_box(0); -x_33 = l_Lean_Meta_Grind_propagateProjEq___lambda__3(x_1, x_24, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_33 = l_Lean_Meta_Grind_propagateProjEq___lambda__6(x_1, x_24, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); lean_dec(x_24); return x_33; } @@ -526,7 +824,7 @@ else { lean_object* x_44; lean_object* x_45; x_44 = lean_box(0); -x_45 = l_Lean_Meta_Grind_propagateProjEq___lambda__3(x_1, x_35, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); +x_45 = l_Lean_Meta_Grind_propagateProjEq___lambda__6(x_1, x_35, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); lean_dec(x_35); return x_45; } @@ -585,15 +883,19 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_15; -x_15 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_propagateProjEq___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -return x_15; +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { @@ -601,6 +903,41 @@ _start: { lean_object* x_13; x_13 = l_Lean_Meta_Grind_propagateProjEq___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_propagateProjEq___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Meta_Grind_propagateProjEq___lambda__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); +lean_dec(x_3); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateProjEq___lambda__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_Meta_Grind_propagateProjEq___lambda__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_3); lean_dec(x_2); return x_13; @@ -625,6 +962,18 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___spec__1___closed__1 = _init_l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___spec__1___closed__1(); lean_mark_persistent(l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_Grind_propagateProjEq___spec__1___closed__1); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__1); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__2); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__3); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__4); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__5 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__5); +l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6 = _init_l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateProjEq___lambda__3___closed__6); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c index 9d09fa9877..3378f014e3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c @@ -20,7 +20,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__6; -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -33,7 +32,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__12; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkNestedProofCongr___closed__2; -static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkRefl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__6; @@ -42,7 +40,6 @@ uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__4; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -50,29 +47,25 @@ lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___spec__1___rarg___lambda__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_Lean_Meta_Grind_mkEqProofImpl___closed__4; lean_object* l_Lean_Meta_mkHEqOfEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEqProofImpl___closed__2; -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2; -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkEqProofImpl___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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*); extern lean_object* l_instInhabitedPUnit; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_grind_mk_heq_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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkNestedProofCongr___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_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -83,10 +76,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G LEAN_EXPORT 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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__5; -lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkTrans_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__1; @@ -95,17 +85,13 @@ lean_object* l_Lean_Meta_getFunInfo(lean_object*, lean_object*, lean_object*, le LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___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_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqNDRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(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_mkEqProofImpl_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_flipProof___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_flipProof___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_mkEqProofImpl___lambda__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_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__1; lean_object* l_outOfBounds___rarg(lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8; lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -118,7 +104,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_flipProof(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Expr_appFn_x21___spec__1(lean_object*); lean_object* l_Lean_Meta_Grind_mkHCongrWithArity(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,18 +126,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkTrans___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_Proof_0__Lean_Meta_Grind_findCommon___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__1(lean_object*, lean_object*, lean_object*); -double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_mkCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom(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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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_EXPORT lean_object* l_Lean_Meta_Grind_mkHEqProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_Lean_Meta_instInhabitedCongrArgKind; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__10; @@ -163,7 +145,6 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget_loop___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_Proof_0__Lean_Meta_Grind_isEqProof___closed__2; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___spec__1___closed__1; -lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkNestedProofCongr(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_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,15 +152,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tact uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___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_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__2; -lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static double l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof(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_panic_fn(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqOfHEqIfNeeded___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof___closed__1; lean_object* l_Lean_Meta_Grind_getENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,23 +165,19 @@ LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__ lean_object* lean_array_mk(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__2; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__3___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3; lean_object* l_Lean_Meta_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo(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* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqOfHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkTrans(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__4; lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1; static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___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_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkRefl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -217,20 +190,16 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof_loop___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_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Grind_congrPlaceholderProof; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof___closed__4; static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3; lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_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_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__9; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__2; lean_object* l_Lean_Meta_mkHEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof___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_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__1() { _start: { @@ -5724,7 +5693,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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__4; -x_3 = lean_unsigned_to_nat(206u); +x_3 = lean_unsigned_to_nat(212u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5737,8 +5706,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; x_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__4; -x_3 = lean_unsigned_to_nat(209u); -x_4 = lean_unsigned_to_nat(66u); +x_3 = lean_unsigned_to_nat(215u); +x_4 = lean_unsigned_to_nat(72u); x_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; @@ -5749,46 +5718,58 @@ _start: { lean_object* x_14; lean_inc(x_1); -x_14 = l_Lean_Meta_Grind_getENode(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Meta_Grind_getRootENode(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* 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(x_14); -lean_inc(x_2); -x_17 = l_Lean_Meta_Grind_getENode(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_15, 2); -lean_inc(x_20); +x_17 = lean_ctor_get_uint8(x_15, sizeof(void*)*10 + 4); lean_dec(x_15); -x_21 = lean_ctor_get(x_18, 2); -lean_inc(x_21); -lean_dec(x_18); -x_22 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_20, x_21); -lean_dec(x_21); -lean_dec(x_20); -if (x_22 == 0) +lean_inc(x_1); +x_18 = l_Lean_Meta_Grind_getENode(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_23; lean_object* x_24; +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(x_18); +lean_inc(x_2); +x_21 = l_Lean_Meta_Grind_getENode(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_19, 2); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_ctor_get(x_22, 2); +lean_inc(x_25); +lean_dec(x_22); +x_26 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_24, x_25); +lean_dec(x_25); +lean_dec(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_dec(x_2); lean_dec(x_1); -x_23 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__5; -x_24 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -return x_24; +x_27 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__5; +x_28 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +return x_28; } else { -lean_object* x_25; +lean_object* x_29; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5799,33 +5780,16 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); lean_inc(x_1); -x_25 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -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, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_box(0); -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_inc(x_5); -x_29 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo(x_1, x_26, x_28, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +x_29 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); +x_32 = lean_box(0); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5834,97 +5798,166 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_32 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom(x_2, x_26, x_30, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); -lean_dec(x_26); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); +x_33 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo(x_1, x_30, x_32, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); 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_32, 1); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__6; -x_36 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +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_inc(x_5); +x_36 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom(x_2, x_30, x_34, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +lean_dec(x_30); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__6; +x_40 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_38); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_42 = x_36; +} else { + lean_dec_ref(x_36); + x_42 = lean_box(0); +} +x_43 = lean_ctor_get(x_37, 0); +lean_inc(x_43); +lean_dec(x_37); +if (x_3 == 0) +{ +if (x_17 == 0) +{ +uint8_t x_49; +x_49 = 1; +x_44 = x_49; +goto block_48; +} +else +{ +uint8_t x_50; +x_50 = 0; +x_44 = x_50; +goto block_48; +} +} +else +{ +if (x_17 == 0) +{ +uint8_t x_51; +x_51 = 0; +x_44 = x_51; +goto block_48; +} +else +{ +uint8_t x_52; +x_52 = 1; +x_44 = x_52; +goto block_48; +} +} +block_48: +{ +if (x_44 == 0) +{ +lean_dec(x_42); +if (x_3 == 0) +{ +lean_object* x_45; +x_45 = l_Lean_Meta_mkEqOfHEq(x_43, x_9, x_10, x_11, x_12, x_41); +return x_45; +} +else +{ +lean_object* x_46; +x_46 = l_Lean_Meta_mkHEqOfEq(x_43, x_9, x_10, x_11, x_12, x_41); +return x_46; +} +} +else +{ +lean_object* x_47; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_42)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_42; +} +lean_ctor_set(x_47, 0, x_43); +lean_ctor_set(x_47, 1, x_41); +return x_47; +} +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_53 = !lean_is_exclusive(x_36); +if (x_53 == 0) +{ return x_36; } else { -uint8_t x_37; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_32); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_32, 0); -lean_dec(x_38); -x_39 = lean_ctor_get(x_33, 0); -lean_inc(x_39); -lean_dec(x_33); -lean_ctor_set(x_32, 0, x_39); -return x_32; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_dec(x_32); -x_41 = lean_ctor_get(x_33, 0); -lean_inc(x_41); -lean_dec(x_33); -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; +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_36, 0); +x_55 = lean_ctor_get(x_36, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_36); +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_43; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_43 = !lean_is_exclusive(x_32); -if (x_43 == 0) -{ -return x_32; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_32, 0); -x_45 = lean_ctor_get(x_32, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_32); -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_dec(x_26); +uint8_t x_57; +lean_dec(x_30); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5934,29 +5967,64 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_47 = !lean_is_exclusive(x_29); -if (x_47 == 0) +x_57 = !lean_is_exclusive(x_33); +if (x_57 == 0) +{ +return x_33; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_33, 0); +x_59 = lean_ctor_get(x_33, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_33); +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 +{ +uint8_t x_61; +lean_dec(x_12); +lean_dec(x_11); +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_2); +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_29); +if (x_61 == 0) { return x_29; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_29, 0); -x_49 = lean_ctor_get(x_29, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_29, 0); +x_63 = lean_ctor_get(x_29, 1); +lean_inc(x_63); +lean_inc(x_62); lean_dec(x_29); -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; +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; +} } } } else { -uint8_t x_51; +uint8_t x_65; +lean_dec(x_19); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5967,31 +6035,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_25); -if (x_51 == 0) +x_65 = !lean_is_exclusive(x_21); +if (x_65 == 0) { -return x_25; +return x_21; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_25, 0); -x_53 = lean_ctor_get(x_25, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_25); -x_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; -} +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_21, 0); +x_67 = lean_ctor_get(x_21, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_21); +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; } } } else { -uint8_t x_55; -lean_dec(x_15); +uint8_t x_69; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6002,29 +6068,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_17); -if (x_55 == 0) +x_69 = !lean_is_exclusive(x_18); +if (x_69 == 0) { -return x_17; +return x_18; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_17, 0); -x_57 = lean_ctor_get(x_17, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_17); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_18, 0); +x_71 = lean_ctor_get(x_18, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_18); +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; } } } else { -uint8_t x_59; +uint8_t x_73; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6035,23 +6101,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_14); -if (x_59 == 0) +x_73 = !lean_is_exclusive(x_14); +if (x_73 == 0) { return x_14; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_14, 0); -x_61 = lean_ctor_get(x_14, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_14, 0); +x_75 = lean_ctor_get(x_14, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_14); -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; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } @@ -9226,981 +9292,43 @@ lean_dec(x_2); return x_15; } } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_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) { -_start: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_8, 2); -x_12 = l_Lean_isTracingEnabledForCore(x_1, x_11, x_10); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -return x_12; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -static double _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; double x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = 0; -x_3 = l_Float_ofScientific(x_1, x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___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) { -_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; uint8_t x_19; -x_12 = lean_ctor_get(x_9, 5); -x_13 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_st_ref_take(x_10, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_17, 3); -lean_dec(x_23); -x_24 = !lean_is_exclusive(x_18); -if (x_24 == 0) -{ -lean_object* x_25; double x_26; uint8_t 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_25 = lean_ctor_get(x_18, 0); -x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1; -x_27 = 0; -x_28 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; -x_29 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_29, 0, x_1); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set_float(x_29, sizeof(void*)*2, x_26); -lean_ctor_set_float(x_29, sizeof(void*)*2 + 8, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*2 + 16, x_27); -x_30 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3; -x_31 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_14); -lean_ctor_set(x_31, 2, x_30); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_31); -lean_ctor_set(x_16, 0, x_12); -x_32 = l_Lean_PersistentArray_push___rarg(x_25, x_16); -lean_ctor_set(x_18, 0, x_32); -x_33 = lean_st_ref_set(x_10, x_17, x_20); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -else -{ -uint64_t x_40; lean_object* x_41; double 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; lean_object* x_53; lean_object* x_54; -x_40 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_41 = lean_ctor_get(x_18, 0); -lean_inc(x_41); -lean_dec(x_18); -x_42 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1; -x_43 = 0; -x_44 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; -x_45 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_45, 0, x_1); -lean_ctor_set(x_45, 1, x_44); -lean_ctor_set_float(x_45, sizeof(void*)*2, x_42); -lean_ctor_set_float(x_45, sizeof(void*)*2 + 8, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*2 + 16, x_43); -x_46 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3; -x_47 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_14); -lean_ctor_set(x_47, 2, x_46); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_47); -lean_ctor_set(x_16, 0, x_12); -x_48 = l_Lean_PersistentArray_push___rarg(x_41, x_16); -x_49 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set_uint64(x_49, sizeof(void*)*1, x_40); -lean_ctor_set(x_17, 3, x_49); -x_50 = lean_st_ref_set(x_10, x_17, x_20); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_52 = x_50; -} else { - lean_dec_ref(x_50); - x_52 = lean_box(0); -} -x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_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; uint64_t x_62; lean_object* x_63; lean_object* x_64; double x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_55 = lean_ctor_get(x_17, 0); -x_56 = lean_ctor_get(x_17, 1); -x_57 = lean_ctor_get(x_17, 2); -x_58 = lean_ctor_get(x_17, 4); -x_59 = lean_ctor_get(x_17, 5); -x_60 = lean_ctor_get(x_17, 6); -x_61 = lean_ctor_get(x_17, 7); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_17); -x_62 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_63 = lean_ctor_get(x_18, 0); -lean_inc(x_63); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_64 = x_18; -} else { - lean_dec_ref(x_18); - x_64 = lean_box(0); -} -x_65 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1; -x_66 = 0; -x_67 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; -x_68 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_68, 0, x_1); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set_float(x_68, sizeof(void*)*2, x_65); -lean_ctor_set_float(x_68, sizeof(void*)*2 + 8, x_65); -lean_ctor_set_uint8(x_68, sizeof(void*)*2 + 16, x_66); -x_69 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3; -x_70 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_14); -lean_ctor_set(x_70, 2, x_69); -lean_inc(x_12); -lean_ctor_set(x_16, 1, x_70); -lean_ctor_set(x_16, 0, x_12); -x_71 = l_Lean_PersistentArray_push___rarg(x_63, x_16); -if (lean_is_scalar(x_64)) { - x_72 = lean_alloc_ctor(0, 1, 8); -} else { - x_72 = x_64; -} -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set_uint64(x_72, sizeof(void*)*1, x_62); -x_73 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_73, 0, x_55); -lean_ctor_set(x_73, 1, x_56); -lean_ctor_set(x_73, 2, x_57); -lean_ctor_set(x_73, 3, x_72); -lean_ctor_set(x_73, 4, x_58); -lean_ctor_set(x_73, 5, x_59); -lean_ctor_set(x_73, 6, x_60); -lean_ctor_set(x_73, 7, x_61); -x_74 = lean_st_ref_set(x_10, x_73, x_20); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_76 = x_74; -} else { - lean_dec_ref(x_74); - x_76 = lean_box(0); -} -x_77 = lean_box(0); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_75); -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_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint64_t x_88; lean_object* x_89; lean_object* x_90; double x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_79 = lean_ctor_get(x_16, 1); -lean_inc(x_79); -lean_dec(x_16); -x_80 = lean_ctor_get(x_17, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_17, 1); -lean_inc(x_81); -x_82 = lean_ctor_get(x_17, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_17, 4); -lean_inc(x_83); -x_84 = lean_ctor_get(x_17, 5); -lean_inc(x_84); -x_85 = lean_ctor_get(x_17, 6); -lean_inc(x_85); -x_86 = lean_ctor_get(x_17, 7); -lean_inc(x_86); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - lean_ctor_release(x_17, 2); - lean_ctor_release(x_17, 3); - lean_ctor_release(x_17, 4); - lean_ctor_release(x_17, 5); - lean_ctor_release(x_17, 6); - lean_ctor_release(x_17, 7); - x_87 = x_17; -} else { - lean_dec_ref(x_17); - x_87 = lean_box(0); -} -x_88 = lean_ctor_get_uint64(x_18, sizeof(void*)*1); -x_89 = lean_ctor_get(x_18, 0); -lean_inc(x_89); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_90 = x_18; -} else { - lean_dec_ref(x_18); - x_90 = lean_box(0); -} -x_91 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1; -x_92 = 0; -x_93 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; -x_94 = lean_alloc_ctor(0, 2, 17); -lean_ctor_set(x_94, 0, x_1); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set_float(x_94, sizeof(void*)*2, x_91); -lean_ctor_set_float(x_94, sizeof(void*)*2 + 8, x_91); -lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 16, x_92); -x_95 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3; -x_96 = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_14); -lean_ctor_set(x_96, 2, x_95); -lean_inc(x_12); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_12); -lean_ctor_set(x_97, 1, x_96); -x_98 = l_Lean_PersistentArray_push___rarg(x_89, x_97); -if (lean_is_scalar(x_90)) { - x_99 = lean_alloc_ctor(0, 1, 8); -} else { - x_99 = x_90; -} -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set_uint64(x_99, sizeof(void*)*1, x_88); -if (lean_is_scalar(x_87)) { - x_100 = lean_alloc_ctor(0, 8, 0); -} else { - x_100 = x_87; -} -lean_ctor_set(x_100, 0, x_80); -lean_ctor_set(x_100, 1, x_81); -lean_ctor_set(x_100, 2, x_82); -lean_ctor_set(x_100, 3, x_99); -lean_ctor_set(x_100, 4, x_83); -lean_ctor_set(x_100, 5, x_84); -lean_ctor_set(x_100, 6, x_85); -lean_ctor_set(x_100, 7, x_86); -x_101 = lean_st_ref_set(x_10, x_100, x_79); -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_box(0); -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; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = 0; -x_14 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(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_Lean_Meta_Grind_mkEqProofImpl_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = 1; -x_14 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(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_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_14 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_Meta_mkEqOfHEq(x_15, x_8, x_9, x_10, x_11, x_16); -return x_17; -} -else -{ -uint8_t x_18; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) -{ -return x_14; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1() { -_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_mkEqProofImpl_go___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("proof", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1; -x_2 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" = ", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" ≡ ", 5, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_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: -{ -lean_object* x_12; -lean_inc(x_1); -x_12 = l_Lean_Meta_Grind_getRootENode(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; uint8_t x_14; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*10 + 4); -lean_dec(x_13); -if (x_14 == 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_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3; -x_17 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_unbox(x_18); -lean_dec(x_18); -if (x_19 == 0) -{ -lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = 0; -x_22 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_20); -return x_22; -} -else -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_17); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; -x_24 = lean_ctor_get(x_17, 1); -x_25 = lean_ctor_get(x_17, 0); -lean_dec(x_25); -lean_inc(x_1); -x_26 = l_Lean_MessageData_ofExpr(x_1); -x_27 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -lean_ctor_set_tag(x_17, 7); -lean_ctor_set(x_17, 1, x_26); -lean_ctor_set(x_17, 0, x_27); -x_28 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6; -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_17); -lean_ctor_set(x_29, 1, x_28); -lean_inc(x_2); -x_30 = l_Lean_MessageData_ofExpr(x_2); -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_27); -x_33 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_16, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = 0; -x_36 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_34); -return x_36; -} -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; uint8_t x_48; lean_object* x_49; -x_37 = lean_ctor_get(x_17, 1); -lean_inc(x_37); -lean_dec(x_17); -lean_inc(x_1); -x_38 = l_Lean_MessageData_ofExpr(x_1); -x_39 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6; -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -lean_inc(x_2); -x_43 = l_Lean_MessageData_ofExpr(x_2); -x_44 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_39); -x_46 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_16, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_37); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = 0; -x_49 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_12, 1); -lean_inc(x_50); -lean_dec(x_12); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -lean_inc(x_1); -x_51 = l_Lean_Meta_Grind_hasSameType(x_1, x_2, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; uint8_t x_53; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3; -x_56 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_unbox(x_57); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_object* x_59; uint8_t x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -x_60 = 1; -x_61 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_60, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); -return x_61; -} -else -{ -uint8_t x_62; -x_62 = !lean_is_exclusive(x_56); -if (x_62 == 0) -{ -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; uint8_t x_74; lean_object* x_75; -x_63 = lean_ctor_get(x_56, 1); -x_64 = lean_ctor_get(x_56, 0); -lean_dec(x_64); -lean_inc(x_1); -x_65 = l_Lean_MessageData_ofExpr(x_1); -x_66 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -lean_ctor_set_tag(x_56, 7); -lean_ctor_set(x_56, 1, x_65); -lean_ctor_set(x_56, 0, x_66); -x_67 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8; -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_56); -lean_ctor_set(x_68, 1, x_67); -lean_inc(x_2); -x_69 = l_Lean_MessageData_ofExpr(x_2); -x_70 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_71 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_66); -x_72 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_55, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_63); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = 1; -x_75 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_74, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_73); -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; uint8_t x_87; lean_object* x_88; -x_76 = lean_ctor_get(x_56, 1); -lean_inc(x_76); -lean_dec(x_56); -lean_inc(x_1); -x_77 = l_Lean_MessageData_ofExpr(x_1); -x_78 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -x_80 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8; -x_81 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -lean_inc(x_2); -x_82 = l_Lean_MessageData_ofExpr(x_2); -x_83 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_78); -x_85 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_55, x_84, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_76); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = 1; -x_88 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_87, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_86); -return x_88; -} -} -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_89 = lean_ctor_get(x_51, 1); -lean_inc(x_89); -lean_dec(x_51); -x_90 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3; -x_91 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_90, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_89); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_unbox(x_92); -lean_dec(x_92); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_91, 1); -lean_inc(x_94); -lean_dec(x_91); -x_95 = lean_box(0); -x_96 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3(x_1, x_2, x_95, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_94); -return x_96; -} -else -{ -uint8_t x_97; -x_97 = !lean_is_exclusive(x_91); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_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_98 = lean_ctor_get(x_91, 1); -x_99 = lean_ctor_get(x_91, 0); -lean_dec(x_99); -lean_inc(x_1); -x_100 = l_Lean_MessageData_ofExpr(x_1); -x_101 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -lean_ctor_set_tag(x_91, 7); -lean_ctor_set(x_91, 1, x_100); -lean_ctor_set(x_91, 0, x_101); -x_102 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6; -x_103 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_103, 0, x_91); -lean_ctor_set(x_103, 1, x_102); -lean_inc(x_2); -x_104 = l_Lean_MessageData_ofExpr(x_2); -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_101); -x_107 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_90, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_98); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3(x_1, x_2, x_108, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_109); -lean_dec(x_108); -return x_110; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_111 = lean_ctor_get(x_91, 1); -lean_inc(x_111); -lean_dec(x_91); -lean_inc(x_1); -x_112 = l_Lean_MessageData_ofExpr(x_1); -x_113 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -x_114 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -x_115 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6; -x_116 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -lean_inc(x_2); -x_117 = l_Lean_MessageData_ofExpr(x_2); -x_118 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_113); -x_120 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_90, x_119, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_111); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); -x_123 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3(x_1, x_2, x_121, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_122); -lean_dec(x_121); -return x_123; -} -} -} -} -else -{ -uint8_t x_124; -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); -lean_dec(x_2); -lean_dec(x_1); -x_124 = !lean_is_exclusive(x_51); -if (x_124 == 0) -{ -return x_51; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_51, 0); -x_126 = lean_ctor_get(x_51, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_51); -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_128; -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); -lean_dec(x_2); -lean_dec(x_1); -x_128 = !lean_is_exclusive(x_12); -if (x_128 == 0) -{ -return x_12; -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_12, 0); -x_130 = lean_ctor_get(x_12, 1); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_12); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_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) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(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(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); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(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(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); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_3); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_3); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Meta_Grind_mkEqProofImpl_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_3); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("detail", 6, 6); +x_1 = lean_mk_string_unchecked("( __do_lift._@.Lean.Meta.Tactic.Grind.Proof._hyg.2379.0 )\n ", 60, 60); return x_1; } } static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1; -x_2 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2; -x_3 = l_Lean_Meta_Grind_mkEqProofImpl___closed__1; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__1; +x_2 = l_Lean_Meta_Grind_mkEqProofImpl___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.mkEqProofImpl", 29, 29); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEqProofImpl___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; +x_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1; +x_2 = l_Lean_Meta_Grind_mkEqProofImpl___closed__3; +x_3 = lean_unsigned_to_nat(231u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l_Lean_Meta_Grind_mkEqProofImpl___closed__2; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; } } LEAN_EXPORT lean_object* lean_grind_mk_eq_proof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -10211,140 +9339,42 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_12 = l_Lean_Meta_Grind_mkEqProofImpl_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_inc(x_2); +lean_inc(x_1); +x_12 = l_Lean_Meta_Grind_hasSameType(x_1, x_2, 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; uint8_t x_18; +lean_object* x_13; uint8_t x_14; x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); lean_dec(x_12); -x_15 = l_Lean_Meta_Grind_mkEqProofImpl___closed__2; -x_16 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__1(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -uint8_t x_19; -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_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_16, 0); -lean_dec(x_20); -lean_ctor_set(x_16, 0, x_13); -return x_16; +x_16 = l_Lean_Meta_Grind_mkEqProofImpl___closed__4; +x_17 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +return x_17; } else { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_13); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -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; uint8_t x_29; -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); -lean_dec(x_16); -lean_inc(x_13); -x_24 = l_Lean_MessageData_ofExpr(x_13); -x_25 = l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4; -x_26 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2(x_15, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, 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_4); -lean_dec(x_3); -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_13); -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_13); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -uint8_t x_33; -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_33 = !lean_is_exclusive(x_12); -if (x_33 == 0) -{ -return x_12; -} -else -{ -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_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); lean_dec(x_12); -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; +x_19 = 0; +x_20 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_1, x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +return x_20; } } -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqProofImpl___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: +else { -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_mkEqProofImpl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +uint8_t x_21; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10354,10 +9384,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_12); +if (x_21 == 0) +{ return x_12; } +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHEqProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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* lean_grind_mk_heq_proof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; @@ -10475,31 +9524,14 @@ l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__2); l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__3); -l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__1(); -l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__2); -l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_mkEqProofImpl_go___spec__2___closed__3); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__1); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__2); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__3); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__4); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__5); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__6); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__7); -l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8 = _init_l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl_go___closed__8); l_Lean_Meta_Grind_mkEqProofImpl___closed__1 = _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl___closed__1); l_Lean_Meta_Grind_mkEqProofImpl___closed__2 = _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl___closed__2); +l_Lean_Meta_Grind_mkEqProofImpl___closed__3 = _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl___closed__3); +l_Lean_Meta_Grind_mkEqProofImpl___closed__4 = _init_l_Lean_Meta_Grind_mkEqProofImpl___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEqProofImpl___closed__4); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c index d4c75350fc..80e456e2db 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c @@ -29,7 +29,6 @@ static lean_object* l_Lean_Meta_Grind_propagateAndUp___lambda__1___closed__5; static lean_object* l___regBuiltin_Lean_Meta_Grind_propagateNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_1426____closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_propagateAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_383_(lean_object*); static lean_object* l_Lean_Meta_Grind_propagateOrUp___lambda__1___closed__10; -lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateAndDown___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqUp(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_propagateEqDown___lambda__1___closed__2; @@ -118,6 +117,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateOrDown___lambda__1(lean_obje static lean_object* l_Lean_Meta_Grind_propagateNotUp___lambda__1___closed__4; 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*); static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__1; +lean_object* lean_grind_mk_heq_proof(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_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_mkEqFalseProof(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_propagateOrUp___closed__1; @@ -5137,11 +5137,10 @@ return x_21; } else { -lean_object* x_22; uint8_t x_23; lean_object* x_24; +lean_object* x_22; lean_object* x_23; x_22 = lean_ctor_get(x_13, 1); lean_inc(x_22); lean_dec(x_13); -x_23 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -5150,19 +5149,19 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_24 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore(x_2, x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -if (lean_obj_tag(x_24) == 0) +x_23 = lean_grind_mk_heq_proof(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +if (lean_obj_tag(x_23) == 0) { -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_24, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Meta_Grind_propagateEqUp___lambda__1___closed__3; +lean_dec(x_23); +x_26 = l_Lean_Meta_Grind_propagateEqUp___lambda__1___closed__3; lean_inc(x_1); -x_28 = l_Lean_mkAppB(x_27, x_1, x_25); -x_29 = l_Lean_Meta_Grind_pushEqTrue(x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +x_27 = l_Lean_mkAppB(x_26, x_1, x_24); +x_28 = l_Lean_Meta_Grind_pushEqTrue(x_1, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5171,11 +5170,11 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_29; +return x_28; } else { -uint8_t x_30; +uint8_t x_29; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5185,30 +5184,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_24); -if (x_30 == 0) +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) { -return x_24; +return x_23; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_24, 0); -x_32 = lean_ctor_get(x_24, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); lean_inc(x_31); -lean_dec(x_24); -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_inc(x_30); +lean_dec(x_23); +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 { -uint8_t x_34; +uint8_t x_33; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5220,23 +5219,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_13); -if (x_34 == 0) +x_33 = !lean_is_exclusive(x_13); +if (x_33 == 0) { return x_13; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_13, 0); -x_36 = lean_ctor_get(x_13, 1); -lean_inc(x_36); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_13, 0); +x_35 = lean_ctor_get(x_13, 1); lean_inc(x_35); +lean_inc(x_34); lean_dec(x_13); -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; +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; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Run.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Run.c deleted file mode 100644 index 2aaf380b50..0000000000 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Run.c +++ /dev/null @@ -1,1827 +0,0 @@ -// Lean compiler output -// Module: Lean.Meta.Tactic.Grind.Run -// Imports: Init.Grind.Lemmas Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.PropagatorAttr Lean.Meta.Tactic.Grind.Proj -#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_object* l_Lean_Expr_const___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; -lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(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_GrindM_run___rarg___closed__20; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object*); -size_t lean_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_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_GrindM_run___rarg___closed__5; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2(lean_object*); -lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg(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_getFalseExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run(lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__10; -uint64_t lean_uint64_shift_right(uint64_t, uint64_t); -lean_object* l_Lean_Meta_Simp_SimprocExtension_getSimprocs(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Grind_propagateProjEq(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_getTrueExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__15; -lean_object* l_ShareCommon_mkStateImpl(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__1(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_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Simp_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_Grind_builtinPropagatorsRef; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__18; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__7; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__12; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg(lean_object*); -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_Grind_grindNormSimprocExt; -lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__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_GrindM_run___rarg___closed__3; -static lean_object* l_Lean_Meta_Grind_GoalM_run_x27___closed__1; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__6; -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, 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_mkMethods___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__2(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_GrindM_run___rarg___closed__19; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1; -uint64_t l_Lean_Name_hash___override(lean_object*); -extern lean_object* l_Lean_Meta_Grind_grindNormExt; -uint64_t lean_uint64_xor(uint64_t, uint64_t); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Expr_getAppFn(lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__17; -lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__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_sub(size_t, size_t); -lean_object* lean_array_mk(lean_object*); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__4; -extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__8; -lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__9; -lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_ShareCommon_objectFactory; -lean_object* lean_state_sharecommon(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mkMethods___rarg___closed__1; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; -static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__2; -static lean_object* l_Lean_Meta_Grind_mkGoal___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__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_Lean_Meta_Grind_GoalM_run___rarg___lambda__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_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(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 = lean_name_eq(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_Lean_Meta_Grind_mkMethods___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Expr_getAppFn(x_2); -if (lean_obj_tag(x_12) == 4) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_14 = l_Lean_Meta_Grind_propagateProjEq(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_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; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; -x_16 = lean_ctor_get(x_1, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -x_19 = lean_ctor_get(x_16, 1); -x_20 = lean_array_get_size(x_19); -x_21 = l_Lean_Name_hash___override(x_13); -x_22 = 32; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = 16; -x_26 = lean_uint64_shift_right(x_24, x_25); -x_27 = lean_uint64_xor(x_24, x_26); -x_28 = lean_uint64_to_usize(x_27); -x_29 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_30 = 1; -x_31 = lean_usize_sub(x_29, x_30); -x_32 = lean_usize_land(x_28, x_31); -x_33 = lean_array_uget(x_19, x_32); -x_34 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_13, x_33); -lean_dec(x_33); -lean_dec(x_13); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; -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); -lean_dec(x_2); -x_35 = lean_box(0); -lean_ctor_set(x_14, 0, x_35); -return x_14; -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_free_object(x_14); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_apply_10(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint64_t x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; -x_38 = lean_ctor_get(x_1, 0); -x_39 = lean_ctor_get(x_14, 1); -lean_inc(x_39); -lean_dec(x_14); -x_40 = lean_ctor_get(x_38, 1); -x_41 = lean_array_get_size(x_40); -x_42 = l_Lean_Name_hash___override(x_13); -x_43 = 32; -x_44 = lean_uint64_shift_right(x_42, x_43); -x_45 = lean_uint64_xor(x_42, x_44); -x_46 = 16; -x_47 = lean_uint64_shift_right(x_45, x_46); -x_48 = lean_uint64_xor(x_45, x_47); -x_49 = lean_uint64_to_usize(x_48); -x_50 = lean_usize_of_nat(x_41); -lean_dec(x_41); -x_51 = 1; -x_52 = lean_usize_sub(x_50, x_51); -x_53 = lean_usize_land(x_49, x_52); -x_54 = lean_array_uget(x_40, x_53); -x_55 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_13, x_54); -lean_dec(x_54); -lean_dec(x_13); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; -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); -lean_dec(x_2); -x_56 = lean_box(0); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_39); -return x_57; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_55, 0); -lean_inc(x_58); -lean_dec(x_55); -x_59 = lean_apply_10(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); -return x_59; -} -} -} -else -{ -uint8_t x_60; -lean_dec(x_13); -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); -lean_dec(x_2); -x_60 = !lean_is_exclusive(x_14); -if (x_60 == 0) -{ -return x_14; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_14, 0); -x_62 = lean_ctor_get(x_14, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_14); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; -lean_dec(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); -lean_dec(x_2); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_11); -return x_65; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Expr_getAppFn(x_2); -if (lean_obj_tag(x_12) == 4) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -lean_dec(x_1); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; 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; uint64_t x_24; uint64_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; lean_object* x_31; lean_object* x_32; -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ctor_get(x_13, 0); -lean_dec(x_17); -x_18 = lean_array_get_size(x_16); -x_19 = l_Lean_Name_hash___override(x_14); -x_20 = 32; -x_21 = lean_uint64_shift_right(x_19, x_20); -x_22 = lean_uint64_xor(x_19, x_21); -x_23 = 16; -x_24 = lean_uint64_shift_right(x_22, x_23); -x_25 = lean_uint64_xor(x_22, x_24); -x_26 = lean_uint64_to_usize(x_25); -x_27 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_28 = 1; -x_29 = lean_usize_sub(x_27, x_28); -x_30 = lean_usize_land(x_26, x_29); -x_31 = lean_array_uget(x_16, x_30); -lean_dec(x_16); -x_32 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_14, x_31); -lean_dec(x_31); -lean_dec(x_14); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; -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); -lean_dec(x_2); -x_33 = lean_box(0); -lean_ctor_set(x_13, 1, x_11); -lean_ctor_set(x_13, 0, x_33); -return x_13; -} -else -{ -lean_object* x_34; lean_object* x_35; -lean_free_object(x_13); -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_apply_10(x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_35; -} -} -else -{ -lean_object* x_36; lean_object* x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; uint64_t x_41; uint64_t x_42; uint64_t x_43; uint64_t x_44; size_t x_45; size_t x_46; size_t x_47; size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; -x_36 = lean_ctor_get(x_13, 1); -lean_inc(x_36); -lean_dec(x_13); -x_37 = lean_array_get_size(x_36); -x_38 = l_Lean_Name_hash___override(x_14); -x_39 = 32; -x_40 = lean_uint64_shift_right(x_38, x_39); -x_41 = lean_uint64_xor(x_38, x_40); -x_42 = 16; -x_43 = lean_uint64_shift_right(x_41, x_42); -x_44 = lean_uint64_xor(x_41, x_43); -x_45 = lean_uint64_to_usize(x_44); -x_46 = lean_usize_of_nat(x_37); -lean_dec(x_37); -x_47 = 1; -x_48 = lean_usize_sub(x_46, x_47); -x_49 = lean_usize_land(x_45, x_48); -x_50 = lean_array_uget(x_36, x_49); -lean_dec(x_36); -x_51 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_14, x_50); -lean_dec(x_50); -lean_dec(x_14); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; -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); -lean_dec(x_2); -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_11); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_51, 0); -lean_inc(x_54); -lean_dec(x_51); -x_55 = lean_apply_10(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_55; -} -} -} -else -{ -lean_object* x_56; lean_object* x_57; -lean_dec(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); -lean_dec(x_2); -lean_dec(x_1); -x_56 = lean_box(0); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_11); -return x_57; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkMethods___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_builtinPropagatorsRef; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_Meta_Grind_mkMethods___rarg___closed__1; -x_3 = lean_st_ref_get(x_2, x_1); -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, 0); -lean_inc(x_5); -x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed), 11, 1); -lean_closure_set(x_6, 0, x_5); -x_7 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__2), 11, 1); -lean_closure_set(x_7, 0, x_5); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set(x_8, 1, x_7); -lean_ctor_set(x_3, 0, x_8); -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; -x_9 = lean_ctor_get(x_3, 0); -x_10 = lean_ctor_get(x_3, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_3); -lean_inc(x_9); -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed), 11, 1); -lean_closure_set(x_11, 0, x_9); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg___lambda__2), 11, 1); -lean_closure_set(x_12, 0, x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkMethods___rarg), 1, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mkMethods___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_mkMethods___rarg___lambda__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_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkMethods___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Meta_Grind_mkMethods(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_ShareCommon_objectFactory; -x_2 = l_ShareCommon_mkStateImpl(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("False", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___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_GrindM_run___rarg___closed__2; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__3; -x_3 = l_Lean_Expr_const___override(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_ShareCommon_objectFactory; -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__1; -x_3 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__4; -x_4 = lean_state_sharecommon(x_1, x_2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("True", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___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_GrindM_run___rarg___closed__6; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__7; -x_3 = l_Lean_Expr_const___override(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_grindNormExt; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_grindNormSimprocExt; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; -x_1 = l_Lean_Meta_Simp_defaultMaxSteps; -x_2 = lean_unsigned_to_nat(2u); -x_3 = 0; -x_4 = 1; -x_5 = 0; -x_6 = lean_alloc_ctor(0, 2, 19); -lean_ctor_set(x_6, 0, x_1); -lean_ctor_set(x_6, 1, x_2); -lean_ctor_set_uint8(x_6, sizeof(void*)*2, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 1, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 2, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 3, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 4, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 5, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 6, x_5); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 7, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 8, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 9, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 10, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 11, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 12, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 13, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 14, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 15, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 16, x_3); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 17, x_4); -lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 18, x_4); -return x_6; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__12() { -_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_GrindM_run___rarg___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__12; -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_GrindM_run___rarg___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -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_GrindM_run___rarg___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__16() { -_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_Lean_Meta_Grind_GrindM_run___rarg___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; -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_GrindM_run___rarg___closed__18() { -_start: -{ -size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 5; -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__17; -x_3 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__16; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_4); -lean_ctor_set(x_5, 3, x_4); -lean_ctor_set_usize(x_5, 4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__18; -x_3 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_1); -lean_ctor_set(x_3, 3, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__15; -x_2 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__19; -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_GrindM_run___rarg(lean_object* x_1, 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; 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; uint8_t x_23; -x_8 = lean_box(0); -x_9 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__5; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -x_12 = l_Lean_ShareCommon_objectFactory; -x_13 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__8; -x_14 = lean_state_sharecommon(x_12, x_11, x_13); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__9; -x_18 = l_Lean_Meta_SimpExtension_getTheorems(x_17, x_5, x_6, x_7); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__10; -x_22 = l_Lean_Meta_Simp_SimprocExtension_getSimprocs(x_21, x_5, x_6, x_20); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_22, 1); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 1, x_8); -x_25 = lean_array_mk(x_22); -x_26 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_6, x_24); -x_27 = !lean_is_exclusive(x_26); -if (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; 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_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -lean_ctor_set_tag(x_26, 1); -lean_ctor_set(x_26, 1, x_8); -lean_ctor_set(x_26, 0, x_19); -x_30 = lean_array_mk(x_26); -x_31 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; -x_32 = l_Lean_Meta_Simp_mkContext(x_31, x_30, x_28, x_3, x_4, x_5, x_6, x_29); -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(x_32); -x_35 = l_Lean_Meta_Grind_mkMethods___rarg(x_34); -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(x_35); -x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_25); -lean_ctor_set(x_38, 2, x_2); -x_39 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; -x_40 = lean_unsigned_to_nat(1u); -x_41 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_42 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; -x_43 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_16); -lean_ctor_set(x_43, 2, x_40); -lean_ctor_set(x_43, 3, x_41); -lean_ctor_set(x_43, 4, x_42); -lean_ctor_set(x_43, 5, x_15); -lean_ctor_set(x_43, 6, x_10); -x_44 = lean_st_mk_ref(x_43, x_37); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_45); -x_47 = lean_apply_8(x_1, x_36, x_38, x_45, x_3, x_4, x_5, x_6, x_46); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -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(x_47); -x_50 = lean_st_ref_get(x_45, x_49); -lean_dec(x_45); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) -{ -lean_object* x_52; -x_52 = lean_ctor_get(x_50, 0); -lean_dec(x_52); -lean_ctor_set(x_50, 0, x_48); -return x_50; -} -else -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_48); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -else -{ -uint8_t x_55; -lean_dec(x_45); -x_55 = !lean_is_exclusive(x_47); -if (x_55 == 0) -{ -return x_47; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_47, 0); -x_57 = lean_ctor_get(x_47, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_47); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -lean_object* x_59; 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; -x_59 = lean_ctor_get(x_26, 0); -x_60 = lean_ctor_get(x_26, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_26); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_19); -lean_ctor_set(x_61, 1, x_8); -x_62 = lean_array_mk(x_61); -x_63 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; -x_64 = l_Lean_Meta_Simp_mkContext(x_63, x_62, x_59, x_3, x_4, x_5, x_6, x_60); -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(x_64); -x_67 = l_Lean_Meta_Grind_mkMethods___rarg(x_66); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_70, 0, x_65); -lean_ctor_set(x_70, 1, x_25); -lean_ctor_set(x_70, 2, x_2); -x_71 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; -x_72 = lean_unsigned_to_nat(1u); -x_73 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_74 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; -x_75 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_75, 0, x_71); -lean_ctor_set(x_75, 1, x_16); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set(x_75, 3, x_73); -lean_ctor_set(x_75, 4, x_74); -lean_ctor_set(x_75, 5, x_15); -lean_ctor_set(x_75, 6, x_10); -x_76 = lean_st_mk_ref(x_75, x_69); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -lean_inc(x_77); -x_79 = lean_apply_8(x_1, x_68, x_70, x_77, x_3, x_4, x_5, x_6, x_78); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -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(x_79); -x_82 = lean_st_ref_get(x_77, x_81); -lean_dec(x_77); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_84 = x_82; -} else { - lean_dec_ref(x_82); - x_84 = lean_box(0); -} -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(0, 2, 0); -} else { - x_85 = x_84; -} -lean_ctor_set(x_85, 0, x_80); -lean_ctor_set(x_85, 1, x_83); -return x_85; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_77); -x_86 = lean_ctor_get(x_79, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_79, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_88 = x_79; -} else { - lean_dec_ref(x_79); - x_88 = lean_box(0); -} -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); -} else { - x_89 = x_88; -} -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; -} -} -} -else -{ -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; -x_90 = lean_ctor_get(x_22, 0); -x_91 = lean_ctor_get(x_22, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_22); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_8); -x_93 = lean_array_mk(x_92); -x_94 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_6, x_91); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; -} else { - lean_dec_ref(x_94); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; - lean_ctor_set_tag(x_98, 1); -} -lean_ctor_set(x_98, 0, x_19); -lean_ctor_set(x_98, 1, x_8); -x_99 = lean_array_mk(x_98); -x_100 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__11; -x_101 = l_Lean_Meta_Simp_mkContext(x_100, x_99, x_95, x_3, x_4, x_5, x_6, x_96); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_104 = l_Lean_Meta_Grind_mkMethods___rarg(x_103); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_102); -lean_ctor_set(x_107, 1, x_93); -lean_ctor_set(x_107, 2, x_2); -x_108 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__14; -x_109 = lean_unsigned_to_nat(1u); -x_110 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_111 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__20; -x_112 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_112, 0, x_108); -lean_ctor_set(x_112, 1, x_16); -lean_ctor_set(x_112, 2, x_109); -lean_ctor_set(x_112, 3, x_110); -lean_ctor_set(x_112, 4, x_111); -lean_ctor_set(x_112, 5, x_15); -lean_ctor_set(x_112, 6, x_10); -x_113 = lean_st_mk_ref(x_112, x_106); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -lean_inc(x_114); -x_116 = lean_apply_8(x_1, x_105, x_107, x_114, x_3, x_4, x_5, x_6, x_115); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_119 = lean_st_ref_get(x_114, x_118); -lean_dec(x_114); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_117); -lean_ctor_set(x_122, 1, x_120); -return x_122; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_114); -x_123 = lean_ctor_get(x_116, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_116, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_125 = x_116; -} else { - lean_dec_ref(x_116); - x_125 = lean_box(0); -} -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); -} else { - x_126 = x_125; -} -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -return x_126; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GrindM_run___rarg), 7, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_11 = lean_apply_8(x_1, 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_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_apply_9(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -return x_14; -} -else -{ -uint8_t x_15; -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_is_exclusive(x_11); -if (x_15 == 0) -{ -return x_11; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_11, 0); -x_17 = lean_ctor_get(x_11, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_11); -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_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_apply_3(x_2, x_3, x_4, x_5); -x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(x_1, x_11, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -return x_12; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) -{ -return x_12; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_12); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg), 10, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_st_mk_ref(x_1, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -return x_10; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -lean_inc(x_2); -x_11 = lean_apply_9(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; uint8_t x_15; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_st_ref_get(x_2, x_13); -lean_dec(x_2); -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(0, 2, 0); -lean_ctor_set(x_17, 0, x_12); -lean_ctor_set(x_17, 1, 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(0, 2, 0); -lean_ctor_set(x_20, 0, x_12); -lean_ctor_set(x_20, 1, 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; -lean_dec(x_2); -x_22 = !lean_is_exclusive(x_11); -if (x_22 == 0) -{ -return x_11; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_11); -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_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_12, 0, x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__2), 10, 1); -lean_closure_set(x_13, 0, x_2); -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_15; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg), 10, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -lean_inc(x_2); -x_11 = lean_apply_9(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; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_2, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_13, 1); -x_16 = lean_st_ref_get(x_2, x_15); -lean_dec(x_2); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_ctor_set(x_13, 1, x_18); -lean_ctor_set(x_16, 0, x_13); -return x_16; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_16, 0); -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_16); -lean_ctor_set(x_13, 1, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -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_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_st_ref_get(x_2, x_23); -lean_dec(x_2); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_27 = x_24; -} else { - lean_dec_ref(x_24); - x_27 = lean_box(0); -} -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_25); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 2, 0); -} else { - x_29 = x_27; -} -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_26); -return x_29; -} -} -else -{ -uint8_t x_30; -lean_dec(x_2); -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_Meta_Grind_GoalM_run_x27___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_1); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_1, 1); -lean_dec(x_11); -lean_ctor_set(x_1, 1, x_9); -return x_1; -} -else -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -lean_dec(x_1); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_GoalM_run_x27___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run_x27___lambda__2___boxed), 9, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_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; 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, 0); -lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_12, 0, x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run_x27___lambda__1), 10, 1); -lean_closure_set(x_13, 0, x_2); -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_Grind_GoalM_run_x27___closed__1; -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_GoalM_run_x27___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} -static lean_object* _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -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; uint8_t x_20; -x_12 = 1; -x_13 = 0; -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Meta_Grind_mkENodeCore(x_2, x_12, x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_st_ref_get(x_3, x_18); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_19, 1); -x_22 = lean_st_ref_get(x_3, x_21); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_ctor_set(x_19, 1, x_24); -lean_ctor_set(x_22, 0, x_19); -return x_22; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_22, 0); -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_22); -lean_ctor_set(x_19, 1, x_25); -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 -{ -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_28 = lean_ctor_get(x_19, 0); -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_19); -x_30 = lean_st_ref_get(x_3, 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); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_33 = x_30; -} else { - lean_dec_ref(x_30); - x_33 = lean_box(0); -} -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_31); -if (lean_is_scalar(x_33)) { - x_35 = lean_alloc_ctor(0, 2, 0); -} else { - x_35 = x_33; -} -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_10 = l_Lean_Meta_Grind_getTrueExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Meta_Grind_getFalseExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Meta_Grind_GrindM_run___rarg___closed__13; -x_17 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1; -x_18 = l_Lean_Meta_Grind_mkGoal___closed__1; -x_19 = 0; -x_20 = lean_unsigned_to_nat(0u); -lean_inc(x_1); -x_21 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_21, 1, x_16); -lean_ctor_set(x_21, 2, x_16); -lean_ctor_set(x_21, 3, x_17); -lean_ctor_set(x_21, 4, x_16); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_20); -lean_ctor_set(x_21, 7, x_20); -lean_ctor_set_uint8(x_21, sizeof(void*)*8, x_19); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_22, 0, x_21); -x_23 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkGoal___lambda__1___boxed), 11, 2); -lean_closure_set(x_23, 0, x_14); -lean_closure_set(x_23, 1, x_11); -x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_24, 0, x_22); -lean_closure_set(x_24, 1, x_23); -x_25 = l_Lean_Meta_Grind_GoalM_run_x27___closed__1; -x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); -lean_closure_set(x_26, 0, x_24); -lean_closure_set(x_26, 1, x_25); -x_27 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_1, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -return x_27; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_mkGoal___lambda__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_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); -return x_12; -} -} -lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_PropagatorAttr(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Grind_Proj(uint8_t builtin, lean_object*); -static bool _G_initialized = false; -LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Run(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_Init_Grind_Lemmas(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_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_PropagatorAttr(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Tactic_Grind_Proj(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Meta_Grind_mkMethods___rarg___closed__1 = _init_l_Lean_Meta_Grind_mkMethods___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_mkMethods___rarg___closed__1); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__1); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__2 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__2); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__3 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__3); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__4 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__4); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__5 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__5); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__6 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__6); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__7 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__7); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__8 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__8); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__9 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__9); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__10 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__10); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__11 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__11); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__12 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__12); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__13 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__13); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__14 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__14(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__14); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__15 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__15(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__15); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__16 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__16(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__16); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__17 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__17(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__17); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__18 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__18(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__18); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__19 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__19(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__19); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__20 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__20(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__20); -l_Lean_Meta_Grind_GoalM_run_x27___closed__1 = _init_l_Lean_Meta_Grind_GoalM_run_x27___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_GoalM_run_x27___closed__1); -l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1(); -lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_mkGoal___spec__1); -l_Lean_Meta_Grind_mkGoal___closed__1 = _init_l_Lean_Meta_Grind_mkGoal___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__1); -return lean_io_result_mk_ok(lean_box(0)); -} -#ifdef __cplusplus -} -#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Simp.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Simp.c index 1d15456826..3e5d9b3268 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Simp.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Simp.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Simp -// Imports: Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.MarkNestedProofs +// Imports: Init.Grind.Lemmas Lean.Meta.Tactic.Assert Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.MarkNestedProofs #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,58 +13,63 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_Grind_pre___closed__7; +static lean_object* l_Lean_Meta_Grind_simp___closed__7; +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(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_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3; lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_pre___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp___lambda__1(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* l_Lean_Meta_Grind_normalizeLevels___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_pre___closed__11; -static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_simp___closed__12; lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; -static lean_object* l_Lean_Meta_Grind_pre___closed__4; +static lean_object* l_Lean_Meta_Grind_simp___closed__1; +static lean_object* l_Lean_Meta_Grind_simp___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp(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_pre___closed__3; -static lean_object* l_Lean_Meta_Grind_pre___closed__10; +uint8_t l_Lean_Expr_hasMVar(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___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_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; +static lean_object* l_Lean_Meta_Grind_simp___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___spec__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_pre___closed__5; +static lean_object* l_Lean_Meta_Grind_simp___closed__9; lean_object* l_Lean_Meta_simp(lean_object*, 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_simp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(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_markNestedProofsImpl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_pre___closed__9; -static lean_object* l_Lean_Meta_Grind_pre___closed__8; +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___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_simp___closed__5; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon(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_simp___closed__3; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___boxed(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_pre___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simpCore(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_simp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simpCore___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_simp___closed__11; lean_object* lean_array_mk(lean_object*); +lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledForCore(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre(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_pre___closed__6; +static double l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1; +static lean_object* l_Lean_Meta_Grind_simp___closed__8; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_simp___closed__10; +static lean_object* l_Lean_Meta_Grind_simp___closed__6; +static lean_object* l_Lean_Meta_Grind_simp___closed__13; lean_object* l_Lean_Meta_Grind_canon(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_pre___closed__12; -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_foldProjs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_pre___closed__2; -static lean_object* l_Lean_Meta_Grind_pre___closed__13; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_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_simpCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -201,17 +206,124 @@ return x_46; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp___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_simpCore___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: { lean_object* x_10; -x_10 = l_Lean_Meta_Grind_simp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_Grind_simpCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___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_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___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) { +_start: +{ +uint8_t x_10; +x_10 = l_Lean_Expr_hasMVar(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +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; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_12 = lean_st_ref_get(x_6, x_9); +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(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_instantiateMVarsCore(x_15, x_1); +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(x_16); +x_19 = lean_st_ref_take(x_6, x_14); +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(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +lean_ctor_set(x_20, 0, x_18); +x_24 = lean_st_ref_set(x_6, x_20, x_21); +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_17); +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_17); +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; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_ctor_get(x_20, 1); +x_30 = lean_ctor_get(x_20, 2); +x_31 = lean_ctor_get(x_20, 3); +x_32 = lean_ctor_get(x_20, 4); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_20); +x_33 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_29); +lean_ctor_set(x_33, 2, x_30); +lean_ctor_set(x_33, 3, x_31); +lean_ctor_set(x_33, 4, x_32); +x_34 = lean_st_ref_set(x_6, x_33, x_21); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +if (lean_is_scalar(x_36)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_36; +} +lean_ctor_set(x_37, 0, x_17); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___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) { _start: { lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -237,7 +349,7 @@ return x_15; } } } -static double _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1() { +static double _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1() { _start: { lean_object* x_1; uint8_t x_2; double x_3; @@ -247,7 +359,7 @@ x_3 = l_Float_ofScientific(x_1, x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2() { _start: { lean_object* x_1; @@ -255,7 +367,7 @@ x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3() { +static lean_object* _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -264,7 +376,7 @@ x_2 = lean_array_mk(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___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_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__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; uint8_t x_18; @@ -298,16 +410,16 @@ if (x_23 == 0) { lean_object* x_24; double 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; uint8_t x_33; x_24 = lean_ctor_get(x_17, 0); -x_25 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1; +x_25 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1; x_26 = 0; -x_27 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; +x_27 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; x_28 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_28, 0, x_1); lean_ctor_set(x_28, 1, x_27); lean_ctor_set_float(x_28, sizeof(void*)*2, x_25); lean_ctor_set_float(x_28, sizeof(void*)*2 + 8, x_25); lean_ctor_set_uint8(x_28, sizeof(void*)*2 + 16, x_26); -x_29 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3; +x_29 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3; x_30 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_13); @@ -348,16 +460,16 @@ x_39 = lean_ctor_get_uint64(x_17, sizeof(void*)*1); x_40 = lean_ctor_get(x_17, 0); lean_inc(x_40); lean_dec(x_17); -x_41 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1; +x_41 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1; x_42 = 0; -x_43 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; +x_43 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; x_44 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_44, 0, x_1); lean_ctor_set(x_44, 1, x_43); lean_ctor_set_float(x_44, sizeof(void*)*2, x_41); lean_ctor_set_float(x_44, sizeof(void*)*2 + 8, x_41); lean_ctor_set_uint8(x_44, sizeof(void*)*2 + 16, x_42); -x_45 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3; +x_45 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3; x_46 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_13); @@ -420,16 +532,16 @@ if (lean_is_exclusive(x_17)) { lean_dec_ref(x_17); x_63 = lean_box(0); } -x_64 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1; +x_64 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1; x_65 = 0; -x_66 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; +x_66 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; x_67 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_67, 0, x_1); lean_ctor_set(x_67, 1, x_66); lean_ctor_set_float(x_67, sizeof(void*)*2, x_64); lean_ctor_set_float(x_67, sizeof(void*)*2 + 8, x_64); lean_ctor_set_uint8(x_67, sizeof(void*)*2 + 16, x_65); -x_68 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3; +x_68 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3; x_69 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_69, 0, x_67); lean_ctor_set(x_69, 1, x_13); @@ -520,16 +632,16 @@ if (lean_is_exclusive(x_17)) { lean_dec_ref(x_17); x_89 = lean_box(0); } -x_90 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1; +x_90 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1; x_91 = 0; -x_92 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; +x_92 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; x_93 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_93, 0, x_1); lean_ctor_set(x_93, 1, x_92); lean_ctor_set_float(x_93, sizeof(void*)*2, x_90); lean_ctor_set_float(x_93, sizeof(void*)*2 + 8, x_90); lean_ctor_set_uint8(x_93, sizeof(void*)*2 + 16, x_91); -x_94 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3; +x_94 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3; x_95 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_95, 0, x_93); lean_ctor_set(x_95, 1, x_13); @@ -582,7 +694,7 @@ return x_104; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; @@ -596,7 +708,7 @@ lean_ctor_set(x_14, 1, x_12); return x_14; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__1() { _start: { lean_object* x_1; @@ -604,7 +716,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible___lambda__2), return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__2() { _start: { lean_object* x_1; @@ -612,7 +724,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_unfoldReducible___lambda__3__ return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__3() { _start: { lean_object* x_1; @@ -620,7 +732,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseIrrelevantMData___lambda return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__4() { _start: { lean_object* x_1; @@ -628,7 +740,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseIrrelevantMData___lambda return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__5() { _start: { lean_object* x_1; @@ -636,7 +748,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_foldProjs___lambda__2___boxed return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__6() { _start: { lean_object* x_1; @@ -644,7 +756,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_foldProjs___lambda__1), 6, 0) return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__7() { _start: { lean_object* x_1; @@ -652,7 +764,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_normalizeLevels___lambda__1__ return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__8() { _start: { lean_object* x_1; @@ -660,7 +772,7 @@ x_1 = lean_mk_string_unchecked("grind", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__9() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__9() { _start: { lean_object* x_1; @@ -668,26 +780,26 @@ x_1 = lean_mk_string_unchecked("simp", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__10() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_pre___closed__8; -x_2 = l_Lean_Meta_Grind_pre___closed__9; +x_1 = l_Lean_Meta_Grind_simp___closed__8; +x_2 = l_Lean_Meta_Grind_simp___closed__9; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__11() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2; +x_1 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__12() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__12() { _start: { lean_object* x_1; @@ -695,342 +807,334 @@ x_1 = lean_mk_string_unchecked("\n===>\n", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_pre___closed__13() { +static lean_object* _init_l_Lean_Meta_Grind_simp___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_pre___closed__12; +x_1 = l_Lean_Meta_Grind_simp___closed__12; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_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_simp(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_10; uint8_t x_11; +x_10 = l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -lean_inc(x_1); -x_10 = l_Lean_Meta_Grind_simp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 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_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_11, sizeof(void*)*2); -lean_dec(x_11); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_16 = l_Lean_Meta_Grind_markNestedProofsImpl(x_13, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_16) == 0) +x_14 = l_Lean_Meta_Grind_simpCore(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_14) == 0) { -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_16, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_Meta_Grind_pre___closed__1; -x_20 = l_Lean_Meta_Grind_pre___closed__2; +x_19 = lean_ctor_get_uint8(x_15, sizeof(void*)*2); +lean_dec(x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_21 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_17, x_19, x_20, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_21) == 0) +x_20 = l_Lean_Meta_Grind_abstractNestedProofs(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_21, 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); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_Grind_pre___closed__3; -x_25 = l_Lean_Meta_Grind_pre___closed__4; -lean_inc(x_8); -lean_inc(x_7); -x_26 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_22, x_24, x_25, x_7, x_8, x_23); -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; lean_object* x_32; -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(x_26); -x_29 = l_Lean_Meta_Grind_pre___closed__5; -x_30 = l_Lean_Meta_Grind_pre___closed__6; -x_31 = 0; +lean_dec(x_20); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_32 = l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(x_27, x_29, x_30, x_31, x_31, x_5, x_6, x_7, x_8, x_28); -if (lean_obj_tag(x_32) == 0) +x_23 = l_Lean_Meta_Grind_markNestedProofsImpl(x_21, x_5, x_6, x_7, x_8, x_22); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_Grind_simp___closed__1; +x_27 = l_Lean_Meta_Grind_simp___closed__2; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_28 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_24, x_26, x_27, x_5, x_6, x_7, x_8, x_25); +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(x_28); +x_31 = l_Lean_Meta_Grind_simp___closed__3; +x_32 = l_Lean_Meta_Grind_simp___closed__4; +lean_inc(x_8); +lean_inc(x_7); +x_33 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_29, x_31, x_32, x_7, x_8, 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; uint8_t x_38; lean_object* x_39; +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Meta_Grind_pre___closed__7; -lean_inc(x_8); -lean_inc(x_7); -x_36 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_33, x_35, x_25, x_7, x_8, x_34); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -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(x_36); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_Meta_Grind_simp___closed__5; +x_37 = l_Lean_Meta_Grind_simp___closed__6; +x_38 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_39 = l_Lean_Meta_Grind_canon(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_38); +x_39 = l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(x_34, x_36, x_37, x_38, x_38, x_5, x_6, x_7, x_8, x_35); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 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(x_39); -x_42 = l_Lean_Meta_Grind_shareCommon(x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_41); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +x_42 = l_Lean_Meta_Grind_simp___closed__7; +lean_inc(x_8); +lean_inc(x_7); +x_43 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_40, x_42, x_32, x_7, x_8, x_41); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -x_46 = l_Lean_Meta_Grind_pre___closed__10; -x_47 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___spec__1(x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_46 = l_Lean_Meta_Grind_canon(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_unbox(x_48); -lean_dec(x_48); -if (x_49 == 0) +lean_dec(x_46); +x_49 = l_Lean_Meta_Grind_shareCommon(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_42); -lean_dec(x_1); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = lean_box(0); -x_52 = l_Lean_Meta_Grind_pre___lambda__1(x_44, x_14, x_15, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_50); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -return x_52; -} -else -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_47); -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; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_54 = lean_ctor_get(x_47, 1); -x_55 = lean_ctor_get(x_47, 0); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_49, 1); +x_53 = l_Lean_Meta_Grind_simp___closed__10; +x_54 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_52); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_unbox(x_55); lean_dec(x_55); -x_56 = l_Lean_MessageData_ofExpr(x_1); -x_57 = l_Lean_Meta_Grind_pre___closed__11; -lean_ctor_set_tag(x_47, 7); -lean_ctor_set(x_47, 1, x_56); -lean_ctor_set(x_47, 0, x_57); -x_58 = l_Lean_Meta_Grind_pre___closed__13; -lean_ctor_set_tag(x_42, 7); -lean_ctor_set(x_42, 1, x_58); -lean_ctor_set(x_42, 0, x_47); -lean_inc(x_44); -x_59 = l_Lean_MessageData_ofExpr(x_44); -x_60 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_60, 0, x_42); -lean_ctor_set(x_60, 1, x_59); -x_61 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_57); -x_62 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2(x_46, x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_54); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_free_object(x_49); +lean_free_object(x_10); +lean_dec(x_12); +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_box(0); +x_59 = l_Lean_Meta_Grind_simp___lambda__1(x_51, x_18, x_19, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_57); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_59; +} +else +{ +uint8_t x_60; +x_60 = !lean_is_exclusive(x_54); +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; +x_61 = lean_ctor_get(x_54, 1); +x_62 = lean_ctor_get(x_54, 0); lean_dec(x_62); -x_65 = l_Lean_Meta_Grind_pre___lambda__1(x_44, x_14, x_15, x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_64); +x_63 = l_Lean_MessageData_ofExpr(x_12); +x_64 = l_Lean_Meta_Grind_simp___closed__11; +lean_ctor_set_tag(x_54, 7); +lean_ctor_set(x_54, 1, x_63); +lean_ctor_set(x_54, 0, x_64); +x_65 = l_Lean_Meta_Grind_simp___closed__13; +lean_ctor_set_tag(x_49, 7); +lean_ctor_set(x_49, 1, x_65); +lean_ctor_set(x_49, 0, x_54); +lean_inc(x_51); +x_66 = l_Lean_MessageData_ofExpr(x_51); +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_66); +lean_ctor_set(x_10, 0, x_49); +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_10); +lean_ctor_set(x_67, 1, x_64); +x_68 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_53, x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l_Lean_Meta_Grind_simp___lambda__1(x_51, x_18, x_19, x_69, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_70); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_63); -return x_65; +lean_dec(x_69); +return x_71; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_66 = lean_ctor_get(x_47, 1); -lean_inc(x_66); -lean_dec(x_47); -x_67 = l_Lean_MessageData_ofExpr(x_1); -x_68 = l_Lean_Meta_Grind_pre___closed__11; -x_69 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Lean_Meta_Grind_pre___closed__13; -lean_ctor_set_tag(x_42, 7); -lean_ctor_set(x_42, 1, x_70); -lean_ctor_set(x_42, 0, x_69); -lean_inc(x_44); -x_71 = l_Lean_MessageData_ofExpr(x_44); -x_72 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_72, 0, x_42); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_68); -x_74 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2(x_46, x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_66); -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(x_74); -x_77 = l_Lean_Meta_Grind_pre___lambda__1(x_44, x_14, x_15, x_75, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_76); +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; +x_72 = lean_ctor_get(x_54, 1); +lean_inc(x_72); +lean_dec(x_54); +x_73 = l_Lean_MessageData_ofExpr(x_12); +x_74 = l_Lean_Meta_Grind_simp___closed__11; +x_75 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = l_Lean_Meta_Grind_simp___closed__13; +lean_ctor_set_tag(x_49, 7); +lean_ctor_set(x_49, 1, x_76); +lean_ctor_set(x_49, 0, x_75); +lean_inc(x_51); +x_77 = l_Lean_MessageData_ofExpr(x_51); +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_77); +lean_ctor_set(x_10, 0, x_49); +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_10); +lean_ctor_set(x_78, 1, x_74); +x_79 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_53, x_78, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_72); +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(x_79); +x_82 = l_Lean_Meta_Grind_simp___lambda__1(x_51, x_18, x_19, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_81); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_75); -return x_77; +lean_dec(x_80); +return x_82; } } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_78 = lean_ctor_get(x_42, 0); -x_79 = lean_ctor_get(x_42, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_42); -x_80 = l_Lean_Meta_Grind_pre___closed__10; -x_81 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___spec__1(x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_79); -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_object* x_85; lean_object* x_86; -lean_dec(x_1); -x_84 = lean_ctor_get(x_81, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_83 = lean_ctor_get(x_49, 0); +x_84 = lean_ctor_get(x_49, 1); lean_inc(x_84); -lean_dec(x_81); -x_85 = lean_box(0); -x_86 = l_Lean_Meta_Grind_pre___lambda__1(x_78, x_14, x_15, x_85, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_84); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -return x_86; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_49); +x_85 = l_Lean_Meta_Grind_simp___closed__10; +x_86 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_85, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_84); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_88 = x_81; -} else { - lean_dec_ref(x_81); - x_88 = lean_box(0); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_free_object(x_10); +lean_dec(x_12); +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +lean_dec(x_86); +x_90 = lean_box(0); +x_91 = l_Lean_Meta_Grind_simp___lambda__1(x_83, x_18, x_19, x_90, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_89); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_91; } -x_89 = l_Lean_MessageData_ofExpr(x_1); -x_90 = l_Lean_Meta_Grind_pre___closed__11; -if (lean_is_scalar(x_88)) { - x_91 = lean_alloc_ctor(7, 2, 0); +else +{ +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; +x_92 = lean_ctor_get(x_86, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_93 = x_86; } else { - x_91 = x_88; - lean_ctor_set_tag(x_91, 7); + lean_dec_ref(x_86); + x_93 = lean_box(0); +} +x_94 = l_Lean_MessageData_ofExpr(x_12); +x_95 = l_Lean_Meta_Grind_simp___closed__11; +if (lean_is_scalar(x_93)) { + x_96 = lean_alloc_ctor(7, 2, 0); +} else { + x_96 = x_93; + lean_ctor_set_tag(x_96, 7); } -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_Meta_Grind_pre___closed__13; -x_93 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -lean_inc(x_78); -x_94 = l_Lean_MessageData_ofExpr(x_78); -x_95 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_96 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_90); -x_97 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2(x_80, x_96, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_87); -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(x_97); -x_100 = l_Lean_Meta_Grind_pre___lambda__1(x_78, x_14, x_15, x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_99); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_98); -return x_100; -} -} -} -else -{ -uint8_t x_101; -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_101 = !lean_is_exclusive(x_39); -if (x_101 == 0) -{ -return x_39; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_39, 0); -x_103 = lean_ctor_get(x_39, 1); -lean_inc(x_103); +lean_ctor_set(x_96, 1, x_94); +x_97 = l_Lean_Meta_Grind_simp___closed__13; +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +lean_inc(x_83); +x_99 = l_Lean_MessageData_ofExpr(x_83); +lean_ctor_set_tag(x_10, 7); +lean_ctor_set(x_10, 1, x_99); +lean_ctor_set(x_10, 0, x_98); +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_10); +lean_ctor_set(x_100, 1, x_95); +x_101 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_85, x_100, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_92); +x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); -lean_dec(x_39); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); +x_104 = l_Lean_Meta_Grind_simp___lambda__1(x_83, x_18, x_19, x_102, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_103); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_102); return x_104; } } @@ -1038,26 +1142,27 @@ return x_104; else { uint8_t x_105; -lean_dec(x_14); +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_105 = !lean_is_exclusive(x_36); +x_105 = !lean_is_exclusive(x_46); if (x_105 == 0) { -return x_36; +return x_46; } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_36, 0); -x_107 = lean_ctor_get(x_36, 1); +x_106 = lean_ctor_get(x_46, 0); +x_107 = lean_ctor_get(x_46, 1); lean_inc(x_107); lean_inc(x_106); -lean_dec(x_36); +lean_dec(x_46); x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_106); lean_ctor_set(x_108, 1, x_107); @@ -1068,26 +1173,27 @@ return x_108; else { uint8_t x_109; -lean_dec(x_14); +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_109 = !lean_is_exclusive(x_32); +x_109 = !lean_is_exclusive(x_43); if (x_109 == 0) { -return x_32; +return x_43; } else { lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_32, 0); -x_111 = lean_ctor_get(x_32, 1); +x_110 = lean_ctor_get(x_43, 0); +x_111 = lean_ctor_get(x_43, 1); lean_inc(x_111); lean_inc(x_110); -lean_dec(x_32); +lean_dec(x_43); x_112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_111); @@ -1098,26 +1204,27 @@ return x_112; else { uint8_t x_113; -lean_dec(x_14); +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_113 = !lean_is_exclusive(x_26); +x_113 = !lean_is_exclusive(x_39); if (x_113 == 0) { -return x_26; +return x_39; } else { lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_26, 0); -x_115 = lean_ctor_get(x_26, 1); +x_114 = lean_ctor_get(x_39, 0); +x_115 = lean_ctor_get(x_39, 1); lean_inc(x_115); lean_inc(x_114); -lean_dec(x_26); +lean_dec(x_39); x_116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_116, 0, x_114); lean_ctor_set(x_116, 1, x_115); @@ -1128,26 +1235,27 @@ return x_116; else { uint8_t x_117; -lean_dec(x_14); +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_117 = !lean_is_exclusive(x_21); +x_117 = !lean_is_exclusive(x_33); if (x_117 == 0) { -return x_21; +return x_33; } else { lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_21, 0); -x_119 = lean_ctor_get(x_21, 1); +x_118 = lean_ctor_get(x_33, 0); +x_119 = lean_ctor_get(x_33, 1); lean_inc(x_119); lean_inc(x_118); -lean_dec(x_21); +lean_dec(x_33); x_120 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); @@ -1158,26 +1266,27 @@ return x_120; else { uint8_t x_121; -lean_dec(x_14); +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_16); +x_121 = !lean_is_exclusive(x_28); if (x_121 == 0) { -return x_16; +return x_28; } else { lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_16, 0); -x_123 = lean_ctor_get(x_16, 1); +x_122 = lean_ctor_get(x_28, 0); +x_123 = lean_ctor_get(x_28, 1); lean_inc(x_123); lean_inc(x_122); -lean_dec(x_16); +lean_dec(x_28); x_124 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_124, 0, x_122); lean_ctor_set(x_124, 1, x_123); @@ -1188,25 +1297,27 @@ return x_124; else { uint8_t x_125; +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); -x_125 = !lean_is_exclusive(x_10); +x_125 = !lean_is_exclusive(x_23); if (x_125 == 0) { -return x_10; +return x_23; } else { lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_10, 0); -x_127 = lean_ctor_get(x_10, 1); +x_126 = lean_ctor_get(x_23, 0); +x_127 = lean_ctor_get(x_23, 1); lean_inc(x_127); lean_inc(x_126); -lean_dec(x_10); +lean_dec(x_23); x_128 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_128, 0, x_126); lean_ctor_set(x_128, 1, x_127); @@ -1214,12 +1325,545 @@ return x_128; } } } +else +{ +uint8_t x_129; +lean_dec(x_18); +lean_free_object(x_10); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_129 = !lean_is_exclusive(x_20); +if (x_129 == 0) +{ +return x_20; } -LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___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) { +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_20, 0); +x_131 = lean_ctor_get(x_20, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_20); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; +} +} +} +else +{ +uint8_t x_133; +lean_free_object(x_10); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_133 = !lean_is_exclusive(x_14); +if (x_133 == 0) +{ +return x_14; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_14, 0); +x_135 = lean_ctor_get(x_14, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_14); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; +} +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_10, 0); +x_138 = lean_ctor_get(x_10, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_137); +x_139 = l_Lean_Meta_Grind_simpCore(x_137, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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; uint8_t x_144; lean_object* x_145; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = lean_ctor_get(x_140, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +x_144 = lean_ctor_get_uint8(x_140, sizeof(void*)*2); +lean_dec(x_140); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_145 = l_Lean_Meta_Grind_abstractNestedProofs(x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_141); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_148 = l_Lean_Meta_Grind_markNestedProofsImpl(x_146, x_5, x_6, x_7, x_8, x_147); +if (lean_obj_tag(x_148) == 0) +{ +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_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +lean_dec(x_148); +x_151 = l_Lean_Meta_Grind_simp___closed__1; +x_152 = l_Lean_Meta_Grind_simp___closed__2; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_153 = l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(x_149, x_151, x_152, x_5, x_6, x_7, x_8, x_150); +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; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l_Lean_Meta_Grind_simp___closed__3; +x_157 = l_Lean_Meta_Grind_simp___closed__4; +lean_inc(x_8); +lean_inc(x_7); +x_158 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_154, x_156, x_157, x_7, x_8, x_155); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; +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(x_158); +x_161 = l_Lean_Meta_Grind_simp___closed__5; +x_162 = l_Lean_Meta_Grind_simp___closed__6; +x_163 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_164 = l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(x_159, x_161, x_162, x_163, x_163, x_5, x_6, x_7, x_8, x_160); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l_Lean_Meta_Grind_simp___closed__7; +lean_inc(x_8); +lean_inc(x_7); +x_168 = l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(x_165, x_167, x_157, x_7, x_8, x_166); +if (lean_obj_tag(x_168) == 0) +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec(x_168); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_171 = l_Lean_Meta_Grind_canon(x_169, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_170); +if (lean_obj_tag(x_171) == 0) +{ +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; uint8_t x_181; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = l_Lean_Meta_Grind_shareCommon(x_172, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_173); +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_177 = x_174; +} else { + lean_dec_ref(x_174); + x_177 = lean_box(0); +} +x_178 = l_Lean_Meta_Grind_simp___closed__10; +x_179 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_178, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_176); +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_unbox(x_180); +lean_dec(x_180); +if (x_181 == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_177); +lean_dec(x_137); +x_182 = lean_ctor_get(x_179, 1); +lean_inc(x_182); +lean_dec(x_179); +x_183 = lean_box(0); +x_184 = l_Lean_Meta_Grind_simp___lambda__1(x_175, x_143, x_144, x_183, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_182); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_184; +} +else +{ +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; +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_186 = x_179; +} else { + lean_dec_ref(x_179); + x_186 = lean_box(0); +} +x_187 = l_Lean_MessageData_ofExpr(x_137); +x_188 = l_Lean_Meta_Grind_simp___closed__11; +if (lean_is_scalar(x_186)) { + x_189 = lean_alloc_ctor(7, 2, 0); +} else { + x_189 = x_186; + lean_ctor_set_tag(x_189, 7); +} +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = l_Lean_Meta_Grind_simp___closed__13; +if (lean_is_scalar(x_177)) { + x_191 = lean_alloc_ctor(7, 2, 0); +} else { + x_191 = x_177; + lean_ctor_set_tag(x_191, 7); +} +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +lean_inc(x_175); +x_192 = l_Lean_MessageData_ofExpr(x_175); +x_193 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_188); +x_195 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(x_178, x_194, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_185); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_198 = l_Lean_Meta_Grind_simp___lambda__1(x_175, x_143, x_144, x_196, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_197); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_196); +return x_198; +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_199 = lean_ctor_get(x_171, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_171, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_201 = x_171; +} else { + lean_dec_ref(x_171); + 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; +} +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_203 = lean_ctor_get(x_168, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_168, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_205 = x_168; +} else { + lean_dec_ref(x_168); + x_205 = lean_box(0); +} +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(1, 2, 0); +} else { + x_206 = x_205; +} +lean_ctor_set(x_206, 0, x_203); +lean_ctor_set(x_206, 1, x_204); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_207 = lean_ctor_get(x_164, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_164, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_209 = x_164; +} else { + lean_dec_ref(x_164); + 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; +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_211 = lean_ctor_get(x_158, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_158, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_213 = x_158; +} else { + lean_dec_ref(x_158); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_212); +return x_214; +} +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_215 = lean_ctor_get(x_153, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_153, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_217 = x_153; +} else { + lean_dec_ref(x_153); + x_217 = lean_box(0); +} +if (lean_is_scalar(x_217)) { + x_218 = lean_alloc_ctor(1, 2, 0); +} else { + x_218 = x_217; +} +lean_ctor_set(x_218, 0, x_215); +lean_ctor_set(x_218, 1, x_216); +return x_218; +} +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_219 = lean_ctor_get(x_148, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_148, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_221 = x_148; +} else { + lean_dec_ref(x_148); + x_221 = lean_box(0); +} +if (lean_is_scalar(x_221)) { + x_222 = lean_alloc_ctor(1, 2, 0); +} else { + x_222 = x_221; +} +lean_ctor_set(x_222, 0, x_219); +lean_ctor_set(x_222, 1, x_220); +return x_222; +} +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_143); +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_223 = lean_ctor_get(x_145, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_145, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_225 = x_145; +} else { + lean_dec_ref(x_145); + x_225 = lean_box(0); +} +if (lean_is_scalar(x_225)) { + x_226 = lean_alloc_ctor(1, 2, 0); +} else { + x_226 = x_225; +} +lean_ctor_set(x_226, 0, x_223); +lean_ctor_set(x_226, 1, x_224); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_137); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_227 = lean_ctor_get(x_139, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_139, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_229 = x_139; +} else { + lean_dec_ref(x_139); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_pre___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_instantiateMVars___at_Lean_Meta_Grind_simp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1230,11 +1874,26 @@ lean_dec(x_2); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_pre___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_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_simp___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3(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(x_8); lean_dec(x_7); @@ -1245,13 +1904,13 @@ lean_dec(x_3); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_simp___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l_Lean_Meta_Grind_pre___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Meta_Grind_simp___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1263,16 +1922,18 @@ lean_dec(x_4); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pre___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_simp___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: { lean_object* x_10; -x_10 = l_Lean_Meta_Grind_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_Grind_simp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); return x_10; } } +lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Assert(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_Main(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); @@ -1282,6 +1943,12 @@ LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Simp(uint8_t builtin, lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; +res = initialize_Init_Grind_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Assert(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Simp_Main(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -1294,37 +1961,37 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_MarkNestedProofs(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__1(); -l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__2); -l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3(); -lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_pre___spec__2___closed__3); -l_Lean_Meta_Grind_pre___closed__1 = _init_l_Lean_Meta_Grind_pre___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__1); -l_Lean_Meta_Grind_pre___closed__2 = _init_l_Lean_Meta_Grind_pre___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__2); -l_Lean_Meta_Grind_pre___closed__3 = _init_l_Lean_Meta_Grind_pre___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__3); -l_Lean_Meta_Grind_pre___closed__4 = _init_l_Lean_Meta_Grind_pre___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__4); -l_Lean_Meta_Grind_pre___closed__5 = _init_l_Lean_Meta_Grind_pre___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__5); -l_Lean_Meta_Grind_pre___closed__6 = _init_l_Lean_Meta_Grind_pre___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__6); -l_Lean_Meta_Grind_pre___closed__7 = _init_l_Lean_Meta_Grind_pre___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__7); -l_Lean_Meta_Grind_pre___closed__8 = _init_l_Lean_Meta_Grind_pre___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__8); -l_Lean_Meta_Grind_pre___closed__9 = _init_l_Lean_Meta_Grind_pre___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__9); -l_Lean_Meta_Grind_pre___closed__10 = _init_l_Lean_Meta_Grind_pre___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__10); -l_Lean_Meta_Grind_pre___closed__11 = _init_l_Lean_Meta_Grind_pre___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__11); -l_Lean_Meta_Grind_pre___closed__12 = _init_l_Lean_Meta_Grind_pre___closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__12); -l_Lean_Meta_Grind_pre___closed__13 = _init_l_Lean_Meta_Grind_pre___closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_pre___closed__13); +l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__1(); +l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__2); +l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3 = _init_l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Meta_Grind_simp___spec__3___closed__3); +l_Lean_Meta_Grind_simp___closed__1 = _init_l_Lean_Meta_Grind_simp___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__1); +l_Lean_Meta_Grind_simp___closed__2 = _init_l_Lean_Meta_Grind_simp___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__2); +l_Lean_Meta_Grind_simp___closed__3 = _init_l_Lean_Meta_Grind_simp___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__3); +l_Lean_Meta_Grind_simp___closed__4 = _init_l_Lean_Meta_Grind_simp___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__4); +l_Lean_Meta_Grind_simp___closed__5 = _init_l_Lean_Meta_Grind_simp___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__5); +l_Lean_Meta_Grind_simp___closed__6 = _init_l_Lean_Meta_Grind_simp___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__6); +l_Lean_Meta_Grind_simp___closed__7 = _init_l_Lean_Meta_Grind_simp___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__7); +l_Lean_Meta_Grind_simp___closed__8 = _init_l_Lean_Meta_Grind_simp___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__8); +l_Lean_Meta_Grind_simp___closed__9 = _init_l_Lean_Meta_Grind_simp___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__9); +l_Lean_Meta_Grind_simp___closed__10 = _init_l_Lean_Meta_Grind_simp___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__10); +l_Lean_Meta_Grind_simp___closed__11 = _init_l_Lean_Meta_Grind_simp___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__11); +l_Lean_Meta_Grind_simp___closed__12 = _init_l_Lean_Meta_Grind_simp___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__12); +l_Lean_Meta_Grind_simp___closed__13 = _init_l_Lean_Meta_Grind_simp___closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_simp___closed__13); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/TheoremPatterns.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/TheoremPatterns.c deleted file mode 100644 index 3b7c5ad9df..0000000000 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/TheoremPatterns.c +++ /dev/null @@ -1,8928 +0,0 @@ -// Lean compiler output -// Module: Lean.Meta.Tactic.Grind.TheoremPatterns -// Imports: Lean.HeadIndex Lean.Util.FoldConsts Lean.Meta.Basic Lean.Meta.InferType -#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_object* l_Lean_Expr_const___override(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; -lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__2; -lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__4; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isForbidden___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15; -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -size_t lean_usize_shift_right(size_t, size_t); -lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5; -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1; -uint8_t lean_usize_dec_le(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3___boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5; -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -uint64_t lean_uint64_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedOrigin; -size_t lean_uint64_to_usize(uint64_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern(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_object* l_Lean_Expr_sort___override(lean_object*); -lean_object* l_Lean_MessageData_ofList(lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); -static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1; -size_t lean_usize_mul(size_t, size_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2; -lean_object* lean_mk_array(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___boxed(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_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__8; -static lean_object* l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; -lean_object* l_Lean_Expr_bvar___override(lean_object*); -lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1; -lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___boxed(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_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13; -lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6; -lean_object* l_Lean_stringToMessageData(lean_object*); -static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__2; -static lean_object* l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprOrigin; -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1; -static lean_object* l_Lean_Meta_Grind_instReprOrigin___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__4(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__3; -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__6; -uint8_t l_Lean_Expr_isBVar(lean_object*); -lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); -uint8_t l_Lean_Expr_hasMVar(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__7; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__4; -uint8_t lean_expr_eqv(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2; -lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3; -uint64_t lean_uint64_shift_right(uint64_t, uint64_t); -lean_object* lean_nat_to_int(lean_object*); -lean_object* lean_nat_div(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16; -lean_object* l_Lean_MessageData_ofFormat(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_outOfBounds___rarg(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13; -lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6; -lean_object* lean_st_mk_ref(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames; -lean_object* lean_array_to_list(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4; -uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__2; -lean_object* l_Lean_Expr_toHeadIndex(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__1___boxed(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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(lean_object*); -extern lean_object* l_Lean_levelZero; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__11; -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isForbidden(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_theoremPatternsExt; -extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__8; -LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2(lean_object*, lean_object*); -uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2; -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__5; -lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__14(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___boxed(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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14; -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_instMonadMetaM; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3; -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f___boxed(lean_object*); -lean_object* lean_usize_to_nat(size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4; -lean_object* l_Lean_MessageData_ofExpr(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1(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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__2(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17; -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__9; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__5; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern___boxed(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6___boxed(lean_object*, lean_object*); -uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__2; -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_id___rarg___boxed(lean_object*); -lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppPattern(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(lean_object*); -lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2; -uint64_t l_Lean_Name_hash___override(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1; -lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1; -uint64_t lean_uint64_xor(uint64_t, uint64_t); -extern lean_object* l_Id_instMonad; -lean_object* l_Repr_addAppParen(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17; -lean_object* lean_panic_fn(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7; -lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7; -lean_object* lean_nat_sub(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_getAppFn(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_mul(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__7; -lean_object* l_Lean_Meta_isTypeFormer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_addTheoremPattern___closed__3; -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__13(lean_object*); -lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1; -lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8; -static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedTheoremPattern; -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_reverse___rarg(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11; -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1; -size_t lean_usize_sub(size_t, size_t); -lean_object* lean_array_mk(lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_usize_add(size_t, size_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__8(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7; -lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1; -size_t lean_array_size(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17; -lean_object* l_Lean_SMap_instInhabited___rarg(lean_object*, lean_object*); -lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f___boxed(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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16; -uint8_t l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(lean_object*, lean_object*); -lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__1; -static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2; -lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__10; -lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307_(lean_object*); -extern lean_object* l_Lean_Name_instBEq; -lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_nat_dec_le(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10; -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2; -uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__3; -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___boxed(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__5; -lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -lean_object* l_Lean_MessageData_bracket(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6(lean_object*, lean_object*); -uint8_t l_Lean_Expr_isConst(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3; -static lean_object* l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__11(lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_HeadIndex_hash(lean_object*); -static lean_object* l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2; -uint8_t l_Lean_Expr_isFVar(lean_object*); -static lean_object* l_Lean_Meta_Grind_ppPattern___closed__6; -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_MessageData_ofName(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18; -lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51_(lean_object*, lean_object*); -lean_object* l_ReaderT_instMonad___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__15(lean_object*, lean_object*); -size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern___boxed(lean_object*); -extern lean_object* l_Lean_instHashableName; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1; -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedOrigin___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(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_instInhabitedOrigin() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.decl", 27, 27); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2; -x_2 = lean_box(1); -x_3 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(2u); -x_2 = lean_nat_to_int(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(1u); -x_2 = lean_nat_to_int(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.fvar", 27, 27); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7; -x_2 = lean_box(1); -x_3 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.stx", 26, 26); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10; -x_2 = lean_box(1); -x_3 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.other", 28, 28); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13; -x_3 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14; -x_2 = 0; -x_3 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13; -x_3 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16; -x_2 = 0; -x_3 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51_(lean_object* x_1, lean_object* x_2) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_unsigned_to_nat(1024u); -x_5 = lean_nat_dec_le(x_4, x_2); -x_6 = l_Lean_Name_reprPrec(x_3, x_4); -x_7 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3; -x_8 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -if (x_5 == 0) -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_9 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -x_10 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = 0; -x_12 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11); -x_13 = l_Repr_addAppParen(x_12, x_2); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_14 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_8); -x_16 = 0; -x_17 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set_uint8(x_17, sizeof(void*)*1, x_16); -x_18 = l_Repr_addAppParen(x_17, x_2); -return x_18; -} -} -case 1: -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_19 = lean_ctor_get(x_1, 0); -lean_inc(x_19); -lean_dec(x_1); -x_20 = lean_unsigned_to_nat(1024u); -x_21 = lean_nat_dec_le(x_20, x_2); -x_22 = l_Lean_Name_reprPrec(x_19, x_20); -x_23 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8; -x_24 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -if (x_21 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_25 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -x_26 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = 0; -x_28 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); -x_29 = l_Repr_addAppParen(x_28, x_2); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_30 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -x_31 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_24); -x_32 = 0; -x_33 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*1, x_32); -x_34 = l_Repr_addAppParen(x_33, x_2); -return x_34; -} -} -case 2: -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_1); -if (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; lean_object* x_45; -x_36 = lean_ctor_get(x_1, 0); -x_37 = lean_ctor_get(x_1, 1); -x_38 = lean_unsigned_to_nat(1024u); -x_39 = lean_nat_dec_le(x_38, x_2); -x_40 = l_Lean_Name_reprPrec(x_36, x_38); -x_41 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11; -lean_ctor_set_tag(x_1, 5); -lean_ctor_set(x_1, 1, x_40); -lean_ctor_set(x_1, 0, x_41); -x_42 = lean_box(1); -x_43 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_43, 0, x_1); -lean_ctor_set(x_43, 1, x_42); -x_44 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(x_37, x_38); -x_45 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -if (x_39 == 0) -{ -lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; -x_46 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -x_47 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = 0; -x_49 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set_uint8(x_49, sizeof(void*)*1, x_48); -x_50 = l_Repr_addAppParen(x_49, x_2); -return x_50; -} -else -{ -lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; -x_51 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -x_52 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_45); -x_53 = 0; -x_54 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_53); -x_55 = l_Repr_addAppParen(x_54, x_2); -return x_55; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t 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; -x_56 = lean_ctor_get(x_1, 0); -x_57 = lean_ctor_get(x_1, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_1); -x_58 = lean_unsigned_to_nat(1024u); -x_59 = lean_nat_dec_le(x_58, x_2); -x_60 = l_Lean_Name_reprPrec(x_56, x_58); -x_61 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11; -x_62 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_box(1); -x_64 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2170_(x_57, x_58); -x_66 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -if (x_59 == 0) -{ -lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; -x_67 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4; -x_68 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -x_69 = 0; -x_70 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set_uint8(x_70, sizeof(void*)*1, x_69); -x_71 = l_Repr_addAppParen(x_70, x_2); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_72 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5; -x_73 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_66); -x_74 = 0; -x_75 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set_uint8(x_75, sizeof(void*)*1, x_74); -x_76 = l_Repr_addAppParen(x_75, x_2); -return x_76; -} -} -} -default: -{ -lean_object* x_77; uint8_t x_78; -x_77 = lean_unsigned_to_nat(1024u); -x_78 = lean_nat_dec_le(x_77, x_2); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; -x_79 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15; -x_80 = l_Repr_addAppParen(x_79, x_2); -return x_80; -} -else -{ -lean_object* x_81; lean_object* x_82; -x_81 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17; -x_82 = l_Repr_addAppParen(x_81, x_2); -return x_82; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51_(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instReprOrigin___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instReprOrigin() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instReprOrigin___closed__1; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Expr_bvar___override(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern___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 = lean_box(0); -x_2 = l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1; -x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Meta_Grind_instInhabitedOrigin___closed__1; -x_5 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_1); -lean_ctor_set(x_5, 3, x_1); -lean_ctor_set(x_5, 4, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__2; -return x_1; -} -} -static lean_object* _init_l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Name_instBEq; -x_2 = l_Lean_instHashableName; -x_3 = l_Lean_SMap_instInhabited___rarg(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Id_instMonad; -x_2 = l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1; -x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; -} -else -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_array_fget(x_1, x_4); -x_10 = lean_name_eq(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_12; -goto _start; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; -} -} -} -} -static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__1() { -_start: -{ -size_t x_1; size_t x_2; size_t x_3; -x_1 = 1; -x_2 = 5; -x_3 = lean_usize_shift_left(x_1, x_2); -return x_3; -} -} -static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2() { -_start: -{ -size_t x_1; size_t x_2; size_t x_3; -x_1 = 1; -x_2 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__1; -x_3 = lean_usize_sub(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4(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; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = 5; -x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2; -x_8 = lean_usize_land(x_2, x_7); -x_9 = lean_usize_to_nat(x_8); -x_10 = lean_box(2); -x_11 = lean_array_get(x_10, x_5, x_9); -lean_dec(x_9); -lean_dec(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(x_11); -x_14 = lean_name_eq(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(x_11); -x_17 = lean_usize_shift_right(x_2, x_6); -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; size_t x_21; size_t x_22; size_t x_23; lean_object* 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 = 5; -x_22 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2; -x_23 = lean_usize_land(x_2, x_22); -x_24 = lean_usize_to_nat(x_23); -x_25 = lean_box(2); -x_26 = lean_array_get(x_25, x_20, x_24); -lean_dec(x_24); -lean_dec(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(x_26); -x_29 = lean_name_eq(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(x_26); -x_33 = lean_usize_shift_right(x_2, x_21); -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(x_36); -x_37 = lean_ctor_get(x_1, 1); -lean_inc(x_37); -lean_dec(x_1); -x_38 = lean_unsigned_to_nat(0u); -x_39 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5(x_36, x_37, lean_box(0), x_38, x_3); -lean_dec(x_37); -lean_dec(x_36); -return x_39; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3(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_Name_hash___override(x_2); -x_4 = lean_uint64_to_usize(x_3); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4(x_1, x_4, x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6(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 = lean_name_eq(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_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec(x_1); -x_6 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3(x_5, x_2); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; -x_7 = lean_ctor_get(x_4, 1); -lean_inc(x_7); -lean_dec(x_4); -x_8 = lean_array_get_size(x_7); -x_9 = l_Lean_Name_hash___override(x_2); -x_10 = 32; -x_11 = lean_uint64_shift_right(x_9, x_10); -x_12 = lean_uint64_xor(x_9, x_11); -x_13 = 16; -x_14 = lean_uint64_shift_right(x_12, x_13); -x_15 = lean_uint64_xor(x_12, x_14); -x_16 = lean_uint64_to_usize(x_15); -x_17 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_18 = 1; -x_19 = lean_usize_sub(x_17, x_18); -x_20 = lean_usize_land(x_16, x_19); -x_21 = lean_array_uget(x_7, x_20); -lean_dec(x_7); -x_22 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6(x_2, x_21); -lean_dec(x_21); -return x_22; -} -else -{ -uint8_t x_23; -lean_dec(x_4); -x_23 = !lean_is_exclusive(x_6); -if (x_23 == 0) -{ -return x_6; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_6, 0); -lean_inc(x_24); -lean_dec(x_6); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -return x_25; -} -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; -x_26 = lean_ctor_get(x_1, 0); -lean_inc(x_26); -lean_dec(x_1); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_array_get_size(x_27); -x_29 = l_Lean_Name_hash___override(x_2); -x_30 = 32; -x_31 = lean_uint64_shift_right(x_29, x_30); -x_32 = lean_uint64_xor(x_29, x_31); -x_33 = 16; -x_34 = lean_uint64_shift_right(x_32, x_33); -x_35 = lean_uint64_xor(x_32, x_34); -x_36 = lean_uint64_to_usize(x_35); -x_37 = lean_usize_of_nat(x_28); -lean_dec(x_28); -x_38 = 1; -x_39 = lean_usize_sub(x_37, x_38); -x_40 = lean_usize_land(x_36, x_39); -x_41 = lean_array_uget(x_27, x_40); -lean_dec(x_27); -x_42 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6(x_2, x_41); -lean_dec(x_41); -return x_42; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10(size_t 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_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_dec(x_5); -return x_6; -} -else -{ -lean_object* x_9; lean_object* 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; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_array_fget(x_3, x_5); -x_11 = l_Lean_Name_hash___override(x_9); -x_12 = lean_uint64_to_usize(x_11); -x_13 = 1; -x_14 = lean_usize_sub(x_1, x_13); -x_15 = 5; -x_16 = lean_usize_mul(x_15, x_14); -x_17 = lean_usize_shift_right(x_12, x_16); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_6, x_17, x_1, x_9, x_10); -x_4 = lean_box(0); -x_5 = x_19; -x_6 = x_20; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__11(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; uint8_t x_8; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_array_get_size(x_5); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_2); -x_9 = !lean_is_exclusive(x_1); -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_1, 1); -lean_dec(x_10); -x_11 = lean_ctor_get(x_1, 0); -lean_dec(x_11); -x_12 = lean_array_push(x_5, x_3); -x_13 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_13); -lean_ctor_set(x_1, 0, x_12); -return x_1; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_1); -x_14 = lean_array_push(x_5, x_3); -x_15 = lean_array_push(x_6, x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_fget(x_5, x_2); -x_18 = lean_name_eq(x_3, x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_6); -lean_dec(x_5); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_2, x_19); -lean_dec(x_2); -x_2 = x_20; -goto _start; -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_1); -if (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_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); -lean_dec(x_24); -x_25 = lean_array_fset(x_5, x_2, x_3); -x_26 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -lean_ctor_set(x_1, 1, x_26); -lean_ctor_set(x_1, 0, x_25); -return x_1; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_1); -x_27 = lean_array_fset(x_5, x_2, x_3); -x_28 = lean_array_fset(x_6, x_2, x_4); -lean_dec(x_2); -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; -} -} -} -} -} -static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1() { -_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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(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) -{ -uint8_t x_6; -x_6 = !lean_is_exclusive(x_1); -if (x_6 == 0) -{ -lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_7 = lean_ctor_get(x_1, 0); -x_8 = 1; -x_9 = 5; -x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2; -x_11 = lean_usize_land(x_2, x_10); -x_12 = lean_usize_to_nat(x_11); -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_12, x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -return x_1; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_array_fget(x_7, x_12); -x_16 = lean_box(0); -x_17 = lean_array_fset(x_7, x_12, x_16); -switch (lean_obj_tag(x_15)) { -case 0: -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -x_21 = lean_name_eq(x_4, x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_15); -x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_array_fset(x_17, x_12, x_23); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_24); -return x_1; -} -else -{ -lean_object* x_25; -lean_dec(x_20); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_4); -x_25 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_25); -return x_1; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_15); -x_28 = lean_name_eq(x_4, x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_array_fset(x_17, x_12, x_30); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_31); -return x_1; -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_27); -lean_dec(x_26); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_4); -lean_ctor_set(x_32, 1, x_5); -x_33 = lean_array_fset(x_17, x_12, x_32); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_33); -return x_1; -} -} -} -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; lean_object* x_39; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_usize_shift_right(x_2, x_9); -x_37 = lean_usize_add(x_3, x_8); -x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_35, x_36, x_37, x_4, x_5); -lean_ctor_set(x_15, 0, x_38); -x_39 = lean_array_fset(x_17, x_12, x_15); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_39); -return x_1; -} -else -{ -lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_15, 0); -lean_inc(x_40); -lean_dec(x_15); -x_41 = lean_usize_shift_right(x_2, x_9); -x_42 = lean_usize_add(x_3, x_8); -x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_40, x_41, x_42, x_4, x_5); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = lean_array_fset(x_17, x_12, x_44); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_45); -return x_1; -} -} -default: -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_4); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_array_fset(x_17, x_12, x_46); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_47); -return x_1; -} -} -} -} -else -{ -lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_1, 0); -lean_inc(x_48); -lean_dec(x_1); -x_49 = 1; -x_50 = 5; -x_51 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2; -x_52 = lean_usize_land(x_2, x_51); -x_53 = lean_usize_to_nat(x_52); -x_54 = lean_array_get_size(x_48); -x_55 = lean_nat_dec_lt(x_53, x_54); -lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_53); -lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_48); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_array_fget(x_48, x_53); -x_58 = lean_box(0); -x_59 = lean_array_fset(x_48, x_53, x_58); -switch (lean_obj_tag(x_57)) { -case 0: -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_62 = x_57; -} else { - lean_dec_ref(x_57); - x_62 = lean_box(0); -} -x_63 = lean_name_eq(x_4, x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_array_fset(x_59, x_53, x_65); -lean_dec(x_53); -x_67 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_67, 0, x_66); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_61); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_62; -} -lean_ctor_set(x_68, 0, x_4); -lean_ctor_set(x_68, 1, x_5); -x_69 = lean_array_fset(x_59, x_53, x_68); -lean_dec(x_53); -x_70 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_70, 0, x_69); -return x_70; -} -} -case 1: -{ -lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_57, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - x_72 = x_57; -} else { - lean_dec_ref(x_57); - x_72 = lean_box(0); -} -x_73 = lean_usize_shift_right(x_2, x_50); -x_74 = lean_usize_add(x_3, x_49); -x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_71, x_73, x_74, x_4, x_5); -if (lean_is_scalar(x_72)) { - x_76 = lean_alloc_ctor(1, 1, 0); -} else { - x_76 = x_72; -} -lean_ctor_set(x_76, 0, x_75); -x_77 = lean_array_fset(x_59, x_53, x_76); -lean_dec(x_53); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; -} -default: -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_4); -lean_ctor_set(x_79, 1, x_5); -x_80 = lean_array_fset(x_59, x_53, x_79); -lean_dec(x_53); -x_81 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_81, 0, x_80); -return x_81; -} -} -} -} -} -else -{ -uint8_t x_82; -x_82 = !lean_is_exclusive(x_1); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__11(x_1, x_83, x_4, x_5); -x_85 = 7; -x_86 = lean_usize_dec_le(x_85, x_3); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_dec_lt(x_87, x_88); -lean_dec(x_87); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_84, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 1); -lean_inc(x_91); -lean_dec(x_84); -x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1; -x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10(x_3, x_90, x_91, lean_box(0), x_83, x_92); -lean_dec(x_91); -lean_dec(x_90); -return x_93; -} -else -{ -return x_84; -} -} -else -{ -return x_84; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; -x_94 = lean_ctor_get(x_1, 0); -x_95 = lean_ctor_get(x_1, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__11(x_96, x_97, x_4, x_5); -x_99 = 7; -x_100 = lean_usize_dec_le(x_99, x_3); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); -x_102 = lean_unsigned_to_nat(4u); -x_103 = lean_nat_dec_lt(x_101, x_102); -lean_dec(x_101); -if (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_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); -lean_inc(x_105); -lean_dec(x_98); -x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1; -x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10(x_3, x_104, x_105, lean_box(0), x_97, x_106); -lean_dec(x_105); -lean_dec(x_104); -return x_107; -} -else -{ -return x_98; -} -} -else -{ -return x_98; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__8(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_Name_hash___override(x_2); -x_5 = lean_uint64_to_usize(x_4); -x_6 = 1; -x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_1, x_5, x_6, x_2, x_3); -return x_7; -} -} -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(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 = lean_name_eq(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__15(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_Name_hash___override(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_Name_hash___override(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_Raw_u2080_expand_go___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__14(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(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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__15(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_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__13(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_box(0); -x_6 = lean_mk_array(x_4, x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__14(x_7, x_1, x_6); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -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_3, 0); -x_7 = lean_ctor_get(x_3, 1); -x_8 = lean_ctor_get(x_3, 2); -x_9 = lean_name_eq(x_6, x_1); -if (x_9 == 0) -{ -lean_object* x_10; -x_10 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(x_1, x_2, x_8); -lean_ctor_set(x_3, 2, x_10); -return x_3; -} -else -{ -lean_dec(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_1); -return x_3; -} -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); -x_13 = lean_ctor_get(x_3, 2); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_3); -x_14 = lean_name_eq(x_11, x_1); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(x_1, x_2, x_13); -x_16 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_16, 0, x_11); -lean_ctor_set(x_16, 1, x_12); -lean_ctor_set(x_16, 2, x_15); -return x_16; -} -else -{ -lean_object* x_17; -lean_dec(x_12); -lean_dec(x_11); -x_17 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_2); -lean_ctor_set(x_17, 2, x_13); -return x_17; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); -if (x_4 == 0) -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_1); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__8(x_6, x_2, x_3); -x_8 = 0; -lean_ctor_set(x_1, 1, x_7); -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_8); -return x_1; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__8(x_10, x_2, x_3); -x_12 = 0; -x_13 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_11); -lean_ctor_set_uint8(x_13, sizeof(void*)*2, x_12); -return x_13; -} -} -else -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_1); -if (x_14 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_1, 0); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; lean_object* x_32; uint8_t x_33; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -x_19 = lean_array_get_size(x_18); -x_20 = l_Lean_Name_hash___override(x_2); -x_21 = 32; -x_22 = lean_uint64_shift_right(x_20, x_21); -x_23 = lean_uint64_xor(x_20, x_22); -x_24 = 16; -x_25 = lean_uint64_shift_right(x_23, x_24); -x_26 = lean_uint64_xor(x_23, x_25); -x_27 = lean_uint64_to_usize(x_26); -x_28 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_29 = 1; -x_30 = lean_usize_sub(x_28, x_29); -x_31 = lean_usize_land(x_27, x_30); -x_32 = lean_array_uget(x_18, x_31); -x_33 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(x_2, x_32); -if (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; uint8_t x_43; -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_17, x_34); -lean_dec(x_17); -x_36 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_36, 0, x_2); -lean_ctor_set(x_36, 1, x_3); -lean_ctor_set(x_36, 2, x_32); -x_37 = lean_array_uset(x_18, x_31, x_36); -x_38 = lean_unsigned_to_nat(4u); -x_39 = lean_nat_mul(x_35, x_38); -x_40 = lean_unsigned_to_nat(3u); -x_41 = lean_nat_div(x_39, x_40); -lean_dec(x_39); -x_42 = lean_array_get_size(x_37); -x_43 = lean_nat_dec_le(x_41, x_42); -lean_dec(x_42); -lean_dec(x_41); -if (x_43 == 0) -{ -lean_object* x_44; uint8_t x_45; -x_44 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__13(x_37); -lean_ctor_set(x_15, 1, x_44); -lean_ctor_set(x_15, 0, x_35); -x_45 = 1; -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_45); -return x_1; -} -else -{ -uint8_t x_46; -lean_ctor_set(x_15, 1, x_37); -lean_ctor_set(x_15, 0, x_35); -x_46 = 1; -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_46); -return x_1; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_47 = lean_box(0); -x_48 = lean_array_uset(x_18, x_31, x_47); -x_49 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(x_2, x_3, x_32); -x_50 = lean_array_uset(x_48, x_31, x_49); -lean_ctor_set(x_15, 1, x_50); -x_51 = 1; -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_51); -return x_1; -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; uint64_t x_55; uint64_t x_56; uint64_t x_57; uint64_t x_58; uint64_t x_59; uint64_t x_60; uint64_t x_61; size_t x_62; size_t x_63; size_t x_64; size_t x_65; size_t x_66; lean_object* x_67; uint8_t x_68; -x_52 = lean_ctor_get(x_15, 0); -x_53 = lean_ctor_get(x_15, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_15); -x_54 = lean_array_get_size(x_53); -x_55 = l_Lean_Name_hash___override(x_2); -x_56 = 32; -x_57 = lean_uint64_shift_right(x_55, x_56); -x_58 = lean_uint64_xor(x_55, x_57); -x_59 = 16; -x_60 = lean_uint64_shift_right(x_58, x_59); -x_61 = lean_uint64_xor(x_58, x_60); -x_62 = lean_uint64_to_usize(x_61); -x_63 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_64 = 1; -x_65 = lean_usize_sub(x_63, x_64); -x_66 = lean_usize_land(x_62, x_65); -x_67 = lean_array_uget(x_53, x_66); -x_68 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(x_2, x_67); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_69 = lean_unsigned_to_nat(1u); -x_70 = lean_nat_add(x_52, x_69); -lean_dec(x_52); -x_71 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_71, 0, x_2); -lean_ctor_set(x_71, 1, x_3); -lean_ctor_set(x_71, 2, x_67); -x_72 = lean_array_uset(x_53, x_66, x_71); -x_73 = lean_unsigned_to_nat(4u); -x_74 = lean_nat_mul(x_70, x_73); -x_75 = lean_unsigned_to_nat(3u); -x_76 = lean_nat_div(x_74, x_75); -lean_dec(x_74); -x_77 = lean_array_get_size(x_72); -x_78 = lean_nat_dec_le(x_76, x_77); -lean_dec(x_77); -lean_dec(x_76); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__13(x_72); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_70); -lean_ctor_set(x_80, 1, x_79); -x_81 = 1; -lean_ctor_set(x_1, 0, x_80); -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_81); -return x_1; -} -else -{ -lean_object* x_82; uint8_t x_83; -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_70); -lean_ctor_set(x_82, 1, x_72); -x_83 = 1; -lean_ctor_set(x_1, 0, x_82); -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_83); -return x_1; -} -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_84 = lean_box(0); -x_85 = lean_array_uset(x_53, x_66, x_84); -x_86 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(x_2, x_3, x_67); -x_87 = lean_array_uset(x_85, x_66, x_86); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_52); -lean_ctor_set(x_88, 1, x_87); -x_89 = 1; -lean_ctor_set(x_1, 0, x_88); -lean_ctor_set_uint8(x_1, sizeof(void*)*2, x_89); -return x_1; -} -} -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint64_t x_96; uint64_t x_97; uint64_t x_98; uint64_t x_99; uint64_t x_100; uint64_t x_101; uint64_t x_102; size_t x_103; size_t x_104; size_t x_105; size_t x_106; size_t x_107; lean_object* x_108; uint8_t x_109; -x_90 = lean_ctor_get(x_1, 0); -x_91 = lean_ctor_get(x_1, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_1); -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); -} -x_95 = lean_array_get_size(x_93); -x_96 = l_Lean_Name_hash___override(x_2); -x_97 = 32; -x_98 = lean_uint64_shift_right(x_96, x_97); -x_99 = lean_uint64_xor(x_96, x_98); -x_100 = 16; -x_101 = lean_uint64_shift_right(x_99, x_100); -x_102 = lean_uint64_xor(x_99, x_101); -x_103 = lean_uint64_to_usize(x_102); -x_104 = lean_usize_of_nat(x_95); -lean_dec(x_95); -x_105 = 1; -x_106 = lean_usize_sub(x_104, x_105); -x_107 = lean_usize_land(x_103, x_106); -x_108 = lean_array_uget(x_93, x_107); -x_109 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(x_2, x_108); -if (x_109 == 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; uint8_t x_119; -x_110 = lean_unsigned_to_nat(1u); -x_111 = lean_nat_add(x_92, x_110); -lean_dec(x_92); -x_112 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_112, 0, x_2); -lean_ctor_set(x_112, 1, x_3); -lean_ctor_set(x_112, 2, x_108); -x_113 = lean_array_uset(x_93, x_107, x_112); -x_114 = lean_unsigned_to_nat(4u); -x_115 = lean_nat_mul(x_111, x_114); -x_116 = lean_unsigned_to_nat(3u); -x_117 = lean_nat_div(x_115, x_116); -lean_dec(x_115); -x_118 = lean_array_get_size(x_113); -x_119 = lean_nat_dec_le(x_117, x_118); -lean_dec(x_118); -lean_dec(x_117); -if (x_119 == 0) -{ -lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; -x_120 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__13(x_113); -if (lean_is_scalar(x_94)) { - x_121 = lean_alloc_ctor(0, 2, 0); -} else { - x_121 = x_94; -} -lean_ctor_set(x_121, 0, x_111); -lean_ctor_set(x_121, 1, x_120); -x_122 = 1; -x_123 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_91); -lean_ctor_set_uint8(x_123, sizeof(void*)*2, x_122); -return x_123; -} -else -{ -lean_object* x_124; uint8_t x_125; lean_object* x_126; -if (lean_is_scalar(x_94)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_94; -} -lean_ctor_set(x_124, 0, x_111); -lean_ctor_set(x_124, 1, x_113); -x_125 = 1; -x_126 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_91); -lean_ctor_set_uint8(x_126, sizeof(void*)*2, x_125); -return x_126; -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; -x_127 = lean_box(0); -x_128 = lean_array_uset(x_93, x_107, x_127); -x_129 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__16(x_2, x_3, x_108); -x_130 = lean_array_uset(x_128, x_107, x_129); -if (lean_is_scalar(x_94)) { - x_131 = lean_alloc_ctor(0, 2, 0); -} else { - x_131 = x_94; -} -lean_ctor_set(x_131, 0, x_92); -lean_ctor_set(x_131, 1, x_130); -x_132 = 1; -x_133 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_91); -lean_ctor_set_uint8(x_133, sizeof(void*)*2, x_132); -return x_133; -} -} -} -} -} -static lean_object* _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(10u); -x_2 = lean_unsigned_to_nat(1u); -x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); -return x_3; -} -} -static lean_object* _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1; -x_3 = lean_mk_array(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4() { -_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_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4; -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_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6() { -_start: -{ -uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = 1; -x_2 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3; -x_3 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5; -x_4 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_4, 0, x_2); -lean_ctor_set(x_4, 1, x_3); -lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); -return x_4; -} -} -static lean_object* _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.TheoremPatterns", 38, 38); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.theoremPatternsExt", 34, 34); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3() { -_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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___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; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(41u); -x_4 = lean_unsigned_to_nat(46u); -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_ctor_get(x_2, 3); -lean_inc(x_3); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_2); -lean_dec(x_1); -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4; -x_5 = l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1(x_4); -return x_5; -} -else -{ -uint8_t x_6; -x_6 = !lean_is_exclusive(x_3); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_3, 0); -x_8 = lean_ctor_get(x_3, 1); -lean_dec(x_8); -if (lean_obj_tag(x_7) == 2) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -lean_dec(x_7); -lean_inc(x_1); -x_10 = l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2(x_1, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_box(0); -lean_ctor_set(x_3, 1, x_11); -lean_ctor_set(x_3, 0, x_2); -x_12 = l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(x_1, x_9, x_3); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_ctor_set(x_3, 1, x_13); -lean_ctor_set(x_3, 0, x_2); -x_14 = l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(x_1, x_9, x_3); -return x_14; -} -} -else -{ -lean_object* x_15; lean_object* x_16; -lean_free_object(x_3); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_15 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4; -x_16 = l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1(x_15); -return x_16; -} -} -else -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_3, 0); -lean_inc(x_17); -lean_dec(x_3); -if (lean_obj_tag(x_17) == 2) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -lean_dec(x_17); -lean_inc(x_1); -x_19 = l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2(x_1, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_2); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(x_1, x_18, x_21); -return x_22; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_2); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_SMap_insert___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__7(x_1, x_18, x_24); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_17); -lean_dec(x_2); -lean_dec(x_1); -x_26 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4; -x_27 = l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1(x_26); -return x_27; -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1() { -_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_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Meta", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____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_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("theoremPatternsExt", 18, 18); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____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_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__3; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307_(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; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__5; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6; -x_4 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17; -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7; -x_6 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -lean_ctor_set(x_6, 2, x_4); -lean_ctor_set(x_6, 3, x_5); -x_7 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_6, x_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5___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_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__5(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4(x_1, x_4, x_3); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3___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_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__3(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__6(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_SMap_find_x3f___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__10(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9(x_1, x_6, x_7, x_4, x_5); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12___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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__12(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Eq", 2, 2); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("HEq", 3, 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Iff", 3, 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("And", 3, 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Or", 2, 2); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Not", 3, 3); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13() { -_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_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___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; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18; -x_2 = lean_array_mk(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames() { -_start: -{ -lean_object* x_1; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19; -return x_1; -} -} -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isForbidden(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames; -x_3 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isForbidden___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isForbidden(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind_dontcare]", 16, 16); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2() { -_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_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3() { -_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_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2; -x_3 = l_Lean_Expr_const___override(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare() { -_start: -{ -lean_object* x_1; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3; -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grind", 5, 5); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("ground_pat", 10, 10); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3; -x_3 = l_Lean_mkAnnotation(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3; -x_3 = l_Lean_annotation_x3f(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f(x_1); -lean_dec(x_1); -return x_2; -} -} -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f(x_1); -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -uint8_t x_4; -lean_dec(x_2); -x_4 = 1; -return x_4; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = l_Lean_Expr_isBVar(x_1); -if (x_2 == 0) -{ -lean_object* x_3; uint8_t x_4; -x_3 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_4 = lean_expr_eqv(x_1, x_3); -if (x_4 == 0) -{ -uint8_t x_5; -x_5 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isGroundPattern(x_1); -return x_5; -} -else -{ -uint8_t x_6; -x_6 = 1; -return x_6; -} -} -else -{ -uint8_t x_7; -x_7 = 1; -return x_7; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" ", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3; -x_5 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_1); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed), 3, 0); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("(", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(")", 1, 1); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(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: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -return x_6; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_array_uget(x_3, x_5); -lean_inc(x_8); -x_9 = l_Lean_Meta_Grind_ppPattern(x_8); -x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_isAtomicPattern(x_8); -lean_dec(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2; -x_13 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3; -x_14 = l_Lean_MessageData_bracket(x_12, x_9, x_13); -x_15 = lean_box(0); -x_16 = lean_apply_3(x_10, x_14, x_6, 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); -lean_dec(x_16); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_5, x_19); -x_5 = x_20; -x_6 = x_18; -goto _start; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = lean_apply_3(x_10, x_9, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -return x_24; -} -else -{ -lean_object* x_25; size_t x_26; size_t x_27; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = 1; -x_27 = lean_usize_add(x_5, x_26); -x_5 = x_27; -x_6 = x_25; -goto _start; -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__1() { -_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__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_ppPattern___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_ppPattern___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_levelZero; -x_2 = l_Lean_Expr_sort___override(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__6() { -_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__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_ppPattern___closed__6; -x_2 = l_Lean_stringToMessageData(x_1); -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("`[", 2, 2); -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_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ppPattern___closed__10() { -_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__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_ppPattern___closed__10; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ppPattern(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_groundPattern_x3f(x_1); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; uint8_t x_4; -x_3 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_4 = lean_expr_eqv(x_1, x_3); -if (x_4 == 0) -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_5; 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(x_5); -lean_dec(x_1); -x_6 = l___private_Init_Data_Repr_0__Nat_reprFast(x_5); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_6); -x_8 = l_Lean_MessageData_ofFormat(x_7); -x_9 = l_Lean_Meta_Grind_ppPattern___closed__2; -x_10 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_12 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -case 1: -{ -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; size_t x_26; size_t x_27; lean_object* x_28; -x_13 = l_Lean_Expr_getAppFn(x_1); -x_14 = l_Lean_MessageData_ofExpr(x_13); -x_15 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_16 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_18); -x_20 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_19); -x_21 = lean_mk_array(x_19, x_20); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_sub(x_19, x_22); -lean_dec(x_19); -x_24 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_21, x_23); -x_25 = lean_box(0); -x_26 = lean_array_size(x_24); -x_27 = 0; -x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(x_24, x_25, x_24, x_26, x_27, x_17); -lean_dec(x_24); -return x_28; -} -case 2: -{ -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; size_t x_42; size_t x_43; lean_object* x_44; -x_29 = l_Lean_Expr_getAppFn(x_1); -x_30 = l_Lean_MessageData_ofExpr(x_29); -x_31 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = lean_unsigned_to_nat(0u); -x_35 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_34); -x_36 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_35); -x_37 = lean_mk_array(x_35, x_36); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_sub(x_35, x_38); -lean_dec(x_35); -x_40 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_37, x_39); -x_41 = lean_box(0); -x_42 = lean_array_size(x_40); -x_43 = 0; -x_44 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(x_40, x_41, x_40, x_42, x_43, x_33); -lean_dec(x_40); -return x_44; -} -case 3: -{ -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; size_t x_58; size_t x_59; lean_object* x_60; -x_45 = l_Lean_Expr_getAppFn(x_1); -x_46 = l_Lean_MessageData_ofExpr(x_45); -x_47 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_48 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = lean_unsigned_to_nat(0u); -x_51 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_50); -x_52 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_51); -x_53 = lean_mk_array(x_51, x_52); -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_sub(x_51, x_54); -lean_dec(x_51); -x_56 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_53, x_55); -x_57 = lean_box(0); -x_58 = lean_array_size(x_56); -x_59 = 0; -x_60 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(x_56, x_57, x_56, x_58, x_59, x_49); -lean_dec(x_56); -return x_60; -} -case 4: -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; -x_61 = l_Lean_Expr_getAppFn(x_1); -x_62 = l_Lean_MessageData_ofExpr(x_61); -x_63 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_64 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -x_65 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_66 = lean_unsigned_to_nat(0u); -x_67 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_66); -x_68 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_67); -x_69 = lean_mk_array(x_67, x_68); -x_70 = lean_unsigned_to_nat(1u); -x_71 = lean_nat_sub(x_67, x_70); -lean_dec(x_67); -x_72 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_69, x_71); -x_73 = lean_box(0); -x_74 = lean_array_size(x_72); -x_75 = 0; -x_76 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(x_72, x_73, x_72, x_74, x_75, x_65); -lean_dec(x_72); -return x_76; -} -case 5: -{ -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; size_t x_90; size_t x_91; lean_object* x_92; -x_77 = l_Lean_Expr_getAppFn(x_1); -x_78 = l_Lean_MessageData_ofExpr(x_77); -x_79 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_78); -x_81 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = lean_unsigned_to_nat(0u); -x_83 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_82); -x_84 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_83); -x_85 = lean_mk_array(x_83, x_84); -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_sub(x_83, x_86); -lean_dec(x_83); -x_88 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_85, x_87); -x_89 = lean_box(0); -x_90 = lean_array_size(x_88); -x_91 = 0; -x_92 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(x_88, x_89, x_88, x_90, x_91, x_81); -lean_dec(x_88); -return x_92; -} -case 6: -{ -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; size_t x_106; size_t x_107; lean_object* x_108; -x_93 = l_Lean_Expr_getAppFn(x_1); -x_94 = l_Lean_MessageData_ofExpr(x_93); -x_95 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_96 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -x_97 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -x_98 = lean_unsigned_to_nat(0u); -x_99 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_98); -x_100 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_99); -x_101 = lean_mk_array(x_99, x_100); -x_102 = lean_unsigned_to_nat(1u); -x_103 = lean_nat_sub(x_99, x_102); -lean_dec(x_99); -x_104 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_101, x_103); -x_105 = lean_box(0); -x_106 = lean_array_size(x_104); -x_107 = 0; -x_108 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(x_104, x_105, x_104, x_106, x_107, x_97); -lean_dec(x_104); -return x_108; -} -case 7: -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; size_t x_122; size_t x_123; lean_object* x_124; -x_109 = l_Lean_Expr_getAppFn(x_1); -x_110 = l_Lean_MessageData_ofExpr(x_109); -x_111 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_112 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -x_113 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = lean_unsigned_to_nat(0u); -x_115 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_114); -x_116 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_115); -x_117 = lean_mk_array(x_115, x_116); -x_118 = lean_unsigned_to_nat(1u); -x_119 = lean_nat_sub(x_115, x_118); -lean_dec(x_115); -x_120 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_117, x_119); -x_121 = lean_box(0); -x_122 = lean_array_size(x_120); -x_123 = 0; -x_124 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(x_120, x_121, x_120, x_122, x_123, x_113); -lean_dec(x_120); -return x_124; -} -case 8: -{ -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; size_t x_138; size_t x_139; lean_object* x_140; -x_125 = l_Lean_Expr_getAppFn(x_1); -x_126 = l_Lean_MessageData_ofExpr(x_125); -x_127 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_128 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_126); -x_129 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -x_130 = lean_unsigned_to_nat(0u); -x_131 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_130); -x_132 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_131); -x_133 = lean_mk_array(x_131, x_132); -x_134 = lean_unsigned_to_nat(1u); -x_135 = lean_nat_sub(x_131, x_134); -lean_dec(x_131); -x_136 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_133, x_135); -x_137 = lean_box(0); -x_138 = lean_array_size(x_136); -x_139 = 0; -x_140 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(x_136, x_137, x_136, x_138, x_139, x_129); -lean_dec(x_136); -return x_140; -} -case 9: -{ -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; size_t x_154; size_t x_155; lean_object* x_156; -x_141 = l_Lean_Expr_getAppFn(x_1); -x_142 = l_Lean_MessageData_ofExpr(x_141); -x_143 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_144 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -x_145 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -x_146 = lean_unsigned_to_nat(0u); -x_147 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_146); -x_148 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_147); -x_149 = lean_mk_array(x_147, x_148); -x_150 = lean_unsigned_to_nat(1u); -x_151 = lean_nat_sub(x_147, x_150); -lean_dec(x_147); -x_152 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_149, x_151); -x_153 = lean_box(0); -x_154 = lean_array_size(x_152); -x_155 = 0; -x_156 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(x_152, x_153, x_152, x_154, x_155, x_145); -lean_dec(x_152); -return x_156; -} -case 10: -{ -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; size_t x_170; size_t x_171; lean_object* x_172; -x_157 = l_Lean_Expr_getAppFn(x_1); -x_158 = l_Lean_MessageData_ofExpr(x_157); -x_159 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_160 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_158); -x_161 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -x_162 = lean_unsigned_to_nat(0u); -x_163 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_162); -x_164 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_163); -x_165 = lean_mk_array(x_163, x_164); -x_166 = lean_unsigned_to_nat(1u); -x_167 = lean_nat_sub(x_163, x_166); -lean_dec(x_163); -x_168 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_165, x_167); -x_169 = lean_box(0); -x_170 = lean_array_size(x_168); -x_171 = 0; -x_172 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(x_168, x_169, x_168, x_170, x_171, x_161); -lean_dec(x_168); -return x_172; -} -default: -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; size_t x_186; size_t x_187; lean_object* x_188; -x_173 = l_Lean_Expr_getAppFn(x_1); -x_174 = l_Lean_MessageData_ofExpr(x_173); -x_175 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_176 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_174); -x_177 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_175); -x_178 = lean_unsigned_to_nat(0u); -x_179 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_178); -x_180 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_179); -x_181 = lean_mk_array(x_179, x_180); -x_182 = lean_unsigned_to_nat(1u); -x_183 = lean_nat_sub(x_179, x_182); -lean_dec(x_179); -x_184 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_181, x_183); -x_185 = lean_box(0); -x_186 = lean_array_size(x_184); -x_187 = 0; -x_188 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(x_184, x_185, x_184, x_186, x_187, x_177); -lean_dec(x_184); -return x_188; -} -} -} -else -{ -lean_object* x_189; -lean_dec(x_1); -x_189 = l_Lean_Meta_Grind_ppPattern___closed__7; -return x_189; -} -} -else -{ -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_dec(x_1); -x_190 = lean_ctor_get(x_2, 0); -lean_inc(x_190); -lean_dec(x_2); -x_191 = l_Lean_MessageData_ofExpr(x_190); -x_192 = l_Lean_Meta_Grind_ppPattern___closed__9; -x_193 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_191); -x_194 = l_Lean_Meta_Grind_ppPattern___closed__11; -x_195 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -return x_195; -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__3(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__4(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__6(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__7(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__8(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__9(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__10(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___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) { -_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__11(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(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___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_69_(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__4(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_HeadIndex_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_HeadIndex_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_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(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(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_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__4(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_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(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_box(0); -x_6 = lean_mk_array(x_4, x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__3(x_7, x_1, x_6); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(lean_object* x_1, 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; uint8_t x_11; -x_8 = lean_st_ref_get(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = !lean_is_exclusive(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; size_t x_27; lean_object* x_28; uint8_t x_29; -x_12 = lean_ctor_get(x_8, 1); -x_13 = lean_ctor_get(x_8, 0); -lean_dec(x_13); -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_array_get_size(x_14); -x_16 = l_Lean_HeadIndex_hash(x_1); -x_17 = 32; -x_18 = lean_uint64_shift_right(x_16, x_17); -x_19 = lean_uint64_xor(x_16, x_18); -x_20 = 16; -x_21 = lean_uint64_shift_right(x_19, x_20); -x_22 = lean_uint64_xor(x_19, x_21); -x_23 = lean_uint64_to_usize(x_22); -x_24 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_25 = 1; -x_26 = lean_usize_sub(x_24, x_25); -x_27 = lean_usize_land(x_23, x_26); -x_28 = lean_array_uget(x_14, x_27); -lean_dec(x_14); -x_29 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_28); -lean_dec(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -lean_free_object(x_8); -x_30 = lean_st_ref_take(x_2, x_12); -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_30); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_31, 0); -x_35 = lean_ctor_get(x_31, 1); -lean_inc(x_1); -x_36 = lean_array_push(x_34, x_1); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; size_t x_43; lean_object* x_44; uint8_t x_45; -x_38 = lean_ctor_get(x_35, 0); -x_39 = lean_ctor_get(x_35, 1); -x_40 = lean_array_get_size(x_39); -x_41 = lean_usize_of_nat(x_40); -lean_dec(x_40); -x_42 = lean_usize_sub(x_41, x_25); -x_43 = lean_usize_land(x_23, x_42); -x_44 = lean_array_uget(x_39, x_43); -x_45 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_46 = lean_unsigned_to_nat(1u); -x_47 = lean_nat_add(x_38, x_46); -lean_dec(x_38); -x_48 = lean_box(0); -x_49 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_49, 0, x_1); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set(x_49, 2, x_44); -x_50 = lean_array_uset(x_39, x_43, x_49); -x_51 = lean_unsigned_to_nat(4u); -x_52 = lean_nat_mul(x_47, x_51); -x_53 = lean_unsigned_to_nat(3u); -x_54 = lean_nat_div(x_52, x_53); -lean_dec(x_52); -x_55 = lean_array_get_size(x_50); -x_56 = lean_nat_dec_le(x_54, x_55); -lean_dec(x_55); -lean_dec(x_54); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_50); -lean_ctor_set(x_35, 1, x_57); -lean_ctor_set(x_35, 0, x_47); -lean_ctor_set(x_31, 0, x_36); -x_58 = lean_st_ref_set(x_2, x_31, x_32); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -lean_ctor_set(x_58, 0, x_48); -return x_58; -} -else -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_48); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -else -{ -lean_object* x_63; uint8_t x_64; -lean_ctor_set(x_35, 1, x_50); -lean_ctor_set(x_35, 0, x_47); -lean_ctor_set(x_31, 0, x_36); -x_63 = lean_st_ref_set(x_2, x_31, x_32); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_63, 0); -lean_dec(x_65); -lean_ctor_set(x_63, 0, x_48); -return x_63; -} -else -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_48); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -else -{ -lean_object* x_68; uint8_t x_69; -lean_dec(x_44); -lean_dec(x_1); -lean_ctor_set(x_31, 0, x_36); -x_68 = lean_st_ref_set(x_2, x_31, x_32); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = lean_box(0); -lean_ctor_set(x_68, 0, x_71); -return x_68; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_68, 1); -lean_inc(x_72); -lean_dec(x_68); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -return x_74; -} -} -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; size_t x_80; lean_object* x_81; uint8_t x_82; -x_75 = lean_ctor_get(x_35, 0); -x_76 = lean_ctor_get(x_35, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_35); -x_77 = lean_array_get_size(x_76); -x_78 = lean_usize_of_nat(x_77); -lean_dec(x_77); -x_79 = lean_usize_sub(x_78, x_25); -x_80 = lean_usize_land(x_23, x_79); -x_81 = lean_array_uget(x_76, x_80); -x_82 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_81); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_83 = lean_unsigned_to_nat(1u); -x_84 = lean_nat_add(x_75, x_83); -lean_dec(x_75); -x_85 = lean_box(0); -x_86 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_86, 0, x_1); -lean_ctor_set(x_86, 1, x_85); -lean_ctor_set(x_86, 2, x_81); -x_87 = lean_array_uset(x_76, x_80, x_86); -x_88 = lean_unsigned_to_nat(4u); -x_89 = lean_nat_mul(x_84, x_88); -x_90 = lean_unsigned_to_nat(3u); -x_91 = lean_nat_div(x_89, x_90); -lean_dec(x_89); -x_92 = lean_array_get_size(x_87); -x_93 = lean_nat_dec_le(x_91, x_92); -lean_dec(x_92); -lean_dec(x_91); -if (x_93 == 0) -{ -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_94 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_87); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_84); -lean_ctor_set(x_95, 1, x_94); -lean_ctor_set(x_31, 1, x_95); -lean_ctor_set(x_31, 0, x_36); -x_96 = lean_st_ref_set(x_2, x_31, x_32); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_98 = x_96; -} else { - lean_dec_ref(x_96); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_85); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_84); -lean_ctor_set(x_100, 1, x_87); -lean_ctor_set(x_31, 1, x_100); -lean_ctor_set(x_31, 0, x_36); -x_101 = lean_st_ref_set(x_2, x_31, x_32); -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); -} -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_103; -} -lean_ctor_set(x_104, 0, x_85); -lean_ctor_set(x_104, 1, x_102); -return x_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_dec(x_81); -lean_dec(x_1); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_75); -lean_ctor_set(x_105, 1, x_76); -lean_ctor_set(x_31, 1, x_105); -lean_ctor_set(x_31, 0, x_36); -x_106 = lean_st_ref_set(x_2, x_31, x_32); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_108 = x_106; -} else { - lean_dec_ref(x_106); - x_108 = lean_box(0); -} -x_109 = lean_box(0); -if (lean_is_scalar(x_108)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_108; -} -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_107); -return x_110; -} -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; size_t x_119; size_t x_120; size_t x_121; lean_object* x_122; uint8_t x_123; -x_111 = lean_ctor_get(x_31, 0); -x_112 = lean_ctor_get(x_31, 1); -x_113 = lean_ctor_get(x_31, 2); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_31); -lean_inc(x_1); -x_114 = lean_array_push(x_111, x_1); -x_115 = lean_ctor_get(x_112, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_112, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_117 = x_112; -} else { - lean_dec_ref(x_112); - x_117 = lean_box(0); -} -x_118 = lean_array_get_size(x_116); -x_119 = lean_usize_of_nat(x_118); -lean_dec(x_118); -x_120 = lean_usize_sub(x_119, x_25); -x_121 = lean_usize_land(x_23, x_120); -x_122 = lean_array_uget(x_116, x_121); -x_123 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_122); -if (x_123 == 0) -{ -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; uint8_t x_134; -x_124 = lean_unsigned_to_nat(1u); -x_125 = lean_nat_add(x_115, x_124); -lean_dec(x_115); -x_126 = lean_box(0); -x_127 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_127, 0, x_1); -lean_ctor_set(x_127, 1, x_126); -lean_ctor_set(x_127, 2, x_122); -x_128 = lean_array_uset(x_116, x_121, x_127); -x_129 = lean_unsigned_to_nat(4u); -x_130 = lean_nat_mul(x_125, x_129); -x_131 = lean_unsigned_to_nat(3u); -x_132 = lean_nat_div(x_130, x_131); -lean_dec(x_130); -x_133 = lean_array_get_size(x_128); -x_134 = lean_nat_dec_le(x_132, x_133); -lean_dec(x_133); -lean_dec(x_132); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_135 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_128); -if (lean_is_scalar(x_117)) { - x_136 = lean_alloc_ctor(0, 2, 0); -} else { - x_136 = x_117; -} -lean_ctor_set(x_136, 0, x_125); -lean_ctor_set(x_136, 1, x_135); -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_114); -lean_ctor_set(x_137, 1, x_136); -lean_ctor_set(x_137, 2, x_113); -x_138 = lean_st_ref_set(x_2, x_137, x_32); -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); -} -if (lean_is_scalar(x_140)) { - x_141 = lean_alloc_ctor(0, 2, 0); -} else { - x_141 = x_140; -} -lean_ctor_set(x_141, 0, x_126); -lean_ctor_set(x_141, 1, x_139); -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; -if (lean_is_scalar(x_117)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_117; -} -lean_ctor_set(x_142, 0, x_125); -lean_ctor_set(x_142, 1, x_128); -x_143 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_143, 0, x_114); -lean_ctor_set(x_143, 1, x_142); -lean_ctor_set(x_143, 2, x_113); -x_144 = lean_st_ref_set(x_2, x_143, x_32); -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_146 = x_144; -} else { - lean_dec_ref(x_144); - x_146 = lean_box(0); -} -if (lean_is_scalar(x_146)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_146; -} -lean_ctor_set(x_147, 0, x_126); -lean_ctor_set(x_147, 1, x_145); -return x_147; -} -} -else -{ -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_dec(x_122); -lean_dec(x_1); -if (lean_is_scalar(x_117)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_117; -} -lean_ctor_set(x_148, 0, x_115); -lean_ctor_set(x_148, 1, x_116); -x_149 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_149, 0, x_114); -lean_ctor_set(x_149, 1, x_148); -lean_ctor_set(x_149, 2, x_113); -x_150 = lean_st_ref_set(x_2, x_149, x_32); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; -} else { - lean_dec_ref(x_150); - x_152 = lean_box(0); -} -x_153 = lean_box(0); -if (lean_is_scalar(x_152)) { - x_154 = lean_alloc_ctor(0, 2, 0); -} else { - x_154 = x_152; -} -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_151); -return x_154; -} -} -} -else -{ -lean_object* x_155; -lean_dec(x_1); -x_155 = lean_box(0); -lean_ctor_set(x_8, 0, x_155); -return x_8; -} -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; uint64_t x_159; uint64_t x_160; uint64_t x_161; uint64_t x_162; uint64_t x_163; uint64_t x_164; uint64_t x_165; size_t x_166; size_t x_167; size_t x_168; size_t x_169; size_t x_170; lean_object* x_171; uint8_t x_172; -x_156 = lean_ctor_get(x_8, 1); -lean_inc(x_156); -lean_dec(x_8); -x_157 = lean_ctor_get(x_10, 1); -lean_inc(x_157); -lean_dec(x_10); -x_158 = lean_array_get_size(x_157); -x_159 = l_Lean_HeadIndex_hash(x_1); -x_160 = 32; -x_161 = lean_uint64_shift_right(x_159, x_160); -x_162 = lean_uint64_xor(x_159, x_161); -x_163 = 16; -x_164 = lean_uint64_shift_right(x_162, x_163); -x_165 = lean_uint64_xor(x_162, x_164); -x_166 = lean_uint64_to_usize(x_165); -x_167 = lean_usize_of_nat(x_158); -lean_dec(x_158); -x_168 = 1; -x_169 = lean_usize_sub(x_167, x_168); -x_170 = lean_usize_land(x_166, x_169); -x_171 = lean_array_uget(x_157, x_170); -lean_dec(x_157); -x_172 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_171); -lean_dec(x_171); -if (x_172 == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; size_t x_185; size_t x_186; size_t x_187; lean_object* x_188; uint8_t x_189; -x_173 = lean_st_ref_take(x_2, x_156); -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(x_173); -x_176 = lean_ctor_get(x_174, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_174, 1); -lean_inc(x_177); -x_178 = lean_ctor_get(x_174, 2); -lean_inc(x_178); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - lean_ctor_release(x_174, 2); - x_179 = x_174; -} else { - lean_dec_ref(x_174); - x_179 = lean_box(0); -} -lean_inc(x_1); -x_180 = lean_array_push(x_176, x_1); -x_181 = lean_ctor_get(x_177, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_177, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_183 = x_177; -} else { - lean_dec_ref(x_177); - x_183 = lean_box(0); -} -x_184 = lean_array_get_size(x_182); -x_185 = lean_usize_of_nat(x_184); -lean_dec(x_184); -x_186 = lean_usize_sub(x_185, x_168); -x_187 = lean_usize_land(x_166, x_186); -x_188 = lean_array_uget(x_182, x_187); -x_189 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_188); -if (x_189 == 0) -{ -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; uint8_t x_200; -x_190 = lean_unsigned_to_nat(1u); -x_191 = lean_nat_add(x_181, x_190); -lean_dec(x_181); -x_192 = lean_box(0); -x_193 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_193, 0, x_1); -lean_ctor_set(x_193, 1, x_192); -lean_ctor_set(x_193, 2, x_188); -x_194 = lean_array_uset(x_182, x_187, x_193); -x_195 = lean_unsigned_to_nat(4u); -x_196 = lean_nat_mul(x_191, x_195); -x_197 = lean_unsigned_to_nat(3u); -x_198 = lean_nat_div(x_196, x_197); -lean_dec(x_196); -x_199 = lean_array_get_size(x_194); -x_200 = lean_nat_dec_le(x_198, x_199); -lean_dec(x_199); -lean_dec(x_198); -if (x_200 == 0) -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_201 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__2(x_194); -if (lean_is_scalar(x_183)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_183; -} -lean_ctor_set(x_202, 0, x_191); -lean_ctor_set(x_202, 1, x_201); -if (lean_is_scalar(x_179)) { - x_203 = lean_alloc_ctor(0, 3, 0); -} else { - x_203 = x_179; -} -lean_ctor_set(x_203, 0, x_180); -lean_ctor_set(x_203, 1, x_202); -lean_ctor_set(x_203, 2, x_178); -x_204 = lean_st_ref_set(x_2, x_203, x_175); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - lean_ctor_release(x_204, 1); - x_206 = x_204; -} else { - lean_dec_ref(x_204); - x_206 = lean_box(0); -} -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(0, 2, 0); -} else { - x_207 = x_206; -} -lean_ctor_set(x_207, 0, x_192); -lean_ctor_set(x_207, 1, x_205); -return x_207; -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -if (lean_is_scalar(x_183)) { - x_208 = lean_alloc_ctor(0, 2, 0); -} else { - x_208 = x_183; -} -lean_ctor_set(x_208, 0, x_191); -lean_ctor_set(x_208, 1, x_194); -if (lean_is_scalar(x_179)) { - x_209 = lean_alloc_ctor(0, 3, 0); -} else { - x_209 = x_179; -} -lean_ctor_set(x_209, 0, x_180); -lean_ctor_set(x_209, 1, x_208); -lean_ctor_set(x_209, 2, x_178); -x_210 = lean_st_ref_set(x_2, x_209, x_175); -x_211 = lean_ctor_get(x_210, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_210)) { - lean_ctor_release(x_210, 0); - lean_ctor_release(x_210, 1); - x_212 = x_210; -} else { - lean_dec_ref(x_210); - x_212 = lean_box(0); -} -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(0, 2, 0); -} else { - x_213 = x_212; -} -lean_ctor_set(x_213, 0, x_192); -lean_ctor_set(x_213, 1, x_211); -return x_213; -} -} -else -{ -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_dec(x_188); -lean_dec(x_1); -if (lean_is_scalar(x_183)) { - x_214 = lean_alloc_ctor(0, 2, 0); -} else { - x_214 = x_183; -} -lean_ctor_set(x_214, 0, x_181); -lean_ctor_set(x_214, 1, x_182); -if (lean_is_scalar(x_179)) { - x_215 = lean_alloc_ctor(0, 3, 0); -} else { - x_215 = x_179; -} -lean_ctor_set(x_215, 0, x_180); -lean_ctor_set(x_215, 1, x_214); -lean_ctor_set(x_215, 2, x_178); -x_216 = lean_st_ref_set(x_2, x_215, x_175); -x_217 = lean_ctor_get(x_216, 1); -lean_inc(x_217); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_218 = x_216; -} else { - lean_dec_ref(x_216); - x_218 = lean_box(0); -} -x_219 = lean_box(0); -if (lean_is_scalar(x_218)) { - x_220 = lean_alloc_ctor(0, 2, 0); -} else { - x_220 = x_218; -} -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_217); -return x_220; -} -} -else -{ -lean_object* x_221; lean_object* x_222; -lean_dec(x_1); -x_221 = lean_box(0); -x_222 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_156); -return x_222; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1___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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol___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_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(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 = lean_nat_dec_eq(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar(lean_object* x_1, 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; uint8_t x_11; -x_8 = lean_st_ref_get(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 2); -lean_inc(x_10); -lean_dec(x_9); -x_11 = !lean_is_exclusive(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; size_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_12 = lean_ctor_get(x_8, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_dec(x_10); -x_14 = lean_array_get_size(x_13); -x_15 = lean_uint64_of_nat(x_1); -x_16 = 32; -x_17 = lean_uint64_shift_right(x_15, x_16); -x_18 = lean_uint64_xor(x_15, x_17); -x_19 = 16; -x_20 = lean_uint64_shift_right(x_18, x_19); -x_21 = lean_uint64_xor(x_18, x_20); -x_22 = lean_uint64_to_usize(x_21); -x_23 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_24 = 1; -x_25 = lean_usize_sub(x_23, x_24); -x_26 = lean_usize_land(x_22, x_25); -x_27 = lean_array_uget(x_13, x_26); -lean_dec(x_13); -x_28 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_27); -lean_dec(x_27); -x_29 = lean_box(x_28); -lean_ctor_set(x_8, 0, x_29); -return x_8; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; size_t x_40; size_t x_41; size_t x_42; size_t x_43; size_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; -x_30 = lean_ctor_get(x_8, 1); -lean_inc(x_30); -lean_dec(x_8); -x_31 = lean_ctor_get(x_10, 1); -lean_inc(x_31); -lean_dec(x_10); -x_32 = lean_array_get_size(x_31); -x_33 = lean_uint64_of_nat(x_1); -x_34 = 32; -x_35 = lean_uint64_shift_right(x_33, x_34); -x_36 = lean_uint64_xor(x_33, x_35); -x_37 = 16; -x_38 = lean_uint64_shift_right(x_36, x_37); -x_39 = lean_uint64_xor(x_36, x_38); -x_40 = lean_uint64_to_usize(x_39); -x_41 = lean_usize_of_nat(x_32); -lean_dec(x_32); -x_42 = 1; -x_43 = lean_usize_sub(x_41, x_42); -x_44 = lean_usize_land(x_40, x_43); -x_45 = lean_array_uget(x_31, x_44); -lean_dec(x_31); -x_46 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_45); -lean_dec(x_45); -x_47 = lean_box(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_30); -return x_48; -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1___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___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___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_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); -return x_2; -} -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; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 2); -x_7 = lean_array_get_size(x_2); -lean_inc(x_1); -lean_inc(x_5); -x_8 = lean_apply_1(x_1, x_5); -x_9 = lean_unbox_uint64(x_8); -lean_dec(x_8); -x_10 = 32; -x_11 = lean_uint64_shift_right(x_9, x_10); -x_12 = lean_uint64_xor(x_9, x_11); -x_13 = 16; -x_14 = lean_uint64_shift_right(x_12, x_13); -x_15 = lean_uint64_xor(x_12, x_14); -x_16 = lean_uint64_to_usize(x_15); -x_17 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_18 = 1; -x_19 = lean_usize_sub(x_17, x_18); -x_20 = lean_usize_land(x_16, x_19); -x_21 = lean_array_uget(x_2, x_20); -lean_ctor_set(x_3, 2, x_21); -x_22 = lean_array_uset(x_2, x_20, x_3); -x_2 = x_22; -x_3 = x_6; -goto _start; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; size_t x_36; size_t x_37; size_t x_38; size_t x_39; size_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_24 = lean_ctor_get(x_3, 0); -x_25 = lean_ctor_get(x_3, 1); -x_26 = lean_ctor_get(x_3, 2); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_3); -x_27 = lean_array_get_size(x_2); -lean_inc(x_1); -lean_inc(x_24); -x_28 = lean_apply_1(x_1, x_24); -x_29 = lean_unbox_uint64(x_28); -lean_dec(x_28); -x_30 = 32; -x_31 = lean_uint64_shift_right(x_29, x_30); -x_32 = lean_uint64_xor(x_29, x_31); -x_33 = 16; -x_34 = lean_uint64_shift_right(x_32, x_33); -x_35 = lean_uint64_xor(x_32, x_34); -x_36 = lean_uint64_to_usize(x_35); -x_37 = lean_usize_of_nat(x_27); -lean_dec(x_27); -x_38 = 1; -x_39 = lean_usize_sub(x_37, x_38); -x_40 = lean_usize_land(x_36, x_39); -x_41 = lean_array_uget(x_2, x_40); -x_42 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_42, 0, x_24); -lean_ctor_set(x_42, 1, x_25); -lean_ctor_set(x_42, 2, x_41); -x_43 = lean_array_uset(x_2, x_40, x_42); -x_2 = x_43; -x_3 = x_26; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(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 = lean_uint64_of_nat(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 = lean_uint64_of_nat(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_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(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(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_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__3___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__4(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_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 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_box(0); -x_6 = lean_mk_array(x_4, x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__2(x_7, x_1, x_6); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(lean_object* x_1, 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; uint8_t x_12; -x_8 = lean_st_ref_take(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 2); -lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_9, 2); -lean_dec(x_13); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -x_17 = lean_array_get_size(x_16); -x_18 = lean_uint64_of_nat(x_1); -x_19 = 32; -x_20 = lean_uint64_shift_right(x_18, x_19); -x_21 = lean_uint64_xor(x_18, x_20); -x_22 = 16; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = lean_uint64_to_usize(x_24); -x_26 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_27 = 1; -x_28 = lean_usize_sub(x_26, x_27); -x_29 = lean_usize_land(x_25, x_28); -x_30 = lean_array_uget(x_16, x_29); -x_31 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, 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; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_15, x_32); -lean_dec(x_15); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_35, 2, x_30); -x_36 = lean_array_uset(x_16, x_29, x_35); -x_37 = lean_unsigned_to_nat(4u); -x_38 = lean_nat_mul(x_33, x_37); -x_39 = lean_unsigned_to_nat(3u); -x_40 = lean_nat_div(x_38, x_39); -lean_dec(x_38); -x_41 = lean_array_get_size(x_36); -x_42 = lean_nat_dec_le(x_40, x_41); -lean_dec(x_41); -lean_dec(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_36); -lean_ctor_set(x_10, 1, x_43); -lean_ctor_set(x_10, 0, x_33); -x_44 = lean_st_ref_set(x_2, x_9, x_11); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set(x_44, 0, x_34); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_34); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; uint8_t x_50; -lean_ctor_set(x_10, 1, x_36); -lean_ctor_set(x_10, 0, x_33); -x_49 = lean_st_ref_set(x_2, x_9, x_11); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -lean_ctor_set(x_49, 0, x_34); -return x_49; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -lean_dec(x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_34); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -lean_object* x_54; uint8_t x_55; -lean_dec(x_30); -lean_dec(x_1); -x_54 = lean_st_ref_set(x_2, x_9, x_11); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -x_57 = lean_box(0); -lean_ctor_set(x_54, 0, x_57); -return x_54; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; lean_object* x_76; uint8_t x_77; -x_61 = lean_ctor_get(x_10, 0); -x_62 = lean_ctor_get(x_10, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_10); -x_63 = lean_array_get_size(x_62); -x_64 = lean_uint64_of_nat(x_1); -x_65 = 32; -x_66 = lean_uint64_shift_right(x_64, x_65); -x_67 = lean_uint64_xor(x_64, x_66); -x_68 = 16; -x_69 = lean_uint64_shift_right(x_67, x_68); -x_70 = lean_uint64_xor(x_67, x_69); -x_71 = lean_uint64_to_usize(x_70); -x_72 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_73 = 1; -x_74 = lean_usize_sub(x_72, x_73); -x_75 = lean_usize_land(x_71, x_74); -x_76 = lean_array_uget(x_62, x_75); -x_77 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_76); -if (x_77 == 0) -{ -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; uint8_t x_88; -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_61, x_78); -lean_dec(x_61); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_1); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_76); -x_82 = lean_array_uset(x_62, x_75, x_81); -x_83 = lean_unsigned_to_nat(4u); -x_84 = lean_nat_mul(x_79, x_83); -x_85 = lean_unsigned_to_nat(3u); -x_86 = lean_nat_div(x_84, x_85); -lean_dec(x_84); -x_87 = lean_array_get_size(x_82); -x_88 = lean_nat_dec_le(x_86, x_87); -lean_dec(x_87); -lean_dec(x_86); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_89 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_82); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_79); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_9, 2, x_90); -x_91 = lean_st_ref_set(x_2, x_9, x_11); -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); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_80); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_79); -lean_ctor_set(x_95, 1, x_82); -lean_ctor_set(x_9, 2, x_95); -x_96 = lean_st_ref_set(x_2, x_9, x_11); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_98 = x_96; -} else { - lean_dec_ref(x_96); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_80); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -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_dec(x_76); -lean_dec(x_1); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_61); -lean_ctor_set(x_100, 1, x_62); -lean_ctor_set(x_9, 2, x_100); -x_101 = lean_st_ref_set(x_2, x_9, x_11); -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_box(0); -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_object* x_110; lean_object* x_111; uint64_t x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; size_t x_119; size_t x_120; size_t x_121; size_t x_122; size_t x_123; lean_object* x_124; uint8_t x_125; -x_106 = lean_ctor_get(x_9, 0); -x_107 = lean_ctor_get(x_9, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_9); -x_108 = lean_ctor_get(x_10, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_10, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_110 = x_10; -} else { - lean_dec_ref(x_10); - x_110 = lean_box(0); -} -x_111 = lean_array_get_size(x_109); -x_112 = lean_uint64_of_nat(x_1); -x_113 = 32; -x_114 = lean_uint64_shift_right(x_112, x_113); -x_115 = lean_uint64_xor(x_112, x_114); -x_116 = 16; -x_117 = lean_uint64_shift_right(x_115, x_116); -x_118 = lean_uint64_xor(x_115, x_117); -x_119 = lean_uint64_to_usize(x_118); -x_120 = lean_usize_of_nat(x_111); -lean_dec(x_111); -x_121 = 1; -x_122 = lean_usize_sub(x_120, x_121); -x_123 = lean_usize_land(x_119, x_122); -x_124 = lean_array_uget(x_109, x_123); -x_125 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar___spec__1(x_1, x_124); -if (x_125 == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_126 = lean_unsigned_to_nat(1u); -x_127 = lean_nat_add(x_108, x_126); -lean_dec(x_108); -x_128 = lean_box(0); -x_129 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_129, 0, x_1); -lean_ctor_set(x_129, 1, x_128); -lean_ctor_set(x_129, 2, x_124); -x_130 = lean_array_uset(x_109, x_123, x_129); -x_131 = lean_unsigned_to_nat(4u); -x_132 = lean_nat_mul(x_127, x_131); -x_133 = lean_unsigned_to_nat(3u); -x_134 = lean_nat_div(x_132, x_133); -lean_dec(x_132); -x_135 = lean_array_get_size(x_130); -x_136 = lean_nat_dec_le(x_134, x_135); -lean_dec(x_135); -lean_dec(x_134); -if (x_136 == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_137 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___spec__1(x_130); -if (lean_is_scalar(x_110)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_110; -} -lean_ctor_set(x_138, 0, x_127); -lean_ctor_set(x_138, 1, x_137); -x_139 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_139, 0, x_106); -lean_ctor_set(x_139, 1, x_107); -lean_ctor_set(x_139, 2, x_138); -x_140 = lean_st_ref_set(x_2, x_139, x_11); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; -} else { - lean_dec_ref(x_140); - x_142 = lean_box(0); -} -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_142; -} -lean_ctor_set(x_143, 0, x_128); -lean_ctor_set(x_143, 1, x_141); -return x_143; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -if (lean_is_scalar(x_110)) { - x_144 = lean_alloc_ctor(0, 2, 0); -} else { - x_144 = x_110; -} -lean_ctor_set(x_144, 0, x_127); -lean_ctor_set(x_144, 1, x_130); -x_145 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_145, 0, x_106); -lean_ctor_set(x_145, 1, x_107); -lean_ctor_set(x_145, 2, x_144); -x_146 = lean_st_ref_set(x_2, x_145, x_11); -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_148 = x_146; -} else { - lean_dec_ref(x_146); - x_148 = lean_box(0); -} -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_148; -} -lean_ctor_set(x_149, 0, x_128); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -} -else -{ -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_dec(x_124); -lean_dec(x_1); -if (lean_is_scalar(x_110)) { - x_150 = lean_alloc_ctor(0, 2, 0); -} else { - x_150 = x_110; -} -lean_ctor_set(x_150, 0, x_108); -lean_ctor_set(x_150, 1, x_109); -x_151 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_151, 0, x_106); -lean_ctor_set(x_151, 1, x_107); -lean_ctor_set(x_151, 2, x_150); -x_152 = lean_st_ref_set(x_2, x_151, x_11); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_154 = x_152; -} else { - lean_dec_ref(x_152); - x_154 = lean_box(0); -} -x_155 = lean_box(0); -if (lean_is_scalar(x_154)) { - x_156 = lean_alloc_ctor(0, 2, 0); -} else { - x_156 = x_154; -} -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_153); -return x_156; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar___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_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = l_Lean_Expr_isApp(x_1); -if (x_2 == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; -x_4 = l_Lean_Expr_getAppFn(x_1); -switch (lean_obj_tag(x_4)) { -case 1: -{ -lean_object* x_5; -x_5 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_5, 0, x_4); -return x_5; -} -case 4: -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -x_7 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames; -x_8 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_7, x_6); -lean_dec(x_6); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_4); -return x_9; -} -else -{ -lean_object* x_10; -lean_dec(x_4); -x_10 = lean_box(0); -return x_10; -} -} -default: -{ -lean_object* x_11; -lean_dec(x_4); -x_11 = lean_box(0); -return x_11; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_1); -lean_dec(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__1(size_t 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, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = lean_usize_dec_lt(x_2, x_1); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_3); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_uget(x_3, x_2); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_array_uset(x_3, x_2, x_12); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_14 = l_Lean_Meta_isTypeFormer(x_11, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; size_t x_17; size_t 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(x_14); -x_17 = 1; -x_18 = lean_usize_add(x_2, x_17); -x_19 = lean_array_uset(x_13, x_2, x_15); -x_2 = x_18; -x_3 = x_19; -x_8 = x_16; -goto _start; -} -else -{ -uint8_t x_21; -lean_dec(x_13); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ -return x_14; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_14); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__2(size_t 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, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = lean_usize_dec_lt(x_2, x_1); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_3); -lean_ctor_set(x_10, 1, x_8); -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_array_uget(x_3, x_2); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_array_uset(x_3, x_2, x_12); -x_14 = l_Lean_Expr_fvarId_x21(x_11); -lean_dec(x_11); -lean_inc(x_4); -x_15 = l_Lean_FVarId_getDecl(x_14, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_LocalDecl_binderInfo(x_16); -lean_dec(x_16); -x_19 = lean_box(x_18); -if (lean_obj_tag(x_19) == 3) -{ -size_t x_20; size_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_20 = 1; -x_21 = lean_usize_add(x_2, x_20); -x_22 = 1; -x_23 = lean_box(x_22); -x_24 = lean_array_uset(x_13, x_2, x_23); -x_2 = x_21; -x_3 = x_24; -x_8 = x_17; -goto _start; -} -else -{ -size_t x_26; size_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_19); -x_26 = 1; -x_27 = lean_usize_add(x_2, x_26); -x_28 = 0; -x_29 = lean_box(x_28); -x_30 = lean_array_uset(x_13, x_2, x_29); -x_2 = x_27; -x_3 = x_30; -x_8 = x_17; -goto _start; -} -} -else -{ -uint8_t x_32; -lean_dec(x_13); -lean_dec(x_4); -x_32 = !lean_is_exclusive(x_15); -if (x_32 == 0) -{ -return x_15; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_15, 0); -x_34 = lean_ctor_get(x_15, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_15); -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; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_array_size(x_1); -x_9 = 0; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__1(x_8, x_9, x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__2(x_8, x_9, x_1, x_3, x_4, x_5, x_6, x_12); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_11); -lean_ctor_set(x_13, 0, x_16); -return x_13; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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(0, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_11); -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 -{ -uint8_t x_21; -lean_dec(x_11); -x_21 = !lean_is_exclusive(x_13); -if (x_21 == 0) -{ -return x_13; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_10); -if (x_25 == 0) -{ -return x_10; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_10, 0); -x_27 = lean_ctor_get(x_10, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_10); -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; -} -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1___boxed), 7, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo(lean_object* x_1, 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(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_8 = lean_infer_type(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; uint8_t x_13; lean_object* x_14; -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(x_8); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_2); -x_12 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1; -x_13 = 0; -x_14 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_arrowDomainsN___spec__6___rarg(x_9, x_11, x_12, x_13, x_3, x_4, x_5, x_6, x_10); -return x_14; -} -else -{ -uint8_t x_15; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_15 = !lean_is_exclusive(x_8); -if (x_15 == 0) -{ -return x_8; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_8); -x_18 = lean_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_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___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) { -_start: -{ -size_t x_9; size_t x_10; lean_object* x_11; -x_9 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_10 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__1(x_9, x_10, x_3, x_4, x_5, x_6, x_7, x_8); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___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) { -_start: -{ -size_t x_9; size_t x_10; lean_object* x_11; -x_9 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_10 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___spec__2(x_9, x_10, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___lambda__1(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_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_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) { -_start: -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 5); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -lean_inc(x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_8); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_array_set(x_2, x_1, x_3); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___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_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_4, 1); -x_16 = lean_nat_dec_lt(x_6, x_15); -if (x_16 == 0) -{ -lean_object* x_17; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_5); -lean_ctor_set(x_17, 1, x_14); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; -x_36 = lean_array_get_size(x_5); -x_37 = lean_nat_dec_lt(x_6, x_36); -lean_dec(x_36); -x_38 = lean_array_get_size(x_2); -x_39 = lean_nat_dec_lt(x_6, x_38); -lean_dec(x_38); -x_40 = lean_array_get_size(x_1); -x_41 = lean_nat_dec_lt(x_6, x_40); -lean_dec(x_40); -if (x_37 == 0) -{ -lean_object* x_112; lean_object* x_113; -x_112 = l_Lean_instInhabitedExpr; -x_113 = l_outOfBounds___rarg(x_112); -x_42 = x_113; -goto block_111; -} -else -{ -lean_object* x_114; -x_114 = lean_array_fget(x_5, x_6); -x_42 = x_114; -goto block_111; -} -block_35: -{ -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 0); -lean_dec(x_21); -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -lean_dec(x_19); -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_ctor_get(x_19, 0); -lean_inc(x_24); -lean_dec(x_19); -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; -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_18, 1); -lean_inc(x_26); -lean_dec(x_18); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_4, 2); -x_29 = lean_nat_add(x_6, x_28); -lean_dec(x_6); -x_5 = x_27; -x_6 = x_29; -x_7 = lean_box(0); -x_8 = lean_box(0); -x_14 = x_26; -goto _start; -} -} -else -{ -uint8_t x_31; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -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; -} -} -} -block_111: -{ -uint8_t x_43; uint8_t x_44; -x_43 = l_Lean_Expr_hasLooseBVars(x_42); -if (x_39 == 0) -{ -uint8_t x_108; -x_108 = 0; -x_44 = x_108; -goto block_107; -} -else -{ -lean_object* x_109; uint8_t x_110; -x_109 = lean_array_fget(x_2, x_6); -x_110 = lean_unbox(x_109); -lean_dec(x_109); -x_44 = x_110; -goto block_107; -} -block_107: -{ -uint8_t x_45; -if (x_41 == 0) -{ -uint8_t x_104; -x_104 = 0; -x_45 = x_104; -goto block_103; -} -else -{ -lean_object* x_105; uint8_t x_106; -x_105 = lean_array_fget(x_1, x_6); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -x_45 = x_106; -goto block_103; -} -block_103: -{ -if (x_43 == 0) -{ -uint8_t x_46; -x_46 = l_Lean_Expr_hasMVar(x_42); -if (x_46 == 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; -x_47 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern(x_42); -x_48 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_47, x_9, x_10, x_11, x_12, x_13, x_14); -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(x_48); -x_51 = lean_ctor_get(x_49, 0); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_ctor_get(x_4, 2); -x_53 = lean_nat_add(x_6, x_52); -lean_dec(x_6); -x_5 = x_51; -x_6 = x_53; -x_7 = lean_box(0); -x_8 = lean_box(0); -x_14 = x_50; -goto _start; -} -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_dec(x_42); -x_55 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_56 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_55, x_9, x_10, x_11, x_12, x_13, x_14); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_57, 0); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_ctor_get(x_4, 2); -x_61 = lean_nat_add(x_6, x_60); -lean_dec(x_6); -x_5 = x_59; -x_6 = x_61; -x_7 = lean_box(0); -x_8 = lean_box(0); -x_14 = x_58; -goto _start; -} -} -else -{ -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_42, 0); -lean_inc(x_63); -x_64 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_foundBVar(x_63, x_9, x_10, x_11, x_12, x_13, x_14); -if (x_44 == 0) -{ -if (x_45 == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_63, x_9, x_10, x_11, x_12, x_13, x_65); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_42, x_9, x_10, x_11, x_12, x_13, x_67); -x_18 = x_68; -goto block_35; -} -else -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_64, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (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_64, 1); -lean_inc(x_71); -lean_dec(x_64); -x_72 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_63, x_9, x_10, x_11, x_12, x_13, x_71); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_42, x_9, x_10, x_11, x_12, x_13, x_73); -x_18 = x_74; -goto block_35; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_63); -lean_dec(x_42); -x_75 = lean_ctor_get(x_64, 1); -lean_inc(x_75); -lean_dec(x_64); -x_76 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_77 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_76, x_9, x_10, x_11, x_12, x_13, x_75); -x_18 = x_77; -goto block_35; -} -} -} -else -{ -lean_object* x_78; uint8_t x_79; -x_78 = lean_ctor_get(x_64, 0); -lean_inc(x_78); -x_79 = lean_unbox(x_78); -lean_dec(x_78); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_64, 1); -lean_inc(x_80); -lean_dec(x_64); -x_81 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveBVar(x_63, x_9, x_10, x_11, x_12, x_13, x_80); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); -x_83 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_42, x_9, x_10, x_11, x_12, x_13, x_82); -x_18 = x_83; -goto block_35; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_63); -lean_dec(x_42); -x_84 = lean_ctor_get(x_64, 1); -lean_inc(x_84); -lean_dec(x_64); -x_85 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_86 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_85, x_9, x_10, x_11, x_12, x_13, x_84); -x_18 = x_86; -goto block_35; -} -} -} -else -{ -if (x_44 == 0) -{ -if (x_45 == 0) -{ -lean_object* x_87; -x_87 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_42); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_42); -x_88 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_89 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_88, x_9, x_10, x_11, x_12, x_13, x_14); -x_18 = x_89; -goto block_35; -} -else -{ -uint8_t x_90; lean_object* x_91; -lean_dec(x_87); -x_90 = 0; -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_91 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(x_42, x_90, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_94 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_92, x_9, x_10, x_11, x_12, x_13, x_93); -x_18 = x_94; -goto block_35; -} -else -{ -uint8_t x_95; -lean_dec(x_5); -x_95 = !lean_is_exclusive(x_91); -if (x_95 == 0) -{ -x_18 = x_91; -goto block_35; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -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(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -x_18 = x_98; -goto block_35; -} -} -} -} -else -{ -lean_object* x_99; lean_object* x_100; -lean_dec(x_42); -x_99 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_100 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_99, x_9, x_10, x_11, x_12, x_13, x_14); -x_18 = x_100; -goto block_35; -} -} -else -{ -lean_object* x_101; lean_object* x_102; -lean_dec(x_42); -x_101 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare; -x_102 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_6, x_5, x_101, x_9, x_10, x_11, x_12, x_13, x_14); -x_18 = x_102; -goto block_35; -} -} -} -} -} -} -} -} -} -static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_instMonadMetaM; -x_2 = l_ReaderT_instMonad___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1; -x_2 = l_Lean_instInhabitedExpr; -x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__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; lean_object* x_10; -x_8 = l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2; -x_9 = lean_panic_fn(x_8, x_1); -x_10 = lean_apply_6(x_9, x_2, x_3, x_4, x_5, x_6, x_7); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_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) { -_start: -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 5); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -lean_inc(x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_8); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid pattern, (non-forbidden) application expected", 53, 53); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("assertion violation: ", 21, 21); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("f.isConst || f.isFVar\n ", 24, 24); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.TheoremPatterns.0.Lean.Meta.Grind.NormalizePattern.go", 85, 85); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6; -x_3 = lean_unsigned_to_nat(126u); -x_4 = lean_unsigned_to_nat(2u); -x_5 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(x_1); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_1); -x_10 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; -x_11 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(x_10, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; uint8_t x_48; -x_12 = lean_ctor_get(x_9, 0); -lean_inc(x_12); -lean_dec(x_9); -x_48 = l_Lean_Expr_isConst(x_12); -if (x_48 == 0) -{ -uint8_t x_49; -x_49 = l_Lean_Expr_isFVar(x_12); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -lean_dec(x_12); -lean_dec(x_1); -x_50 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7; -x_51 = l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(x_50, x_3, x_4, x_5, x_6, x_7, x_8); -return x_51; -} -else -{ -lean_object* x_52; -x_52 = lean_box(0); -x_13 = x_52; -goto block_47; -} -} -else -{ -lean_object* x_53; -x_53 = lean_box(0); -x_13 = x_53; -goto block_47; -} -block_47: -{ -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_dec(x_13); -lean_inc(x_12); -x_14 = l_Lean_Expr_toHeadIndex(x_12); -x_15 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_14, x_3, x_4, x_5, x_6, x_7, x_8); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_17); -x_19 = l_Lean_Meta_Grind_ppPattern___closed__5; -lean_inc(x_18); -x_20 = lean_mk_array(x_18, x_19); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_sub(x_18, x_21); -lean_dec(x_18); -x_23 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_20, x_22); -x_24 = lean_array_get_size(x_23); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_24); -lean_inc(x_12); -x_25 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo(x_12, x_24, x_4, x_5, x_6, x_7, x_16); -if (lean_obj_tag(x_25) == 0) -{ -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_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_24); -lean_ctor_set(x_30, 2, x_21); -x_31 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2(x_28, x_29, x_30, x_30, x_23, x_17, lean_box(0), lean_box(0), x_3, x_4, x_5, x_6, x_7, x_27); -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -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; lean_object* x_34; -x_33 = lean_ctor_get(x_31, 0); -x_34 = l_Lean_mkAppN(x_12, x_33); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_34); -return x_31; -} -else -{ -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_dec(x_31); -x_37 = l_Lean_mkAppN(x_12, x_35); -lean_dec(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_39; -lean_dec(x_12); -x_39 = !lean_is_exclusive(x_31); -if (x_39 == 0) -{ -return x_31; -} -else -{ -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_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; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_43 = !lean_is_exclusive(x_25); -if (x_43 == 0) -{ -return x_25; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_25, 0); -x_45 = lean_ctor_get(x_25, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_25); -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; -} -} -} -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid pattern, it does not have pattern variables", 51, 51); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(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: -{ -if (x_2 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_box(0); -x_10 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = l_Lean_Expr_hasLooseBVars(x_1); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_1); -x_12 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2; -x_13 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(x_12, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_box(0); -x_19 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8); -return x_19; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___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: -{ -lean_object* x_15; -x_15 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___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, x_14); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_15; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_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) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_2); -lean_dec(x_2); -x_10 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___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) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_9 = l_List_reverse___rarg(x_2); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_1); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_1, 0); -x_13 = lean_ctor_get(x_1, 1); -x_14 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_15 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; -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(x_15); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_16); -{ -lean_object* _tmp_0 = x_13; -lean_object* _tmp_1 = x_1; -lean_object* _tmp_7 = x_17; -x_1 = _tmp_0; -x_2 = _tmp_1; -x_8 = _tmp_7; -} -goto _start; -} -else -{ -uint8_t x_19; -lean_free_object(x_1); -lean_dec(x_13); -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_is_exclusive(x_15); -if (x_19 == 0) -{ -return x_15; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get(x_15, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_15); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -else -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_1, 0); -x_24 = lean_ctor_get(x_1, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_1); -x_25 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_26 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go(x_23, x_25, x_3, x_4, x_5, x_6, x_7, x_8); -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(x_26); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_2); -x_1 = x_24; -x_2 = x_29; -x_8 = x_28; -goto _start; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_24); -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_31 = lean_ctor_get(x_26, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_33 = x_26; -} else { - lean_dec_ref(x_26); - x_33 = lean_box(0); -} -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(1, 2, 0); -} else { - x_34 = x_33; -} -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_array_mk(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_NormalizePattern_main___closed__1; -x_2 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3; -x_3 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 2, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_box(0); -x_8 = l_Lean_Meta_Grind_NormalizePattern_main___closed__2; -x_9 = lean_st_mk_ref(x_8, x_6); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -x_13 = l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(x_1, x_7, x_11, x_2, x_3, x_4, x_5, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_st_ref_get(x_11, x_15); -lean_dec(x_11); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_array_to_list(x_19); -lean_ctor_set(x_9, 1, x_20); -lean_ctor_set(x_9, 0, x_14); -lean_ctor_set(x_16, 0, x_9); -return x_16; -} -else -{ -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_16, 0); -x_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_16); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_array_to_list(x_23); -lean_ctor_set(x_9, 1, x_24); -lean_ctor_set(x_9, 0, x_14); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_9); -lean_ctor_set(x_25, 1, x_22); -return x_25; -} -} -else -{ -uint8_t x_26; -lean_free_object(x_9); -lean_dec(x_11); -x_26 = !lean_is_exclusive(x_13); -if (x_26 == 0) -{ -return x_13; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_13); -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; -} -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_9, 0); -x_31 = lean_ctor_get(x_9, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_9); -lean_inc(x_30); -x_32 = l_List_mapM_loop___at_Lean_Meta_Grind_NormalizePattern_main___spec__1(x_1, x_7, x_30, x_2, x_3, x_4, x_5, x_31); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 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_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(x_32); -x_35 = lean_st_ref_get(x_30, x_34); -lean_dec(x_30); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_38 = x_35; -} else { - lean_dec_ref(x_35); - x_38 = lean_box(0); -} -x_39 = lean_ctor_get(x_36, 0); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_array_to_list(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_33); -lean_ctor_set(x_41, 1, x_40); -if (lean_is_scalar(x_38)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_38; -} -lean_ctor_set(x_42, 0, x_41); -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_dec(x_30); -x_43 = lean_ctor_get(x_32, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_32, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_45 = x_32; -} else { - lean_dec_ref(x_32); - x_45 = lean_box(0); -} -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); -} else { - x_46 = x_45; -} -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} -} -} -} -static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___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_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5; -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; -} -} -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -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_6, 6); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_st_ref_take(x_7, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = !lean_is_exclusive(x_11); -if (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; uint8_t x_23; -x_14 = lean_ctor_get(x_11, 0); -x_15 = lean_ctor_get(x_11, 4); -lean_dec(x_15); -x_16 = l_Lean_ScopedEnvExtension_addCore___rarg(x_14, x_1, x_2, x_3, x_9); -x_17 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1; -lean_ctor_set(x_11, 4, x_17); -lean_ctor_set(x_11, 0, x_16); -x_18 = lean_st_ref_set(x_7, x_11, x_12); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_st_ref_take(x_5, x_19); -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(x_20); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_21, 1); -lean_dec(x_24); -x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2; -lean_ctor_set(x_21, 1, x_25); -x_26 = lean_st_ref_set(x_5, x_21, x_22); -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 -{ -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_33 = lean_ctor_get(x_21, 0); -x_34 = lean_ctor_get(x_21, 2); -x_35 = lean_ctor_get(x_21, 3); -x_36 = lean_ctor_get(x_21, 4); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_21); -x_37 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2; -x_38 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_37); -lean_ctor_set(x_38, 2, x_34); -lean_ctor_set(x_38, 3, x_35); -lean_ctor_set(x_38, 4, x_36); -x_39 = lean_st_ref_set(x_5, x_38, x_22); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -x_42 = lean_box(0); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -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; 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; -x_44 = lean_ctor_get(x_11, 0); -x_45 = lean_ctor_get(x_11, 1); -x_46 = lean_ctor_get(x_11, 2); -x_47 = lean_ctor_get(x_11, 3); -x_48 = lean_ctor_get(x_11, 5); -x_49 = lean_ctor_get(x_11, 6); -x_50 = lean_ctor_get(x_11, 7); -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_dec(x_11); -x_51 = l_Lean_ScopedEnvExtension_addCore___rarg(x_44, x_1, x_2, x_3, x_9); -x_52 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1; -x_53 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_45); -lean_ctor_set(x_53, 2, x_46); -lean_ctor_set(x_53, 3, x_47); -lean_ctor_set(x_53, 4, x_52); -lean_ctor_set(x_53, 5, x_48); -lean_ctor_set(x_53, 6, x_49); -lean_ctor_set(x_53, 7, x_50); -x_54 = lean_st_ref_set(x_7, x_53, x_12); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_st_ref_take(x_5, x_55); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_57, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_57, 2); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 3); -lean_inc(x_61); -x_62 = lean_ctor_get(x_57, 4); -lean_inc(x_62); -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); - x_63 = x_57; -} else { - lean_dec_ref(x_57); - x_63 = lean_box(0); -} -x_64 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2; -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 5, 0); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_59); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set(x_65, 2, x_60); -lean_ctor_set(x_65, 3, x_61); -lean_ctor_set(x_65, 4, x_62); -x_66 = lean_st_ref_set(x_5, x_65, x_58); -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); -} -x_69 = lean_box(0); -if (lean_is_scalar(x_68)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_68; -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_67); -return x_70; -} -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -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; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Meta_Grind_ppPattern(x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = l_Lean_Meta_Grind_ppPattern(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = lean_ctor_get(x_1, 1); -lean_ctor_set(x_1, 1, x_2); -{ -lean_object* _tmp_0 = x_5; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_1, 0); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -lean_inc(x_7); -lean_dec(x_1); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_2); -x_1 = x_8; -x_2 = x_9; -goto _start; -} -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_theoremPatternsExt; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_12 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_12, 0, x_1); -x_13 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_13, 0, x_2); -lean_ctor_set(x_13, 1, x_3); -lean_ctor_set(x_13, 2, x_4); -lean_ctor_set(x_13, 3, x_5); -lean_ctor_set(x_13, 4, x_12); -x_14 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1; -x_15 = 0; -x_16 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1(x_14, x_13, x_15, x_7, x_8, x_9, x_10, x_11); -return x_16; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("`", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_addTheoremPattern___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("` is not a theorem, you cannot assign patterns to non-theorems for the `grind` tactic", 85, 85); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_addTheoremPattern___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("pattern", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1; -x_2 = l_Lean_Meta_Grind_addTheoremPattern___closed__5; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(": ", 2, 2); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_addTheoremPattern___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_addTheoremPattern___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern(lean_object* x_1, lean_object* x_2, 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_inc(x_1); -x_9 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 2) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_14, x_15); -lean_inc(x_1); -x_17 = l_Lean_Expr_const___override(x_1, x_16); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_18 = l_Lean_Meta_Grind_NormalizePattern_main(x_3, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t 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(x_18); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_22 = lean_ctor_get(x_19, 0); -x_23 = lean_ctor_get(x_19, 1); -x_24 = l_Lean_Meta_Grind_addTheoremPattern___closed__6; -x_25 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_24, x_4, x_5, x_6, x_7, x_20); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_unbox(x_26); -lean_dec(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_free_object(x_19); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_box(0); -x_30 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1(x_1, x_17, x_2, x_22, x_23, x_29, x_4, x_5, x_6, x_7, x_28); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -return x_30; -} -else -{ -uint8_t x_31; -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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_32 = lean_ctor_get(x_25, 1); -x_33 = lean_ctor_get(x_25, 0); -lean_dec(x_33); -lean_inc(x_1); -x_34 = l_Lean_MessageData_ofName(x_1); -x_35 = l_Lean_Meta_Grind_ppPattern___closed__4; -lean_ctor_set_tag(x_25, 7); -lean_ctor_set(x_25, 1, x_34); -lean_ctor_set(x_25, 0, x_35); -x_36 = l_Lean_Meta_Grind_addTheoremPattern___closed__8; -lean_ctor_set_tag(x_19, 7); -lean_ctor_set(x_19, 1, x_36); -lean_ctor_set(x_19, 0, x_25); -lean_inc(x_22); -x_37 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__2(x_22, x_15); -x_38 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__3(x_37, x_15); -x_39 = l_Lean_MessageData_ofList(x_38); -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_19); -lean_ctor_set(x_40, 1, x_39); -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_35); -x_42 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_24, x_41, x_4, x_5, x_6, x_7, x_32); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1(x_1, x_17, x_2, x_22, x_23, x_43, x_4, x_5, x_6, x_7, x_44); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_46 = lean_ctor_get(x_25, 1); -lean_inc(x_46); -lean_dec(x_25); -lean_inc(x_1); -x_47 = l_Lean_MessageData_ofName(x_1); -x_48 = l_Lean_Meta_Grind_ppPattern___closed__4; -x_49 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Meta_Grind_addTheoremPattern___closed__8; -lean_ctor_set_tag(x_19, 7); -lean_ctor_set(x_19, 1, x_50); -lean_ctor_set(x_19, 0, x_49); -lean_inc(x_22); -x_51 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__2(x_22, x_15); -x_52 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__3(x_51, x_15); -x_53 = l_Lean_MessageData_ofList(x_52); -x_54 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_54, 0, x_19); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_48); -x_56 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_24, x_55, x_4, x_5, x_6, x_7, x_46); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1(x_1, x_17, x_2, x_22, x_23, x_57, x_4, x_5, x_6, x_7, x_58); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_57); -return x_59; -} -} -} -else -{ -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_60 = lean_ctor_get(x_19, 0); -x_61 = lean_ctor_get(x_19, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_19); -x_62 = l_Lean_Meta_Grind_addTheoremPattern___closed__6; -x_63 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_62, x_4, x_5, x_6, x_7, x_20); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -lean_dec(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_box(0); -x_68 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1(x_1, x_17, x_2, x_60, x_61, x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -return x_68; -} -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; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_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); -} -lean_inc(x_1); -x_71 = l_Lean_MessageData_ofName(x_1); -x_72 = l_Lean_Meta_Grind_ppPattern___closed__4; -if (lean_is_scalar(x_70)) { - x_73 = lean_alloc_ctor(7, 2, 0); -} else { - x_73 = x_70; - lean_ctor_set_tag(x_73, 7); -} -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_Meta_Grind_addTheoremPattern___closed__8; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -lean_inc(x_60); -x_76 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__2(x_60, x_15); -x_77 = l_List_mapTR_loop___at_Lean_Meta_Grind_addTheoremPattern___spec__3(x_76, x_15); -x_78 = l_Lean_MessageData_ofList(x_77); -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_75); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_72); -x_81 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_62, x_80, x_4, x_5, x_6, x_7, x_69); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = l_Lean_Meta_Grind_addTheoremPattern___lambda__1(x_1, x_17, x_2, x_60, x_61, x_82, x_4, x_5, x_6, x_7, x_83); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_82); -return x_84; -} -} -} -else -{ -uint8_t x_85; -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_85 = !lean_is_exclusive(x_18); -if (x_85 == 0) -{ -return x_18; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_18, 0); -x_87 = lean_ctor_get(x_18, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_18); -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 -{ -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_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_89 = lean_ctor_get(x_9, 1); -lean_inc(x_89); -lean_dec(x_9); -x_90 = l_Lean_MessageData_ofName(x_1); -x_91 = l_Lean_Meta_Grind_addTheoremPattern___closed__2; -x_92 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -x_93 = l_Lean_Meta_Grind_addTheoremPattern___closed__4; -x_94 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -x_95 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_94, x_4, x_5, x_6, x_7, x_89); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_95; -} -} -else -{ -uint8_t x_96; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_96 = !lean_is_exclusive(x_9); -if (x_96 == 0) -{ -return x_9; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_9, 0); -x_98 = lean_ctor_get(x_9, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_9); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___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) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_3); -lean_dec(x_3); -x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremPattern___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_addTheoremPattern___lambda__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_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_12; -} -} -lean_object* initialize_Lean_HeadIndex(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Util_FoldConsts(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_InferType(uint8_t builtin, lean_object*); -static bool _G_initialized = false; -LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_TheoremPatterns(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_HeadIndex(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Util_FoldConsts(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_Basic(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Meta_InferType(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Meta_Grind_instInhabitedOrigin___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedOrigin___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedOrigin___closed__1); -l_Lean_Meta_Grind_instInhabitedOrigin = _init_l_Lean_Meta_Grind_instInhabitedOrigin(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedOrigin); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__3); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__4); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__5); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__6); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__7); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__8); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__9); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__10); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__11); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__12); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__13); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__14); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__15); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__16); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_51____closed__17); -l_Lean_Meta_Grind_instReprOrigin___closed__1 = _init_l_Lean_Meta_Grind_instReprOrigin___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_instReprOrigin___closed__1); -l_Lean_Meta_Grind_instReprOrigin = _init_l_Lean_Meta_Grind_instReprOrigin(); -lean_mark_persistent(l_Lean_Meta_Grind_instReprOrigin); -l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__1); -l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedTheoremPattern___closed__2); -l_Lean_Meta_Grind_instInhabitedTheoremPattern = _init_l_Lean_Meta_Grind_instInhabitedTheoremPattern(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedTheoremPattern); -l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1 = _init_l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__1); -l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2 = _init_l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2(); -lean_mark_persistent(l_panic___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__1___closed__2); -l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__1(); -l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__4___closed__2(); -l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1(); -lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__9___closed__1); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__1); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__2); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__3); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__4); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__5); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17___closed__6); -l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17 = _init_l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17(); -lean_mark_persistent(l_Lean_SMap_empty___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____spec__17); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____lambda__1___closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307____closed__7); -if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_TheoremPatterns___hyg_307_(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -l_Lean_Meta_Grind_theoremPatternsExt = lean_io_result_get_value(res); -lean_mark_persistent(l_Lean_Meta_Grind_theoremPatternsExt); -lean_dec_ref(res); -}l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__7); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__8); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__10); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__11); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__12); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__14); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__15); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__16); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__18); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames___closed__19); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_forbiddenDeclNames); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare___closed__3); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_dontCare); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_mkGroundPattern___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___lambda__1___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__1___closed__3); -l_Lean_Meta_Grind_ppPattern___closed__1 = _init_l_Lean_Meta_Grind_ppPattern___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__1); -l_Lean_Meta_Grind_ppPattern___closed__2 = _init_l_Lean_Meta_Grind_ppPattern___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__2); -l_Lean_Meta_Grind_ppPattern___closed__3 = _init_l_Lean_Meta_Grind_ppPattern___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__3); -l_Lean_Meta_Grind_ppPattern___closed__4 = _init_l_Lean_Meta_Grind_ppPattern___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__4); -l_Lean_Meta_Grind_ppPattern___closed__5 = _init_l_Lean_Meta_Grind_ppPattern___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__5); -l_Lean_Meta_Grind_ppPattern___closed__6 = _init_l_Lean_Meta_Grind_ppPattern___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__6); -l_Lean_Meta_Grind_ppPattern___closed__7 = _init_l_Lean_Meta_Grind_ppPattern___closed__7(); -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_ppPattern___closed__10 = _init_l_Lean_Meta_Grind_ppPattern___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__10); -l_Lean_Meta_Grind_ppPattern___closed__11 = _init_l_Lean_Meta_Grind_ppPattern___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_ppPattern___closed__11); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_getPatternFunInfo___closed__1); -l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__1); -l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___spec__3___closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__3); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__4); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__6); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__1); -l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_TheoremPatterns_0__Lean_Meta_Grind_NormalizePattern_go___closed__2); -l_Lean_Meta_Grind_NormalizePattern_main___closed__1 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__1); -l_Lean_Meta_Grind_NormalizePattern_main___closed__2 = _init_l_Lean_Meta_Grind_NormalizePattern_main___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_NormalizePattern_main___closed__2); -l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__1); -l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addTheoremPattern___spec__1___closed__2); -l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___lambda__1___closed__1); -l_Lean_Meta_Grind_addTheoremPattern___closed__1 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__1); -l_Lean_Meta_Grind_addTheoremPattern___closed__2 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__2); -l_Lean_Meta_Grind_addTheoremPattern___closed__3 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__3); -l_Lean_Meta_Grind_addTheoremPattern___closed__4 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__4); -l_Lean_Meta_Grind_addTheoremPattern___closed__5 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__5); -l_Lean_Meta_Grind_addTheoremPattern___closed__6 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__6); -l_Lean_Meta_Grind_addTheoremPattern___closed__7 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__7); -l_Lean_Meta_Grind_addTheoremPattern___closed__8 = _init_l_Lean_Meta_Grind_addTheoremPattern___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_addTheoremPattern___closed__8); -return lean_io_result_mk_ok(lean_box(0)); -} -#ifdef __cplusplus -} -#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c index b303c03e7d..89336ad917 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Types -// Imports: Lean.Util.ShareCommon Lean.HeadIndex Lean.Meta.Basic Lean.Meta.CongrTheorems Lean.Meta.AbstractNestedProofs Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.Util Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.Attr +// Imports: Init.Grind.Tactics Init.Data.Queue Lean.Util.ShareCommon Lean.HeadIndex Lean.Meta.Basic Lean.Meta.CongrTheorems Lean.Meta.AbstractNestedProofs Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.Util Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.EMatchTheorem #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,250 +13,313 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedMethods___closed__2; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedMethods; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27; +LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedENode___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqc_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_pushEq(lean_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_setENode___spec__1(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprENode; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachENode___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqv___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_throwError___at_Lean_Meta_Grind_getENode___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_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addNewFact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEqHEq___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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object*, 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_getTrueExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118____closed__4; +static size_t l_Lean_Meta_Grind_instInhabitedGoal___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTarget_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_abstractNestedProofs___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMethodsRef(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_getParentsAndReset___spec__1(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instBEqENodeKey(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_filterENodes___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1; uint64_t lean_uint64_of_nat(lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_getENodes___spec__4___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46; size_t lean_uint64_to_usize(uint64_t); uint64_t lean_uint64_lor(uint64_t, uint64_t); -LEAN_EXPORT size_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey_unsafe__1(lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr___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_instInhabitedGoal___closed__5; static lean_object* l_Lean_Meta_Grind_getENode___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode(lean_object*, lean_object*, 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_getMainDeclName___boxed(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27(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_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118_(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24; LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isCongruent(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEq___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_insertAtCollisionNodeAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr_unsafe__1___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44; LEAN_EXPORT uint64_t l_Lean_Meta_Grind_congrHash(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3; lean_object* l_Lean_Expr_bvar___override(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getFalseExpr___boxed(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_grind_debug_proofs; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent___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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8; LEAN_EXPORT 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_forEachENode(lean_object*, 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_propagateDown(lean_object*, 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___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(lean_object*, size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_forEachEqc(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Queue_enqueue___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey(lean_object*); -LEAN_EXPORT size_t l_Lean_Meta_Grind_alreadyInternalized_unsafe__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode(lean_object*, lean_object*, 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_traverse___at_Lean_Meta_Grind_registerParent___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19; lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17; +size_t lean_usize_of_nat(lean_object*); lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMethods___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedNewFact___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMainDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_mkHCongrWithArity___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getFalseExpr(lean_object*, lean_object*); -LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_x3f_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedMethods___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___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_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore___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_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1(lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Meta_Grind_hasSameType___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqCongrKey___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqCongrTheoremCacheKey___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8; -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(lean_object*, size_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(lean_object*, lean_object*, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqc___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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongrRoot(lean_object*, 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_grind_debug; LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_closeGoal___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRef_toMethods(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2; lean_object* l_Lean_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_AbstractNestedProofs_visit(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_propagateUp(lean_object*, 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_Meta_Grind_registerParent___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqTrue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot(lean_object*, 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_mkEqProof___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_Std_Queue_empty(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markTheoremInstance___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; uint8_t l_Lean_Expr_isLambda(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_getENodes___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___boxed(lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Meta_Grind_closeGoal___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEqCore___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_GoalM_run___rarg(lean_object*, 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_getFalseExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef_unsafe__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTarget_x3f(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33; lean_object* l_Lean_PersistentHashMap_isUnaryNode___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8(lean_object*, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instBEqPreInstance___lambda__1(lean_object*); static lean_object* l_Lean_Meta_Grind_getENode___closed__4; -LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_closeGoal___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_getRootENode___boxed(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_take(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqFalse___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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getParentsAndReset___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_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongrRoot___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_findAtAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getENode___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_filterENodes___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_unsafe__1(lean_object*); +static lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hasSameRoot(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2___boxed(lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getGeneration___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_RBNode_setBlack___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremInstance___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*); uint64_t lean_usize_to_uint64(size_t); lean_object* lean_nat_to_int(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqHEqProof(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_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__1; static lean_object* l_Lean_Meta_Grind_abstractNestedProofs___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachEqc___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_EXPORT lean_object* l_Lean_Meta_Grind_pushEqHEq(lean_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_getENodes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded(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_closeGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_getENodes___spec__4___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_closeGoal___spec__2(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_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_Lean_Meta_Grind_getConfig___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHCongrWithArityForConst_x3f(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_Meta_Grind_setENode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__8(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78_(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__6; +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode___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_getTrueExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___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_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_congrPlaceholderProof___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongruent___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Meta_Grind_closeGoal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMainDeclName(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21; static lean_object* l_Lean_Meta_Grind_canon___closed__3; -LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20; +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_getENodes___spec__3(size_t, size_t, lean_object*); +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableENodeKey(lean_object*); LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_mkHCongrWithArity___spec__5(lean_object*, lean_object*); -LEAN_EXPORT size_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRef_toMethods_unsafe__1(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr___boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13; static size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqc(lean_object*, 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_getMethodsRef___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_congrHash___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEqTrue(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_Meta_Grind_instBEqCongrTheoremCacheKey(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity(lean_object*, 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_getEqcs___boxed(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_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___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_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_canon___closed__1; static lean_object* l_Lean_Meta_Grind_congrHash___closed__1; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getGeneration(lean_object*, 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_instBEqENodeKey___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHCongrWithArity(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_alreadyInternalized(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_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(lean_object*, size_t, size_t); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(lean_object*, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongruent_go___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNext___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_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_getENodes___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMethods(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMainDeclName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_filterENodes(lean_object*, 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_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getParents(lean_object*, 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_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot___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_findAux___at_Lean_Meta_Grind_registerParent___spec__2(lean_object*, size_t, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_Grind_getENodes___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___closed__1; static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__1; lean_object* l_Lean_Expr_appFn_x21(lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1(lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_hasSameType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHEqProof___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_instHashableCongrKey___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(lean_object*); lean_object* l_Lean_Meta_Grind_Canon_canonImpl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9(lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markAsInconsistent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFalseElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -270,106 +333,133 @@ LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableCongrKey(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENodes(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_copyParentsTo(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_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instReprENode___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_shareCommon___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_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__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_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(lean_object*, lean_object*); +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118____closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__2(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_GoalM_run_x27___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_admit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT size_t l_Lean_Meta_Grind_setENode_unsafe__1(lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_abstractNestedProofs___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_unsafe__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23; +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(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*); uint8_t l_Lean_Expr_isFalse(lean_object*); +lean_object* lean_grind_mk_heq_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 uint64_t l_Lean_Meta_Grind_congrHash_go(lean_object*, lean_object*, uint64_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedMethods___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__1___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; +LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, 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_addNewFact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_congrPlaceholderProof___closed__3; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(lean_object*, size_t, lean_object*); lean_object* lean_string_length(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_abstractNestedProofs___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_setENode_unsafe__2___rarg(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqFalseProof(lean_object*, 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_shareCommon(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_instBEqPreInstance(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_mkHCongrWithArity___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremInstance(lean_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_Types_0__Lean_Meta_Grind_MethodsRef_toMethods___boxed(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInconsistent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedMethods___closed__1; lean_object* l_Lean_Meta_isConstructorAppCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqc_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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent(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_Meta_Grind_isSameExpr(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_congrPlaceholderProof___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45; lean_object* l_Lean_indentExpr(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg___boxed(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_instInhabitedENode; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markAsInconsistent(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_registerParent___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance(lean_object*, lean_object*, 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_mkHCongrWithArity___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_instBEqCongrKey(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(lean_object*, size_t, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqv(lean_object*, lean_object*, 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_pushEqFalse___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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48; lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_3036_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqTrueProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isRoot___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_setENode___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_copyParentsTo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_left(uint64_t, uint64_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushHEq(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4; lean_object* l___private_Init_Data_Array_QSort_0__Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_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_alreadyInternalized_unsafe__1___boxed(lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode(lean_object*, 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_getTrueExpr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachENode___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_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10; LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_Grind_getENodes___spec__4___lambda__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42; size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1___boxed(lean_object*); lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getParentsAndReset(lean_object*, 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_isRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -379,67 +469,78 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot_x3f___boxed(lean_object*, lea LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqFalse(lean_object*, 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_pushEqFalse(lean_object*, lean_object*, 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_congrHash_go___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17; +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedNewFact; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26; static lean_object* l_Lean_Meta_Grind_getENode___closed__1; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__9; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration(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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51; +static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushHEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachEqc___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_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_Grind_getENodes___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__6(lean_object*, size_t, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hasSameRoot___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRef_toMethods_unsafe__1___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_118____closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1(lean_object*, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1(lean_object*); static lean_object* l_Lean_Meta_Grind_congrHash___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqTrue(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_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getEqcs___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_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_getENodes___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEqTrue___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_instBEqPreInstance___lambda__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon(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_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__5; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_ShareCommon_objectFactory; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr(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_getRootENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_state_sharecommon(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_mkHCongrWithArity___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_78____closed__7; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___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_Meta_TransparencyMode_toUInt64(uint8_t); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_congrPlaceholderProof; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(lean_object*, size_t, size_t, size_t, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11(lean_object*, size_t, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRefPointed; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f_unsafe__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(lean_object*, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_canon___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__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_Lean_Meta_Grind_getConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__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_Lean_Meta_Grind_getFalseExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, 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_instHashableENodeKey___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT size_t l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey_unsafe__1(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -449,19 +550,21 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_ins LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getEqcs___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_PersistentHashMap_findAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__6___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInconsistent(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_instInhabitedGoal; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey_unsafe__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(lean_object*, size_t, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey_unsafe__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Option_repr___at___private_Lean_Meta_Transform_0__Lean_reprTransformStep____x40_Lean_Meta_Transform___hyg_46____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_mkHCongrWithArity___spec__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -850,6 +953,49 @@ _start: return lean_box(0); } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig___rarg(lean_object* x_1, 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 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_getConfig___rarg___boxed), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig___rarg___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_getConfig___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_getConfig(x_1); +lean_dec(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr___rarg(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: { @@ -1047,6 +1193,71 @@ lean_dec(x_2); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg(lean_object* x_1, 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; uint8_t x_9; +x_8 = l_Lean_Meta_Grind_getConfig___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +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); +x_11 = lean_ctor_get(x_10, 2); +lean_inc(x_11); +lean_dec(x_10); +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); +x_14 = lean_ctor_get(x_12, 2); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_alloc_ctor(0, 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_Meta_Grind_getMaxGeneration(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_getMaxGeneration___rarg___boxed), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg___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_getMaxGeneration___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_getMaxGeneration(x_1); +lean_dec(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_Grind_abstractNestedProofs___closed__1() { _start: { @@ -1389,9 +1600,10 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_Grind_canon___closed__2; -x_2 = lean_alloc_ctor(0, 2, 0); +x_2 = lean_alloc_ctor(0, 3, 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); return x_2; } } @@ -1679,6 +1891,106 @@ lean_dec(x_2); return x_10; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_11; +x_10 = l_Lean_Meta_Grind_getTrueExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_12); +lean_dec(x_12); +x_14 = lean_box(x_13); +lean_ctor_set(x_10, 0, x_14); +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_15); +lean_dec(x_15); +x_18 = lean_box(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_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr___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: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_isTrueExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_11; +x_10 = l_Lean_Meta_Grind_getFalseExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_12); +lean_dec(x_12); +x_14 = lean_box(x_13); +lean_ctor_set(x_10, 0, x_14); +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_15); +lean_dec(x_15); +x_18 = lean_box(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_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr___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: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_isFalseExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +lean_dec(x_1); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_mkHCongrWithArity___spec__3(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -3083,7 +3395,7 @@ x_1 = l_Lean_Meta_Grind_instInhabitedENode___closed__2; return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1() { _start: { lean_object* x_1; @@ -3091,29 +3403,29 @@ x_1 = lean_mk_string_unchecked("self", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3() { _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_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2; +x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2; x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4() { _start: { lean_object* x_1; @@ -3121,29 +3433,29 @@ x_1 = lean_mk_string_unchecked(" := ", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3; -x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3; +x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5; x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -3152,7 +3464,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8() { _start: { lean_object* x_1; @@ -3160,17 +3472,17 @@ x_1 = lean_mk_string_unchecked(",", 1, 1); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10() { _start: { lean_object* x_1; @@ -3178,17 +3490,17 @@ x_1 = lean_mk_string_unchecked("next", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12() { _start: { lean_object* x_1; @@ -3196,17 +3508,17 @@ x_1 = lean_mk_string_unchecked("root", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14() { _start: { lean_object* x_1; @@ -3214,17 +3526,17 @@ x_1 = lean_mk_string_unchecked("cgRoot", 6, 6); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -3233,7 +3545,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17() { _start: { lean_object* x_1; @@ -3241,17 +3553,17 @@ x_1 = lean_mk_string_unchecked("target\?", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19() { _start: { lean_object* x_1; lean_object* x_2; @@ -3260,7 +3572,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20() { _start: { lean_object* x_1; @@ -3268,17 +3580,17 @@ x_1 = lean_mk_string_unchecked("proof\?", 6, 6); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22() { _start: { lean_object* x_1; @@ -3286,17 +3598,17 @@ x_1 = lean_mk_string_unchecked("flipped", 7, 7); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24() { _start: { lean_object* x_1; @@ -3304,17 +3616,17 @@ x_1 = lean_mk_string_unchecked("size", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26() { _start: { lean_object* x_1; @@ -3322,17 +3634,17 @@ x_1 = lean_mk_string_unchecked("interpreted", 11, 11); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -3341,7 +3653,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29() { _start: { lean_object* x_1; @@ -3349,17 +3661,17 @@ x_1 = lean_mk_string_unchecked("ctor", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31() { _start: { lean_object* x_1; @@ -3367,17 +3679,17 @@ x_1 = lean_mk_string_unchecked("hasLambdas", 10, 10); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33() { _start: { lean_object* x_1; lean_object* x_2; @@ -3386,7 +3698,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34() { _start: { lean_object* x_1; @@ -3394,17 +3706,17 @@ x_1 = lean_mk_string_unchecked("heqProofs", 9, 9); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36() { _start: { lean_object* x_1; lean_object* x_2; @@ -3413,7 +3725,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37() { _start: { lean_object* x_1; @@ -3421,17 +3733,17 @@ x_1 = lean_mk_string_unchecked("idx", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39() { _start: { lean_object* x_1; lean_object* x_2; @@ -3440,7 +3752,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40() { _start: { lean_object* x_1; @@ -3448,17 +3760,17 @@ x_1 = lean_mk_string_unchecked("generation", 10, 10); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42() { _start: { lean_object* x_1; @@ -3466,17 +3778,17 @@ x_1 = lean_mk_string_unchecked("mt", 2, 2); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44() { _start: { lean_object* x_1; lean_object* x_2; @@ -3485,7 +3797,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45() { _start: { lean_object* x_1; @@ -3493,35 +3805,35 @@ x_1 = lean_mk_string_unchecked("{ ", 2, 2); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45; x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49() { _start: { lean_object* x_1; @@ -3529,17 +3841,17 @@ x_1 = lean_mk_string_unchecked(" }", 2, 2); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51() { _start: { lean_object* x_1; @@ -3547,17 +3859,17 @@ x_1 = lean_mk_string_unchecked("false", 5, 5); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53() { _start: { lean_object* x_1; @@ -3565,17 +3877,17 @@ x_1 = lean_mk_string_unchecked("true", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53; +x_1 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 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; uint8_t 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; uint8_t x_79; uint8_t x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 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; @@ -3583,7 +3895,7 @@ x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_unsigned_to_nat(0u); x_5 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_3036_(x_3, x_4); -x_6 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7; +x_6 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -3591,11 +3903,11 @@ x_8 = 0; x_9 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_9, 0, x_7); lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_8); -x_10 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6; +x_10 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6; x_11 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); -x_12 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9; +x_12 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9; x_13 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -3603,11 +3915,11 @@ x_14 = lean_box(1); x_15 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11; +x_16 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5; +x_18 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5; x_19 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -3629,7 +3941,7 @@ lean_ctor_set(x_25, 1, x_12); x_26 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_14); -x_27 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13; +x_27 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13; x_28 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -3654,7 +3966,7 @@ lean_ctor_set(x_35, 1, x_12); x_36 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_14); -x_37 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15; +x_37 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15; x_38 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -3664,7 +3976,7 @@ lean_ctor_set(x_39, 1, x_18); x_40 = lean_ctor_get(x_1, 3); lean_inc(x_40); x_41 = l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_3036_(x_40, x_4); -x_42 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16; +x_42 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16; x_43 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -3680,7 +3992,7 @@ lean_ctor_set(x_46, 1, x_12); x_47 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_14); -x_48 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18; +x_48 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18; x_49 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -3690,7 +4002,7 @@ lean_ctor_set(x_50, 1, x_18); x_51 = lean_ctor_get(x_1, 4); lean_inc(x_51); x_52 = l_Option_repr___at___private_Lean_Meta_Transform_0__Lean_reprTransformStep____x40_Lean_Meta_Transform___hyg_46____spec__1(x_51, x_4); -x_53 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19; +x_53 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19; x_54 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -3706,7 +4018,7 @@ lean_ctor_set(x_57, 1, x_12); x_58 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_14); -x_59 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21; +x_59 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21; x_60 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); @@ -3731,7 +4043,7 @@ lean_ctor_set(x_67, 1, x_12); x_68 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_14); -x_69 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23; +x_69 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23; x_70 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_70, 0, x_68); lean_ctor_set(x_70, 1, x_69); @@ -3759,7 +4071,7 @@ lean_inc(x_82); x_83 = l___private_Init_Data_Repr_0__Nat_reprFast(x_82); x_84 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_84, 0, x_83); -x_85 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39; +x_85 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39; x_86 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); @@ -3771,7 +4083,7 @@ lean_inc(x_88); x_89 = l___private_Init_Data_Repr_0__Nat_reprFast(x_88); x_90 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_90, 0, x_89); -x_91 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33; +x_91 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33; x_92 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_92, 0, x_91); lean_ctor_set(x_92, 1, x_90); @@ -3784,7 +4096,7 @@ lean_dec(x_1); x_95 = l___private_Init_Data_Repr_0__Nat_reprFast(x_94); x_96 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_96, 0, x_95); -x_97 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44; +x_97 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44; x_98 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_98, 0, x_97); lean_ctor_set(x_98, 1, x_96); @@ -3794,14 +4106,14 @@ lean_ctor_set_uint8(x_99, sizeof(void*)*1, x_8); if (x_72 == 0) { lean_object* x_186; -x_186 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; +x_186 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; x_100 = x_186; goto block_185; } else { lean_object* x_187; -x_187 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; +x_187 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; x_100 = x_187; goto block_185; } @@ -3823,7 +4135,7 @@ lean_ctor_set(x_104, 1, x_12); x_105 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_14); -x_106 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25; +x_106 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25; x_107 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_107, 0, x_105); lean_ctor_set(x_107, 1, x_106); @@ -3839,7 +4151,7 @@ lean_ctor_set(x_110, 1, x_12); x_111 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_111, 0, x_110); lean_ctor_set(x_111, 1, x_14); -x_112 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27; +x_112 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27; x_113 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_113, 0, x_111); lean_ctor_set(x_113, 1, x_112); @@ -3849,21 +4161,21 @@ lean_ctor_set(x_114, 1, x_18); if (x_78 == 0) { lean_object* x_183; -x_183 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; +x_183 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; x_115 = x_183; goto block_182; } else { lean_object* x_184; -x_184 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; +x_184 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; x_115 = x_184; goto block_182; } block_182: { 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; -x_116 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28; +x_116 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28; x_117 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_117, 0, x_116); lean_ctor_set(x_117, 1, x_115); @@ -3879,7 +4191,7 @@ lean_ctor_set(x_120, 1, x_12); x_121 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_14); -x_122 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30; +x_122 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30; x_123 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_123, 0, x_121); lean_ctor_set(x_123, 1, x_122); @@ -3889,14 +4201,14 @@ lean_ctor_set(x_124, 1, x_18); if (x_79 == 0) { lean_object* x_180; -x_180 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; +x_180 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; x_125 = x_180; goto block_179; } else { lean_object* x_181; -x_181 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; +x_181 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; x_125 = x_181; goto block_179; } @@ -3918,7 +4230,7 @@ lean_ctor_set(x_129, 1, x_12); x_130 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_130, 0, x_129); lean_ctor_set(x_130, 1, x_14); -x_131 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32; +x_131 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32; x_132 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_132, 0, x_130); lean_ctor_set(x_132, 1, x_131); @@ -3928,14 +4240,14 @@ lean_ctor_set(x_133, 1, x_18); if (x_80 == 0) { lean_object* x_177; -x_177 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; +x_177 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; x_134 = x_177; goto block_176; } else { lean_object* x_178; -x_178 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; +x_178 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; x_134 = x_178; goto block_176; } @@ -3957,7 +4269,7 @@ lean_ctor_set(x_138, 1, x_12); x_139 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_139, 0, x_138); lean_ctor_set(x_139, 1, x_14); -x_140 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35; +x_140 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35; x_141 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_141, 0, x_139); lean_ctor_set(x_141, 1, x_140); @@ -3967,21 +4279,21 @@ lean_ctor_set(x_142, 1, x_18); if (x_81 == 0) { lean_object* x_174; -x_174 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52; +x_174 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52; x_143 = x_174; goto block_173; } else { lean_object* x_175; -x_175 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54; +x_175 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54; x_143 = x_175; goto block_173; } block_173: { 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; -x_144 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36; +x_144 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36; x_145 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_145, 0, x_144); lean_ctor_set(x_145, 1, x_143); @@ -3997,7 +4309,7 @@ lean_ctor_set(x_148, 1, x_12); x_149 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_149, 0, x_148); lean_ctor_set(x_149, 1, x_14); -x_150 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38; +x_150 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38; x_151 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_151, 0, x_149); lean_ctor_set(x_151, 1, x_150); @@ -4013,7 +4325,7 @@ lean_ctor_set(x_154, 1, x_12); x_155 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_155, 0, x_154); lean_ctor_set(x_155, 1, x_14); -x_156 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41; +x_156 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41; x_157 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_157, 0, x_155); lean_ctor_set(x_157, 1, x_156); @@ -4029,7 +4341,7 @@ lean_ctor_set(x_160, 1, x_12); x_161 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_161, 0, x_160); lean_ctor_set(x_161, 1, x_14); -x_162 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43; +x_162 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43; x_163 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_163, 0, x_161); lean_ctor_set(x_163, 1, x_162); @@ -4039,15 +4351,15 @@ lean_ctor_set(x_164, 1, x_18); x_165 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_99); -x_166 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48; +x_166 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48; x_167 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_167, 0, x_166); lean_ctor_set(x_167, 1, x_165); -x_168 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50; +x_168 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50; x_169 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_169, 0, x_167); lean_ctor_set(x_169, 1, x_168); -x_170 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47; +x_170 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47; x_171 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_171, 0, x_170); lean_ctor_set(x_171, 1, x_169); @@ -4062,11 +4374,11 @@ return x_172; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -4075,7 +4387,7 @@ static lean_object* _init_l_Lean_Meta_Grind_instReprENode___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____boxed), 2, 0); return x_1; } } @@ -4087,43 +4399,83 @@ x_1 = l_Lean_Meta_Grind_instReprENode___closed__1; return x_1; } } -LEAN_EXPORT size_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey_unsafe__1(lean_object* x_1) { +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(lean_object* x_1) { _start: { -size_t x_2; +size_t x_2; uint64_t x_3; x_2 = lean_ptr_addr(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey_unsafe__1___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey_unsafe__1(x_1); -lean_dec(x_1); -x_3 = lean_box_usize(x_2); +x_3 = lean_usize_to_uint64(x_2); return x_3; } } -LEAN_EXPORT size_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1___boxed(lean_object* x_1) { _start: { -size_t x_2; -x_2 = lean_ptr_addr(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_toENodeKey(x_1); +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_1); lean_dec(x_1); -x_3 = lean_box_usize(x_2); +x_3 = lean_box_uint64(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5) { +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashableENodeKey(lean_object* x_1) { +_start: +{ +uint64_t x_2; +x_2 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableENodeKey___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instHashableENodeKey(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instBEqENodeKey(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqENodeKey___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Meta_Grind_instBEqENodeKey(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; size_t x_3; uint64_t x_4; +x_2 = lean_ctor_get(x_1, 2); +x_3 = lean_ptr_addr(x_2); +x_4 = lean_usize_to_uint64(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___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; uint8_t x_7; @@ -4139,34 +4491,33 @@ return x_8; } else { -lean_object* x_9; size_t x_10; uint8_t x_11; +lean_object* x_9; uint8_t x_10; x_9 = lean_array_fget(x_1, x_4); -x_10 = lean_unbox_usize(x_9); +x_10 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_5, x_9); lean_dec(x_9); -x_11 = lean_usize_dec_eq(x_5, x_10); -if (x_11 == 0) +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); lean_dec(x_4); x_3 = lean_box(0); -x_4 = x_13; +x_4 = x_12; goto _start; } else { -lean_object* x_15; lean_object* x_16; -x_15 = lean_array_fget(x_2, x_4); +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_fget(x_2, x_4); lean_dec(x_4); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4188,22 +4539,21 @@ lean_dec(x_5); switch (lean_obj_tag(x_11)) { case 0: { -lean_object* x_12; lean_object* x_13; size_t x_14; uint8_t x_15; +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(x_11); -x_14 = lean_unbox_usize(x_12); +x_14 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_12); lean_dec(x_12); -x_15 = lean_usize_dec_eq(x_3, x_14); -if (x_15 == 0) +if (x_14 == 0) { -lean_object* x_16; +lean_object* x_15; lean_dec(x_13); lean_free_object(x_1); -x_16 = lean_box(0); -return x_16; +x_15 = lean_box(0); +return x_15; } else { @@ -4214,107 +4564,106 @@ return x_1; } case 1: { -lean_object* x_17; size_t x_18; +lean_object* x_16; size_t x_17; lean_free_object(x_1); -x_17 = lean_ctor_get(x_11, 0); -lean_inc(x_17); +x_16 = lean_ctor_get(x_11, 0); +lean_inc(x_16); lean_dec(x_11); -x_18 = lean_usize_shift_right(x_2, x_6); -x_1 = x_17; -x_2 = x_18; +x_17 = lean_usize_shift_right(x_2, x_6); +x_1 = x_16; +x_2 = x_17; goto _start; } default: { -lean_object* x_20; +lean_object* x_19; lean_free_object(x_1); -x_20 = lean_box(0); -return x_20; +x_19 = lean_box(0); +return x_19; } } } else { -lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_21 = lean_ctor_get(x_1, 0); -lean_inc(x_21); +lean_object* x_20; size_t x_21; size_t x_22; size_t x_23; lean_object* 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_22 = 5; -x_23 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; -x_24 = lean_usize_land(x_2, x_23); -x_25 = lean_usize_to_nat(x_24); -x_26 = lean_box(2); -x_27 = lean_array_get(x_26, x_21, x_25); -lean_dec(x_25); -lean_dec(x_21); -switch (lean_obj_tag(x_27)) { +x_21 = 5; +x_22 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_23 = lean_usize_land(x_2, x_22); +x_24 = lean_usize_to_nat(x_23); +x_25 = lean_box(2); +x_26 = lean_array_get(x_25, x_20, x_24); +lean_dec(x_24); +lean_dec(x_20); +switch (lean_obj_tag(x_26)) { case 0: { -lean_object* x_28; lean_object* x_29; size_t x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_27, 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); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); +lean_dec(x_26); +x_29 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_27); lean_dec(x_27); -x_30 = lean_unbox_usize(x_28); -lean_dec(x_28); -x_31 = lean_usize_dec_eq(x_3, x_30); -if (x_31 == 0) +if (x_29 == 0) { -lean_object* x_32; -lean_dec(x_29); -x_32 = lean_box(0); -return x_32; +lean_object* x_30; +lean_dec(x_28); +x_30 = lean_box(0); +return x_30; } else { -lean_object* x_33; -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_29); -return x_33; +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_34; size_t x_35; -x_34 = lean_ctor_get(x_27, 0); -lean_inc(x_34); -lean_dec(x_27); -x_35 = lean_usize_shift_right(x_2, x_22); -x_1 = x_34; -x_2 = x_35; +lean_object* x_32; size_t x_33; +x_32 = lean_ctor_get(x_26, 0); +lean_inc(x_32); +lean_dec(x_26); +x_33 = lean_usize_shift_right(x_2, x_21); +x_1 = x_32; +x_2 = x_33; goto _start; } default: { -lean_object* x_37; -x_37 = lean_box(0); -return x_37; +lean_object* x_35; +x_35 = lean_box(0); +return x_35; } } } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_1, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_1, 1); -lean_inc(x_39); +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(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); lean_dec(x_1); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(x_38, x_39, lean_box(0), x_40, x_3); -lean_dec(x_39); -lean_dec(x_38); -return x_41; +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(x_36, x_37, lean_box(0), x_38, x_3); +lean_dec(x_37); +lean_dec(x_36); +return x_39; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(lean_object* x_1, size_t x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint64_t x_3; size_t x_4; lean_object* x_5; -x_3 = lean_usize_to_uint64(x_2); +x_3 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_4 = lean_uint64_to_usize(x_3); x_5 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(x_1, x_4, x_2); return x_5; @@ -4323,63 +4672,55 @@ return x_5; LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot(lean_object* x_1, lean_object* x_2) { _start: { -size_t x_3; lean_object* x_4; -x_3 = lean_ptr_addr(x_2); -x_4 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_3); -if (lean_obj_tag(x_4) == 0) +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) { -uint64_t x_5; -x_5 = 13; -return x_5; +uint64_t x_4; +x_4 = 13; +return x_4; } else { -lean_object* x_6; lean_object* x_7; size_t x_8; uint64_t x_9; -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_ctor_get(x_6, 2); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ptr_addr(x_7); -lean_dec(x_7); -x_9 = lean_usize_to_uint64(x_8); -return x_9; +lean_object* x_5; uint64_t x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1(x_5); +lean_dec(x_5); +return x_6; } } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3___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_5); +lean_object* x_6; +x_6 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); -x_7 = l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__3(x_1, x_2, x_3, x_4, x_6); lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_6; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2___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; +size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = lean_unbox_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(x_1, x_4, x_3); lean_dec(x_3); -x_6 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__2(x_1, x_4, x_5); -return x_6; +return x_5; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -size_t x_3; lean_object* x_4; -x_3 = lean_unbox_usize(x_2); +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_2); lean_dec(x_2); -x_4 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_3); -return x_4; +return x_3; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___boxed(lean_object* x_1, lean_object* x_2) { @@ -4395,63 +4736,59 @@ return x_4; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hasSameRoot(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -size_t x_4; size_t x_5; uint8_t x_6; -x_4 = lean_ptr_addr(x_2); -x_5 = lean_ptr_addr(x_3); -x_6 = lean_usize_dec_eq(x_4, x_5); -if (x_6 == 0) +uint8_t x_4; +x_4 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_2, x_3); +if (x_4 == 0) { -lean_object* x_7; +lean_object* x_5; lean_inc(x_1); -x_7 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_4); -if (lean_obj_tag(x_7) == 0) +x_5 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_2); +if (lean_obj_tag(x_5) == 0) { -uint8_t x_8; +uint8_t x_6; lean_dec(x_1); -x_8 = 0; -return x_8; +x_6 = 0; +return x_6; } else { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_3); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; lean_dec(x_7); -x_10 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_1, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -lean_dec(x_9); -x_11 = 0; -return x_11; +x_9 = 0; +return x_9; } else { -lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; size_t x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_7, 2); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_ctor_get(x_10, 2); lean_inc(x_12); lean_dec(x_10); -x_13 = lean_ctor_get(x_9, 2); -lean_inc(x_13); -lean_dec(x_9); -x_14 = lean_ptr_addr(x_13); -lean_dec(x_13); -x_15 = lean_ctor_get(x_12, 2); -lean_inc(x_15); +x_13 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_11, x_12); lean_dec(x_12); -x_16 = lean_ptr_addr(x_15); -lean_dec(x_15); -x_17 = lean_usize_dec_eq(x_14, x_16); -return x_17; +lean_dec(x_11); +return x_13; } } } else { -uint8_t x_18; +uint8_t x_14; lean_dec(x_1); -x_18 = 1; -return x_18; +x_14 = 1; +return x_14; } } } @@ -4723,6 +5060,515 @@ x_5 = lean_box(x_4); return x_5; } } +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; size_t x_3; size_t x_4; size_t x_5; uint64_t x_6; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ptr_addr(x_2); +x_4 = 3; +x_5 = lean_usize_shift_right(x_3, x_4); +x_6 = lean_usize_to_uint64(x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; size_t x_4; uint64_t x_5; +x_2 = lean_ptr_addr(x_1); +x_3 = 3; +x_4 = lean_usize_shift_right(x_2, x_3); +x_5 = lean_usize_to_uint64(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint64_t x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; uint64_t x_9; uint64_t x_10; size_t x_11; size_t x_12; +x_8 = lean_array_uget(x_3, x_5); +x_9 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(x_8); +lean_dec(x_8); +x_10 = lean_uint64_mix_hash(x_6, x_9); +x_11 = 1; +x_12 = lean_usize_add(x_5, x_11); +x_5 = x_12; +x_6 = x_10; +goto _start; +} +} +} +LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; uint64_t x_7; +x_2 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(x_1); +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_box(0); +x_5 = lean_array_size(x_3); +x_6 = 0; +x_7 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___spec__1(x_3, x_4, x_3, x_5, x_6, x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___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; uint64_t x_9; uint64_t x_10; lean_object* x_11; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_uint64(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instHashablePreInstance___spec__1(x_1, x_2, x_3, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_box_uint64(x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instHashablePreInstance(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_lt(x_6, x_5); +if (x_8 == 0) +{ +lean_dec(x_3); +return x_7; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_4, x_6); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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_11 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 2); +lean_inc(x_15); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_3); +return x_7; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (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; uint8_t x_24; +x_18 = lean_ctor_get(x_11, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_array_fget(x_13, x_14); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_14, x_22); +lean_dec(x_14); +lean_ctor_set(x_11, 1, x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_21); +lean_dec(x_21); +lean_dec(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_3); +x_25 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 0, x_25); +return x_7; +} +else +{ +size_t x_26; size_t x_27; +lean_inc(x_3); +lean_ctor_set(x_7, 0, x_3); +x_26 = 1; +x_27 = lean_usize_add(x_6, x_26); +x_6 = x_27; +goto _start; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_11); +x_29 = lean_array_fget(x_13, x_14); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_14, x_30); +lean_dec(x_14); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_13); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_15); +x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_29); +lean_dec(x_29); +lean_dec(x_9); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_3); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_34); +return x_7; +} +else +{ +size_t x_35; size_t x_36; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_3); +x_35 = 1; +x_36 = lean_usize_add(x_6, x_35); +x_6 = x_36; +goto _start; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_3); +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; uint8_t x_49; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +x_45 = lean_array_fget(x_39, x_40); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_40, x_46); +lean_dec(x_40); +if (lean_is_scalar(x_44)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_44; +} +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_41); +x_49 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_45); +lean_dec(x_45); +lean_dec(x_9); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; +lean_inc(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_48); +x_53 = 1; +x_54 = lean_usize_add(x_6, x_53); +x_6 = x_54; +x_7 = x_52; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instBEqPreInstance___lambda__1(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = 1; +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_instBEqPreInstance___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2(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; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_box(0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +x_12 = lean_array_size(x_8); +x_13 = 0; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1(x_8, x_9, x_10, x_8, x_12, x_13, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2; +return x_16; +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__3(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; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_nat_dec_eq(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +if (x_8 == 0) +{ +uint8_t x_9; lean_object* x_10; +lean_dec(x_1); +x_9 = 0; +x_10 = lean_box(x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__2(x_1, x_2, x_11); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance(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); +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = 0; +x_7 = lean_box(x_6); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_box(0); +x_9 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__3(x_2, x_1, x_8); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___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) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_instBEqPreInstance___lambda__3(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_instBEqPreInstance(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedNewFact___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_instInhabitedENode___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedNewFact() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedNewFact___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__1() { _start: { @@ -4731,6 +5577,14 @@ x_1 = l_Lean_Meta_Grind_canon___closed__2; return x_1; } } +static lean_object* _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_canon___closed__2; +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__1() { _start: { @@ -4740,27 +5594,80 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static size_t _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__3() { +_start: +{ +lean_object* x_1; size_t x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_usize_of_nat(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__2; +x_2 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Meta_Grind_instInhabitedGoal___closed__3; +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set_usize(x_5, 4, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = l_Std_Queue_empty(lean_box(0)); +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal() { _start: { -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_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_1 = lean_box(0); x_2 = l_Lean_Meta_Grind_canon___closed__2; x_3 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__1; x_4 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; x_5 = 0; x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_7, 0, x_1); -lean_ctor_set(x_7, 1, x_2); -lean_ctor_set(x_7, 2, x_2); -lean_ctor_set(x_7, 3, x_3); -lean_ctor_set(x_7, 4, x_2); -lean_ctor_set(x_7, 5, x_4); -lean_ctor_set(x_7, 6, x_6); -lean_ctor_set(x_7, 7, x_6); -lean_ctor_set_uint8(x_7, sizeof(void*)*8, x_5); -return x_7; +x_7 = l_Lean_Meta_Grind_instInhabitedGoal___closed__4; +x_8 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2; +x_9 = l_Lean_Meta_Grind_instInhabitedGoal___closed__5; +x_10 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_2); +lean_ctor_set(x_10, 2, x_2); +lean_ctor_set(x_10, 3, x_3); +lean_ctor_set(x_10, 4, x_2); +lean_ctor_set(x_10, 5, x_4); +lean_ctor_set(x_10, 6, x_6); +lean_ctor_set(x_10, 7, x_6); +lean_ctor_set(x_10, 8, x_7); +lean_ctor_set(x_10, 9, x_7); +lean_ctor_set(x_10, 10, x_2); +lean_ctor_set(x_10, 11, x_6); +lean_ctor_set(x_10, 12, x_8); +lean_ctor_set(x_10, 13, x_9); +lean_ctor_set_uint8(x_10, sizeof(void*)*14, x_5); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_admit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -4775,45 +5682,33 @@ x_9 = l_Lean_MVarId_admit(x_7, x_8, x_2, x_3, x_4, x_5, x_6); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_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_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Meta_Grind_getTrueExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_11 = lean_apply_8(x_1, 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; uint8_t x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_12); -lean_dec(x_12); -x_14 = lean_box(x_13); -lean_ctor_set(x_10, 0, x_14); -return x_10; +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_apply_9(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_14; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_10); -x_17 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_15); -lean_dec(x_15); -x_18 = lean_box(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_EXPORT lean_object* l_Lean_Meta_Grind_isTrueExpr___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: -{ -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_isTrueExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_15; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -4821,76 +5716,3121 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Meta_Grind_getFalseExpr___rarg(x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_12); -lean_dec(x_12); -x_14 = lean_box(x_13); -lean_ctor_set(x_10, 0, x_14); -return x_10; +return x_11; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); lean_inc(x_16); +lean_dec(x_11); +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_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_apply_3(x_2, x_3, x_4, x_5); +x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(x_1, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); -lean_dec(x_10); -x_17 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_15); -lean_dec(x_15); -x_18 = lean_box(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_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr___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_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2(lean_object* x_1) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_Grind_isFalseExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_x3f_unsafe__1(lean_object* x_1) { -_start: -{ -size_t x_2; -x_2 = lean_ptr_addr(x_1); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg), 10, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f_unsafe__1___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -size_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_getENode_x3f_unsafe__1(x_1); +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_2); +x_11 = lean_apply_9(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; uint8_t x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_2, x_13); +lean_dec(x_2); +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(0, 2, 0); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, 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(0, 2, 0); +lean_ctor_set(x_20, 0, x_12); +lean_ctor_set(x_20, 1, 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; +lean_dec(x_2); +x_22 = !lean_is_exclusive(x_11); +if (x_22 == 0) +{ +return x_11; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_11, 0); +x_24 = lean_ctor_get(x_11, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_11); +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_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__2), 10, 1); +lean_closure_set(x_13, 0, x_2); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg), 10, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_2); +x_11 = lean_apply_9(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; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_2, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_13, 1); +x_16 = lean_st_ref_get(x_2, x_15); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_13, 1, x_18); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_13, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +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_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_st_ref_get(x_2, x_23); +lean_dec(x_2); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_25); +if (lean_is_scalar(x_27)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_27; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_2); +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_Meta_Grind_GoalM_run_x27___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +lean_ctor_set(x_1, 1, x_9); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); lean_dec(x_1); -x_3 = lean_box_usize(x_2); -return x_3; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_GoalM_run_x27___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run_x27___lambda__2___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_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; 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, 0); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run_x27___lambda__1), 10, 1); +lean_closure_set(x_13, 0, x_2); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_Meta_Grind_GoalM_run_x27___closed__1; +x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg), 10, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +x_17 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(x_11, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_GoalM_run_x27___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint64_t x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; uint64_t x_9; uint64_t x_10; size_t x_11; size_t x_12; +x_8 = lean_array_uget(x_3, x_5); +x_9 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(x_8); +lean_dec(x_8); +x_10 = lean_uint64_mix_hash(x_6, x_9); +x_11 = 1; +x_12 = lean_usize_add(x_5, x_11); +x_5 = x_12; +x_6 = x_10; +goto _start; +} +} +} +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint64_t x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; uint64_t x_9; uint64_t x_10; size_t x_11; size_t x_12; +x_8 = lean_array_uget(x_3, x_5); +x_9 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(x_8); +lean_dec(x_8); +x_10 = lean_uint64_mix_hash(x_6, x_9); +x_11 = 1; +x_12 = lean_usize_add(x_5, x_11); +x_5 = x_12; +x_6 = x_10; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4(size_t 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_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_dec(x_5); +return x_6; +} +else +{ +lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; uint64_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_array_fget(x_3, x_5); +x_11 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(x_9); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +x_13 = lean_box(0); +x_14 = lean_array_size(x_12); +x_15 = 0; +x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__5(x_12, x_13, x_12, x_14, x_15, x_11); +lean_dec(x_12); +x_17 = lean_uint64_to_usize(x_16); +x_18 = 1; +x_19 = lean_usize_sub(x_1, x_18); +x_20 = 5; +x_21 = lean_usize_mul(x_20, x_19); +x_22 = lean_usize_shift_right(x_17, x_21); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_5, x_23); +lean_dec(x_5); +x_25 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(x_6, x_22, x_1, x_9, x_10); +x_4 = lean_box(0); +x_5 = x_24; +x_6 = x_25; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__6(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) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_lt(x_6, x_5); +if (x_8 == 0) +{ +lean_dec(x_3); +return x_7; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_4, x_6); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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_11 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 2); +lean_inc(x_15); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_3); +return x_7; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (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; uint8_t x_24; +x_18 = lean_ctor_get(x_11, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_array_fget(x_13, x_14); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_14, x_22); +lean_dec(x_14); +lean_ctor_set(x_11, 1, x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_21); +lean_dec(x_21); +lean_dec(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_3); +x_25 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 0, x_25); +return x_7; +} +else +{ +size_t x_26; size_t x_27; +lean_inc(x_3); +lean_ctor_set(x_7, 0, x_3); +x_26 = 1; +x_27 = lean_usize_add(x_6, x_26); +x_6 = x_27; +goto _start; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_11); +x_29 = lean_array_fget(x_13, x_14); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_14, x_30); +lean_dec(x_14); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_13); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_15); +x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_29); +lean_dec(x_29); +lean_dec(x_9); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_3); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_34); +return x_7; +} +else +{ +size_t x_35; size_t x_36; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_3); +x_35 = 1; +x_36 = lean_usize_add(x_6, x_35); +x_6 = x_36; +goto _start; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_3); +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; uint8_t x_49; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +x_45 = lean_array_fget(x_39, x_40); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_40, x_46); +lean_dec(x_40); +if (lean_is_scalar(x_44)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_44; +} +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_41); +x_49 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_45); +lean_dec(x_45); +lean_dec(x_9); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; +lean_inc(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_48); +x_53 = 1; +x_54 = lean_usize_add(x_6, x_53); +x_6 = x_54; +x_7 = x_52; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8(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) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_lt(x_6, x_5); +if (x_8 == 0) +{ +lean_dec(x_3); +return x_7; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_4, x_6); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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_11 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 2); +lean_inc(x_15); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_3); +return x_7; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (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; uint8_t x_24; +x_18 = lean_ctor_get(x_11, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_array_fget(x_13, x_14); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_14, x_22); +lean_dec(x_14); +lean_ctor_set(x_11, 1, x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_21); +lean_dec(x_21); +lean_dec(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_3); +x_25 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 0, x_25); +return x_7; +} +else +{ +size_t x_26; size_t x_27; +lean_inc(x_3); +lean_ctor_set(x_7, 0, x_3); +x_26 = 1; +x_27 = lean_usize_add(x_6, x_26); +x_6 = x_27; +goto _start; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_11); +x_29 = lean_array_fget(x_13, x_14); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_14, x_30); +lean_dec(x_14); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_13); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_15); +x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_29); +lean_dec(x_29); +lean_dec(x_9); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_3); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_34); +return x_7; +} +else +{ +size_t x_35; size_t x_36; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_3); +x_35 = 1; +x_36 = lean_usize_add(x_6, x_35); +x_6 = x_36; +goto _start; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_3); +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; uint8_t x_49; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +x_45 = lean_array_fget(x_39, x_40); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_40, x_46); +lean_dec(x_40); +if (lean_is_scalar(x_44)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_44; +} +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_41); +x_49 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_45); +lean_dec(x_45); +lean_dec(x_9); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; +lean_inc(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_48); +x_53 = 1; +x_54 = lean_usize_add(x_6, x_53); +x_6 = x_54; +x_7 = x_52; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_box(0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +x_12 = lean_array_size(x_8); +x_13 = 0; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8(x_8, x_9, x_10, x_8, x_12, x_13, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = 1; +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +return x_18; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__2(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; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_nat_dec_eq(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_box(0); +x_11 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1(x_1, x_2, x_10); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7(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; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_5); +x_8 = lean_nat_dec_lt(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_1); +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_1, 1); +lean_dec(x_10); +x_11 = lean_ctor_get(x_1, 0); +lean_dec(x_11); +x_12 = lean_array_push(x_5, x_3); +x_13 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_13); +lean_ctor_set(x_1, 0, x_12); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = lean_array_push(x_5, x_3); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_5, x_2); +x_18 = lean_ctor_get(x_3, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_18, x_19); +lean_dec(x_19); +lean_dec(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_5); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_2, x_21); +lean_dec(x_2); +x_2 = x_22; +goto _start; +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_box(0); +x_25 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__2(x_17, x_3, x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_6); +lean_dec(x_5); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_2, x_26); +lean_dec(x_2); +x_2 = x_27; +goto _start; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_1); +if (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_1, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_1, 0); +lean_dec(x_31); +x_32 = lean_array_fset(x_5, x_2, x_3); +x_33 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_33); +lean_ctor_set(x_1, 0, x_32); +return x_1; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_1); +x_34 = lean_array_fset(x_5, x_2, x_3); +x_35 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +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 uint8_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_box(0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +x_12 = lean_array_size(x_8); +x_13 = 0; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__6(x_8, x_9, x_10, x_8, x_12, x_13, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = 1; +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +return x_18; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(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; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_nat_dec_eq(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_box(0); +x_11 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1(x_1, x_2, x_10); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(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) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 0); +x_8 = 1; +x_9 = 5; +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_11 = lean_usize_land(x_2, x_10); +x_12 = lean_usize_to_nat(x_11); +x_13 = lean_array_get_size(x_7); +x_14 = lean_nat_dec_lt(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +return x_1; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_array_fget(x_7, x_12); +x_16 = lean_box(0); +x_17 = lean_array_fset(x_7, x_12, x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +x_21 = lean_ctor_get(x_4, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +x_23 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_21, x_22); +lean_dec(x_22); +lean_dec(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_free_object(x_15); +x_24 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_array_fset(x_17, x_12, x_25); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_26); +return x_1; +} +else +{ +uint8_t x_27; +lean_inc(x_19); +x_27 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(x_19, x_4, x_16); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_free_object(x_15); +x_28 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_array_fset(x_17, x_12, x_29); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_30); +return x_1; +} +else +{ +lean_object* x_31; +lean_dec(x_20); +lean_dec(x_19); +lean_ctor_set(x_15, 1, x_5); +lean_ctor_set(x_15, 0, x_4); +x_31 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_31); +return x_1; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_15, 0); +x_33 = lean_ctor_get(x_15, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_15); +x_34 = lean_ctor_get(x_4, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); +x_36 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_34, x_35); +lean_dec(x_35); +lean_dec(x_34); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_32, x_33, x_4, x_5); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = lean_array_fset(x_17, x_12, x_38); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_39); +return x_1; +} +else +{ +uint8_t x_40; +lean_inc(x_32); +x_40 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(x_32, x_4, x_16); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_32, x_33, x_4, x_5); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_array_fset(x_17, x_12, x_42); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_43); +return x_1; +} +else +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_33); +lean_dec(x_32); +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_45 = lean_array_fset(x_17, x_12, x_44); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_45); +return x_1; +} +} +} +} +case 1: +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_15); +if (x_46 == 0) +{ +lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_15, 0); +x_48 = lean_usize_shift_right(x_2, x_9); +x_49 = lean_usize_add(x_3, x_8); +x_50 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(x_47, x_48, x_49, x_4, x_5); +lean_ctor_set(x_15, 0, x_50); +x_51 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_51); +return x_1; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_15, 0); +lean_inc(x_52); +lean_dec(x_15); +x_53 = lean_usize_shift_right(x_2, x_9); +x_54 = lean_usize_add(x_3, x_8); +x_55 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(x_52, x_53, x_54, x_4, x_5); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_57 = lean_array_fset(x_17, x_12, x_56); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_57); +return x_1; +} +} +default: +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_4); +lean_ctor_set(x_58, 1, x_5); +x_59 = lean_array_fset(x_17, x_12, x_58); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_59); +return x_1; +} +} +} +} +else +{ +lean_object* x_60; size_t x_61; size_t x_62; size_t x_63; size_t x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_60 = lean_ctor_get(x_1, 0); +lean_inc(x_60); +lean_dec(x_1); +x_61 = 1; +x_62 = 5; +x_63 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_64 = lean_usize_land(x_2, x_63); +x_65 = lean_usize_to_nat(x_64); +x_66 = lean_array_get_size(x_60); +x_67 = lean_nat_dec_lt(x_65, x_66); +lean_dec(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +lean_dec(x_65); +lean_dec(x_5); +lean_dec(x_4); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_60); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_array_fget(x_60, x_65); +x_70 = lean_box(0); +x_71 = lean_array_fset(x_60, x_65, x_70); +switch (lean_obj_tag(x_69)) { +case 0: +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_72 = lean_ctor_get(x_69, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_69, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_74 = x_69; +} else { + lean_dec_ref(x_69); + x_74 = lean_box(0); +} +x_75 = lean_ctor_get(x_4, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_75, x_76); +lean_dec(x_76); +lean_dec(x_75); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_74); +x_78 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_72, x_73, x_4, x_5); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_78); +x_80 = lean_array_fset(x_71, x_65, x_79); +lean_dec(x_65); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; +} +else +{ +uint8_t x_82; +lean_inc(x_72); +x_82 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(x_72, x_4, x_70); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_74); +x_83 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_72, x_73, x_4, x_5); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_85 = lean_array_fset(x_71, x_65, x_84); +lean_dec(x_65); +x_86 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_86, 0, x_85); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_73); +lean_dec(x_72); +if (lean_is_scalar(x_74)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_74; +} +lean_ctor_set(x_87, 0, x_4); +lean_ctor_set(x_87, 1, x_5); +x_88 = lean_array_fset(x_71, x_65, x_87); +lean_dec(x_65); +x_89 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_89, 0, x_88); +return x_89; +} +} +} +case 1: +{ +lean_object* x_90; lean_object* x_91; size_t x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_90 = lean_ctor_get(x_69, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + x_91 = x_69; +} else { + lean_dec_ref(x_69); + x_91 = lean_box(0); +} +x_92 = lean_usize_shift_right(x_2, x_62); +x_93 = lean_usize_add(x_3, x_61); +x_94 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(x_90, x_92, x_93, x_4, x_5); +if (lean_is_scalar(x_91)) { + x_95 = lean_alloc_ctor(1, 1, 0); +} else { + x_95 = x_91; +} +lean_ctor_set(x_95, 0, x_94); +x_96 = lean_array_fset(x_71, x_65, x_95); +lean_dec(x_65); +x_97 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_97, 0, x_96); +return x_97; +} +default: +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_4); +lean_ctor_set(x_98, 1, x_5); +x_99 = lean_array_fset(x_71, x_65, x_98); +lean_dec(x_65); +x_100 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_100, 0, x_99); +return x_100; +} +} +} +} +} +else +{ +uint8_t x_101; +x_101 = !lean_is_exclusive(x_1); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; size_t x_104; uint8_t x_105; +x_102 = lean_unsigned_to_nat(0u); +x_103 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7(x_1, x_102, x_4, x_5); +x_104 = 7; +x_105 = lean_usize_dec_le(x_104, x_3); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_106 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_103); +x_107 = lean_unsigned_to_nat(4u); +x_108 = lean_nat_dec_lt(x_106, x_107); +lean_dec(x_106); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_109 = lean_ctor_get(x_103, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_103, 1); +lean_inc(x_110); +lean_dec(x_103); +x_111 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_112 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4(x_3, x_109, x_110, lean_box(0), x_102, x_111); +lean_dec(x_110); +lean_dec(x_109); +return x_112; +} +else +{ +return x_103; +} +} +else +{ +return x_103; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; size_t x_118; uint8_t x_119; +x_113 = lean_ctor_get(x_1, 0); +x_114 = lean_ctor_get(x_1, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_1); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_unsigned_to_nat(0u); +x_117 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7(x_115, x_116, x_4, x_5); +x_118 = 7; +x_119 = lean_usize_dec_le(x_118, x_3); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_120 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_117); +x_121 = lean_unsigned_to_nat(4u); +x_122 = lean_nat_dec_lt(x_120, x_121); +lean_dec(x_120); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_117, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_117, 1); +lean_inc(x_124); +lean_dec(x_117); +x_125 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_126 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4(x_3, x_123, x_124, lean_box(0), x_116, x_125); +lean_dec(x_124); +lean_dec(x_123); +return x_126; +} +else +{ +return x_117; +} +} +else +{ +return x_117; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markTheoremInstance___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint64_t x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; uint64_t x_9; size_t x_10; size_t x_11; lean_object* x_12; +x_4 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(x_2); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = lean_box(0); +x_7 = lean_array_size(x_5); +x_8 = 0; +x_9 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2(x_5, x_6, x_5, x_7, x_8, x_4); +lean_dec(x_5); +x_10 = lean_uint64_to_usize(x_9); +x_11 = 1; +x_12 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3(x_1, x_10, x_11, x_2, x_3); +return x_12; +} +} +LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint64_t x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; uint64_t x_9; uint64_t x_10; size_t x_11; size_t x_12; +x_8 = lean_array_uget(x_3, x_5); +x_9 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__2(x_8); +lean_dec(x_8); +x_10 = lean_uint64_mix_hash(x_6, x_9); +x_11 = 1; +x_12 = lean_usize_add(x_5, x_11); +x_5 = x_12; +x_6 = x_10; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12(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) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_lt(x_6, x_5); +if (x_8 == 0) +{ +lean_dec(x_3); +return x_7; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_4, x_6); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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_11 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 2); +lean_inc(x_15); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_3); +return x_7; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (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; uint8_t x_24; +x_18 = lean_ctor_get(x_11, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_array_fget(x_13, x_14); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_14, x_22); +lean_dec(x_14); +lean_ctor_set(x_11, 1, x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_21); +lean_dec(x_21); +lean_dec(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_3); +x_25 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 0, x_25); +return x_7; +} +else +{ +size_t x_26; size_t x_27; +lean_inc(x_3); +lean_ctor_set(x_7, 0, x_3); +x_26 = 1; +x_27 = lean_usize_add(x_6, x_26); +x_6 = x_27; +goto _start; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_11); +x_29 = lean_array_fget(x_13, x_14); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_14, x_30); +lean_dec(x_14); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_13); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_15); +x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_29); +lean_dec(x_29); +lean_dec(x_9); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_3); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_34); +return x_7; +} +else +{ +size_t x_35; size_t x_36; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_3); +x_35 = 1; +x_36 = lean_usize_add(x_6, x_35); +x_6 = x_36; +goto _start; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_3); +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; uint8_t x_49; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +x_45 = lean_array_fget(x_39, x_40); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_40, x_46); +lean_dec(x_40); +if (lean_is_scalar(x_44)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_44; +} +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_41); +x_49 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_45); +lean_dec(x_45); +lean_dec(x_9); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; +lean_inc(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_48); +x_53 = 1; +x_54 = lean_usize_add(x_6, x_53); +x_6 = x_54; +x_7 = x_52; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14(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) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_lt(x_6, x_5); +if (x_8 == 0) +{ +lean_dec(x_3); +return x_7; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_4, x_6); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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_11 = lean_ctor_get(x_7, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_11, 2); +lean_inc(x_15); +x_16 = lean_nat_dec_lt(x_14, x_15); +if (x_16 == 0) +{ +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_3); +return x_7; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_11); +if (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; uint8_t x_24; +x_18 = lean_ctor_get(x_11, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_11, 0); +lean_dec(x_20); +x_21 = lean_array_fget(x_13, x_14); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_14, x_22); +lean_dec(x_14); +lean_ctor_set(x_11, 1, x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_21); +lean_dec(x_21); +lean_dec(x_9); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_3); +x_25 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 0, x_25); +return x_7; +} +else +{ +size_t x_26; size_t x_27; +lean_inc(x_3); +lean_ctor_set(x_7, 0, x_3); +x_26 = 1; +x_27 = lean_usize_add(x_6, x_26); +x_6 = x_27; +goto _start; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_11); +x_29 = lean_array_fget(x_13, x_14); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_14, x_30); +lean_dec(x_14); +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_13); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_15); +x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_29); +lean_dec(x_29); +lean_dec(x_9); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_3); +x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_34); +return x_7; +} +else +{ +size_t x_35; size_t x_36; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_32); +lean_ctor_set(x_7, 0, x_3); +x_35 = 1; +x_36 = lean_usize_add(x_6, x_35); +x_6 = x_36; +goto _start; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_7, 1); +lean_inc(x_38); +lean_dec(x_7); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 2); +lean_inc(x_41); +x_42 = lean_nat_dec_lt(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_9); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_3); +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; uint8_t x_49; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_44 = x_38; +} else { + lean_dec_ref(x_38); + x_44 = lean_box(0); +} +x_45 = lean_array_fget(x_39, x_40); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_40, x_46); +lean_dec(x_40); +if (lean_is_scalar(x_44)) { + x_48 = lean_alloc_ctor(0, 3, 0); +} else { + x_48 = x_44; +} +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_41); +x_49 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_9, x_45); +lean_dec(x_45); +lean_dec(x_9); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +else +{ +lean_object* x_52; size_t x_53; size_t x_54; +lean_inc(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_48); +x_53 = 1; +x_54 = lean_usize_add(x_6, x_53); +x_6 = x_54; +x_7 = x_52; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_box(0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +x_12 = lean_array_size(x_8); +x_13 = 0; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14(x_8, x_9, x_10, x_8, x_12, x_13, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = 1; +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +return x_18; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2(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; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_nat_dec_eq(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_box(0); +x_11 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1(x_1, x_2, x_10); +return x_11; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_4); +x_8 = 0; +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_fget(x_1, x_4); +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_10, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_4, x_13); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_14; +goto _start; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_box(0); +x_17 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2(x_9, x_5, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_4, x_18); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_19; +goto _start; +} +else +{ +uint8_t x_21; +lean_dec(x_4); +x_21 = 1; +return x_21; +} +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_box(0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +x_12 = lean_array_size(x_8); +x_13 = 0; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12(x_8, x_9, x_10, x_8, x_12, x_13, x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = 1; +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +return x_18; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2(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; uint8_t x_8; +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_nat_dec_eq(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_box(0); +x_11 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1(x_1, x_2, x_10); +return x_11; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = 5; +x_6 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_7 = lean_usize_land(x_2, x_6); +x_8 = lean_usize_to_nat(x_7); +x_9 = lean_box(2); +x_10 = lean_array_get(x_9, x_4, x_8); +lean_dec(x_8); +lean_dec(x_4); +switch (lean_obj_tag(x_10)) { +case 0: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_11); +x_15 = 0; +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_box(0); +x_17 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2(x_11, x_3, x_16); +return x_17; +} +} +case 1: +{ +lean_object* x_18; size_t x_19; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = lean_usize_shift_right(x_2, x_5); +x_1 = x_18; +x_2 = x_19; +goto _start; +} +default: +{ +uint8_t x_21; +x_21 = 0; +return x_21; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13(x_22, x_23, lean_box(0), x_24, x_3); +lean_dec(x_23); +lean_dec(x_22); +return x_25; +} +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; uint64_t x_8; size_t x_9; uint8_t x_10; +x_3 = l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(x_2); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_box(0); +x_6 = lean_array_size(x_4); +x_7 = 0; +x_8 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10(x_4, x_5, x_4, x_6, x_7, x_3); +x_9 = lean_uint64_to_usize(x_8); +x_10 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11(x_1, x_9, x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_st_ref_take(x_3, x_11); +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(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 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_13, 12); +x_17 = lean_box(0); +x_18 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markTheoremInstance___spec__1(x_16, x_1, x_17); +lean_ctor_set(x_13, 12, x_18); +x_19 = lean_st_ref_set(x_3, x_13, x_14); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +x_22 = 1; +x_23 = lean_box(x_22); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +lean_dec(x_19); +x_25 = 1; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +} +else +{ +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; 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; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_28 = lean_ctor_get(x_13, 0); +x_29 = lean_ctor_get(x_13, 1); +x_30 = lean_ctor_get(x_13, 2); +x_31 = lean_ctor_get(x_13, 3); +x_32 = lean_ctor_get(x_13, 4); +x_33 = lean_ctor_get(x_13, 5); +x_34 = lean_ctor_get_uint8(x_13, sizeof(void*)*14); +x_35 = lean_ctor_get(x_13, 6); +x_36 = lean_ctor_get(x_13, 7); +x_37 = lean_ctor_get(x_13, 8); +x_38 = lean_ctor_get(x_13, 9); +x_39 = lean_ctor_get(x_13, 10); +x_40 = lean_ctor_get(x_13, 11); +x_41 = lean_ctor_get(x_13, 12); +x_42 = lean_ctor_get(x_13, 13); +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_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_13); +x_43 = lean_box(0); +x_44 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markTheoremInstance___spec__1(x_41, x_1, x_43); +x_45 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_45, 0, x_28); +lean_ctor_set(x_45, 1, x_29); +lean_ctor_set(x_45, 2, x_30); +lean_ctor_set(x_45, 3, x_31); +lean_ctor_set(x_45, 4, x_32); +lean_ctor_set(x_45, 5, x_33); +lean_ctor_set(x_45, 6, x_35); +lean_ctor_set(x_45, 7, x_36); +lean_ctor_set(x_45, 8, x_37); +lean_ctor_set(x_45, 9, x_38); +lean_ctor_set(x_45, 10, x_39); +lean_ctor_set(x_45, 11, x_40); +lean_ctor_set(x_45, 12, x_44); +lean_ctor_set(x_45, 13, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*14, x_34); +x_46 = lean_st_ref_set(x_3, x_45, x_14); +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 = 1; +x_50 = lean_box(x_49); +if (lean_is_scalar(x_48)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_48; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_47); +return x_51; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_14; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_2); +x_13 = lean_st_ref_get(x_3, x_11); +x_14 = !lean_is_exclusive(x_13); +if (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_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 12); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(x_17, x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_free_object(x_13); +x_19 = lean_box(0); +x_20 = l_Lean_Meta_Grind_markTheoremInstance___lambda__1(x_12, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +return x_20; +} +else +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_12); +x_21 = 0; +x_22 = lean_box(x_21); +lean_ctor_set(x_13, 0, x_22); +return x_13; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_13, 0); +x_24 = lean_ctor_get(x_13, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_13); +x_25 = lean_ctor_get(x_23, 12); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(x_25, x_12); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Grind_markTheoremInstance___lambda__1(x_12, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +return x_28; +} +else +{ +uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_12); +x_29 = 0; +x_30 = lean_box(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_24); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_7; size_t x_8; uint64_t x_9; uint64_t x_10; lean_object* x_11; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_uint64(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2(x_1, x_2, x_3, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_box_uint64(x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_7; size_t x_8; uint64_t x_9; uint64_t x_10; lean_object* x_11; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_uint64(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__5(x_1, x_2, x_3, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_box_uint64(x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markTheoremInstance___spec__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__6(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1___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_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__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_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_markTheoremInstance___spec__7___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1___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_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__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_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___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_Meta_Grind_markTheoremInstance___spec__3(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; uint64_t x_9; uint64_t x_10; lean_object* x_11; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_uint64(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10(x_1, x_2, x_3, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_box_uint64(x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___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) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__14(x_1, x_2, x_3, x_4, x_8, x_9, x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1___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_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__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_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1___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_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__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_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11(x_1, x_4, x_3); +lean_dec(x_3); +x_6 = lean_box(x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_markTheoremInstance___lambda__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_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); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance___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_markTheoremInstance(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(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); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addNewFact(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_st_ref_take(x_4, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_14, 13); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_3); +x_19 = l_Std_Queue_enqueue___rarg(x_18, x_17); +lean_ctor_set(x_14, 13, x_19); +x_20 = lean_st_ref_set(x_4, x_14, x_15); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 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_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +x_29 = lean_ctor_get(x_14, 2); +x_30 = lean_ctor_get(x_14, 3); +x_31 = lean_ctor_get(x_14, 4); +x_32 = lean_ctor_get(x_14, 5); +x_33 = lean_ctor_get_uint8(x_14, sizeof(void*)*14); +x_34 = lean_ctor_get(x_14, 6); +x_35 = lean_ctor_get(x_14, 7); +x_36 = lean_ctor_get(x_14, 8); +x_37 = lean_ctor_get(x_14, 9); +x_38 = lean_ctor_get(x_14, 10); +x_39 = lean_ctor_get(x_14, 11); +x_40 = lean_ctor_get(x_14, 12); +x_41 = lean_ctor_get(x_14, 13); +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_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +x_42 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_2); +lean_ctor_set(x_42, 2, x_3); +x_43 = l_Std_Queue_enqueue___rarg(x_42, x_41); +x_44 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_44, 0, x_27); +lean_ctor_set(x_44, 1, x_28); +lean_ctor_set(x_44, 2, x_29); +lean_ctor_set(x_44, 3, x_30); +lean_ctor_set(x_44, 4, x_31); +lean_ctor_set(x_44, 5, x_32); +lean_ctor_set(x_44, 6, x_34); +lean_ctor_set(x_44, 7, x_35); +lean_ctor_set(x_44, 8, x_36); +lean_ctor_set(x_44, 9, x_37); +lean_ctor_set(x_44, 10, x_38); +lean_ctor_set(x_44, 11, x_39); +lean_ctor_set(x_44, 12, x_40); +lean_ctor_set(x_44, 13, x_43); +lean_ctor_set_uint8(x_44, sizeof(void*)*14, x_33); +x_45 = lean_st_ref_set(x_4, x_44, x_15); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +x_48 = lean_box(0); +if (lean_is_scalar(x_47)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_47; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addNewFact___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_Meta_Grind_addNewFact(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(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); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; uint8_t x_18; +x_13 = l_Lean_Meta_Grind_addNewFact(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_take(x_4, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_16, 11); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_19, x_20); +lean_dec(x_19); +lean_ctor_set(x_16, 11, x_21); +x_22 = lean_st_ref_set(x_4, x_16, x_17); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +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 +{ +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; 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; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +x_31 = lean_ctor_get(x_16, 2); +x_32 = lean_ctor_get(x_16, 3); +x_33 = lean_ctor_get(x_16, 4); +x_34 = lean_ctor_get(x_16, 5); +x_35 = lean_ctor_get_uint8(x_16, sizeof(void*)*14); +x_36 = lean_ctor_get(x_16, 6); +x_37 = lean_ctor_get(x_16, 7); +x_38 = lean_ctor_get(x_16, 8); +x_39 = lean_ctor_get(x_16, 9); +x_40 = lean_ctor_get(x_16, 10); +x_41 = lean_ctor_get(x_16, 11); +x_42 = lean_ctor_get(x_16, 12); +x_43 = lean_ctor_get(x_16, 13); +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_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_16); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_add(x_41, x_44); +lean_dec(x_41); +x_46 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_46, 0, x_29); +lean_ctor_set(x_46, 1, x_30); +lean_ctor_set(x_46, 2, x_31); +lean_ctor_set(x_46, 3, x_32); +lean_ctor_set(x_46, 4, x_33); +lean_ctor_set(x_46, 5, x_34); +lean_ctor_set(x_46, 6, x_36); +lean_ctor_set(x_46, 7, x_37); +lean_ctor_set(x_46, 8, x_38); +lean_ctor_set(x_46, 9, x_39); +lean_ctor_set(x_46, 10, x_40); +lean_ctor_set(x_46, 11, x_45); +lean_ctor_set(x_46, 12, x_42); +lean_ctor_set(x_46, 13, x_43); +lean_ctor_set_uint8(x_46, sizeof(void*)*14, x_35); +x_47 = lean_st_ref_set(x_4, x_46, x_17); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = lean_box(0); +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_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addTheoremInstance___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_Meta_Grind_addTheoremInstance(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(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); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_st_ref_get(x_1, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_Grind_getConfig___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_15, 3); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_11, 11); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_nat_dec_le(x_16, x_17); +lean_dec(x_17); +lean_dec(x_16); +x_19 = lean_box(x_18); +lean_ctor_set(x_13, 0, x_19); +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = lean_ctor_get(x_20, 3); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_11, 11); +lean_inc(x_23); +lean_dec(x_11); +x_24 = lean_nat_dec_le(x_22, x_23); +lean_dec(x_23); +lean_dec(x_22); +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded___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: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +lean_dec(x_1); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_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) { @@ -4901,33 +8841,31 @@ x_11 = lean_st_ref_get(x_2, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; size_t x_15; lean_object* x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_ptr_addr(x_1); -x_16 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_14, x_15); -lean_ctor_set(x_11, 0, x_16); +x_15 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_14, x_1); +lean_ctor_set(x_11, 0, x_15); return x_11; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; lean_object* x_21; lean_object* x_22; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); +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_11, 0); +x_17 = lean_ctor_get(x_11, 1); lean_inc(x_17); +lean_inc(x_16); lean_dec(x_11); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ptr_addr(x_1); -x_21 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_19, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_18); -return x_22; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_18, x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; } } } @@ -4948,24 +8886,6 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_unsafe__1(lean_object* x_1) { -_start: -{ -size_t x_2; -x_2 = lean_ptr_addr(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_unsafe__1___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_getENode_unsafe__1(x_1); -lean_dec(x_1); -x_3 = lean_box_usize(x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getENode___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: { @@ -5046,80 +8966,78 @@ x_11 = lean_st_ref_get(x_2, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = lean_ptr_addr(x_1); -x_17 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_15, x_16); -if (lean_obj_tag(x_17) == 0) +x_16 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_15, x_1); +if (lean_obj_tag(x_16) == 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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_free_object(x_11); -x_18 = l_Lean_indentExpr(x_1); -x_19 = l_Lean_Meta_Grind_getENode___closed__2; -x_20 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_Meta_Grind_getENode___closed__4; -x_22 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_Meta_Grind_getENode___spec__1(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -return x_23; +x_17 = l_Lean_indentExpr(x_1); +x_18 = l_Lean_Meta_Grind_getENode___closed__2; +x_19 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l_Lean_Meta_Grind_getENode___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_throwError___at_Lean_Meta_Grind_getENode___spec__1(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +return x_22; } else { -lean_object* x_24; +lean_object* x_23; lean_dec(x_1); -x_24 = lean_ctor_get(x_17, 0); -lean_inc(x_24); -lean_dec(x_17); -lean_ctor_set(x_11, 0, x_24); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +lean_dec(x_16); +lean_ctor_set(x_11, 0, x_23); return x_11; } } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_11, 0); -x_26 = lean_ctor_get(x_11, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); lean_inc(x_25); +lean_inc(x_24); lean_dec(x_11); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ptr_addr(x_1); -x_29 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_27, x_28); -if (lean_obj_tag(x_29) == 0) +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(x_26, x_1); +if (lean_obj_tag(x_27) == 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; -x_30 = l_Lean_indentExpr(x_1); -x_31 = l_Lean_Meta_Grind_getENode___closed__2; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_28 = l_Lean_indentExpr(x_1); +x_29 = l_Lean_Meta_Grind_getENode___closed__2; +x_30 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_Meta_Grind_getENode___closed__4; x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Meta_Grind_getENode___closed__4; -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_Meta_Grind_getENode___spec__1(x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); -return x_35; +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_throwError___at_Lean_Meta_Grind_getENode___spec__1(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +return x_33; } else { -lean_object* x_36; lean_object* x_37; +lean_object* x_34; lean_object* x_35; lean_dec(x_1); -x_36 = lean_ctor_get(x_29, 0); -lean_inc(x_36); -lean_dec(x_29); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_26); -return x_37; +x_34 = lean_ctor_get(x_27, 0); +lean_inc(x_34); +lean_dec(x_27); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_25); +return x_35; } } } @@ -5974,25 +9892,7 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT size_t l_Lean_Meta_Grind_alreadyInternalized_unsafe__1(lean_object* x_1) { -_start: -{ -size_t x_2; -x_2 = lean_ptr_addr(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_alreadyInternalized_unsafe__1___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_alreadyInternalized_unsafe__1(x_1); -lean_dec(x_1); -x_3 = lean_box_usize(x_2); -return x_3; -} -} -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___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; uint8_t x_7; @@ -6008,32 +9908,31 @@ return x_8; } else { -lean_object* x_9; size_t x_10; uint8_t x_11; +lean_object* x_9; uint8_t x_10; x_9 = lean_array_fget(x_1, x_4); -x_10 = lean_unbox_usize(x_9); +x_10 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_5, x_9); lean_dec(x_9); -x_11 = lean_usize_dec_eq(x_5, x_10); -if (x_11 == 0) +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); lean_dec(x_4); x_3 = lean_box(0); -x_4 = x_13; +x_4 = x_12; goto _start; } else { -uint8_t x_15; +uint8_t x_14; lean_dec(x_4); -x_15 = 1; -return x_15; +x_14 = 1; +return x_14; } } } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6053,55 +9952,54 @@ lean_dec(x_4); switch (lean_obj_tag(x_10)) { case 0: { -lean_object* x_11; size_t x_12; uint8_t x_13; +lean_object* x_11; uint8_t x_12; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); lean_dec(x_10); -x_12 = lean_unbox_usize(x_11); +x_12 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_11); lean_dec(x_11); -x_13 = lean_usize_dec_eq(x_3, x_12); -return x_13; +return x_12; } case 1: { -lean_object* x_14; size_t x_15; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); +lean_object* x_13; size_t x_14; +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); lean_dec(x_10); -x_15 = lean_usize_shift_right(x_2, x_5); -x_1 = x_14; -x_2 = x_15; +x_14 = lean_usize_shift_right(x_2, x_5); +x_1 = x_13; +x_2 = x_14; goto _start; } default: { -uint8_t x_17; -x_17 = 0; -return x_17; +uint8_t x_16; +x_16 = 0; +return x_16; } } } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_1, 0); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_1, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_1, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); lean_dec(x_1); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(x_18, x_19, lean_box(0), x_20, x_3); -lean_dec(x_19); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(x_17, x_18, lean_box(0), x_19, x_3); lean_dec(x_18); -return x_21; +lean_dec(x_17); +return x_20; } } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(lean_object* x_1, size_t x_2) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint64_t x_3; size_t x_4; uint8_t x_5; -x_3 = lean_usize_to_uint64(x_2); +x_3 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_4 = lean_uint64_to_usize(x_3); x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(x_1, x_4, x_2); return x_5; @@ -6115,73 +10013,68 @@ x_11 = lean_st_ref_get(x_2, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; size_t x_15; uint8_t x_16; lean_object* x_17; +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_ptr_addr(x_1); -x_16 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_14, x_15); -x_17 = lean_box(x_16); -lean_ctor_set(x_11, 0, x_17); +x_15 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_14, x_1); +x_16 = lean_box(x_15); +lean_ctor_set(x_11, 0, x_16); return x_11; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_18 = lean_ctor_get(x_11, 0); -x_19 = lean_ctor_get(x_11, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); lean_inc(x_18); +lean_inc(x_17); lean_dec(x_11); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ptr_addr(x_1); -x_22 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_20, x_21); -x_23 = lean_box(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_19); -return x_24; +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_19, x_1); +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3___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; uint8_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_5); +uint8_t x_6; lean_object* x_7; +x_6 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); -x_7 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_alreadyInternalized___spec__3(x_1, x_2, x_3, x_4, x_6); lean_dec(x_2); lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; +x_7 = lean_box(x_6); +return x_7; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +size_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = lean_unbox_usize(x_3); +x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(x_1, x_4, x_3); lean_dec(x_3); -x_6 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_alreadyInternalized___spec__2(x_1, x_4, x_5); -x_7 = lean_box(x_6); -return x_7; +x_6 = lean_box(x_5); +return x_6; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -size_t x_3; uint8_t x_4; lean_object* x_5; -x_3 = lean_unbox_usize(x_2); +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_1, x_2); lean_dec(x_2); -x_4 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_alreadyInternalized___spec__1(x_1, x_3); -x_5 = lean_box(x_4); -return x_5; +x_4 = lean_box(x_3); +return x_4; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_alreadyInternalized___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) { @@ -6337,16 +10230,28 @@ return x_27; } else { -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; 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_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; 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; x_28 = lean_ctor_get(x_15, 0); x_29 = lean_ctor_get(x_15, 1); x_30 = lean_ctor_get(x_15, 2); x_31 = lean_ctor_get(x_15, 3); x_32 = lean_ctor_get(x_15, 4); x_33 = lean_ctor_get(x_15, 5); -x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); +x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*14); x_35 = lean_ctor_get(x_15, 6); x_36 = lean_ctor_get(x_15, 7); +x_37 = lean_ctor_get(x_15, 8); +x_38 = lean_ctor_get(x_15, 9); +x_39 = lean_ctor_get(x_15, 10); +x_40 = lean_ctor_get(x_15, 11); +x_41 = lean_ctor_get(x_15, 12); +x_42 = lean_ctor_get(x_15, 13); +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_33); @@ -6356,42 +10261,48 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_dec(x_15); -x_37 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_37, 0, x_1); -lean_ctor_set(x_37, 1, x_2); -lean_ctor_set(x_37, 2, x_3); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_4); -x_38 = lean_array_push(x_33, x_37); -x_39 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_29); -lean_ctor_set(x_39, 2, x_30); -lean_ctor_set(x_39, 3, x_31); -lean_ctor_set(x_39, 4, x_32); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_35); -lean_ctor_set(x_39, 7, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*8, x_34); -x_40 = lean_st_ref_set(x_5, x_39, x_16); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_42 = x_40; +x_43 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_43, 0, x_1); +lean_ctor_set(x_43, 1, x_2); +lean_ctor_set(x_43, 2, x_3); +lean_ctor_set_uint8(x_43, sizeof(void*)*3, x_4); +x_44 = lean_array_push(x_33, x_43); +x_45 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_45, 0, x_28); +lean_ctor_set(x_45, 1, x_29); +lean_ctor_set(x_45, 2, x_30); +lean_ctor_set(x_45, 3, x_31); +lean_ctor_set(x_45, 4, x_32); +lean_ctor_set(x_45, 5, x_44); +lean_ctor_set(x_45, 6, x_35); +lean_ctor_set(x_45, 7, x_36); +lean_ctor_set(x_45, 8, x_37); +lean_ctor_set(x_45, 9, x_38); +lean_ctor_set(x_45, 10, x_39); +lean_ctor_set(x_45, 11, x_40); +lean_ctor_set(x_45, 12, x_41); +lean_ctor_set(x_45, 13, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*14, x_34); +x_46 = lean_st_ref_set(x_5, x_45, 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_40); - x_42 = lean_box(0); + lean_dec_ref(x_46); + x_48 = lean_box(0); } -x_43 = lean_box(0); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_49 = lean_box(0); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_42; + x_50 = x_48; } -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return x_44; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } } } @@ -7180,204 +11091,7 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -x_8 = lean_box(0); -return x_8; -} -else -{ -lean_object* x_9; size_t x_10; uint8_t x_11; -x_9 = lean_array_fget(x_1, x_4); -x_10 = lean_unbox_usize(x_9); -lean_dec(x_9); -x_11 = lean_usize_dec_eq(x_5, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -x_3 = lean_box(0); -x_4 = x_13; -goto _start; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_array_fget(x_2, x_4); -lean_dec(x_4); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__2(lean_object* x_1, size_t x_2, size_t 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; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = 5; -x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; -x_8 = lean_usize_land(x_2, x_7); -x_9 = lean_usize_to_nat(x_8); -x_10 = lean_box(2); -x_11 = lean_array_get(x_10, x_5, x_9); -lean_dec(x_9); -lean_dec(x_5); -switch (lean_obj_tag(x_11)) { -case 0: -{ -lean_object* x_12; lean_object* x_13; size_t x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_unbox_usize(x_12); -lean_dec(x_12); -x_15 = lean_usize_dec_eq(x_3, x_14); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_13); -lean_free_object(x_1); -x_16 = lean_box(0); -return x_16; -} -else -{ -lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -case 1: -{ -lean_object* x_17; size_t x_18; -lean_free_object(x_1); -x_17 = lean_ctor_get(x_11, 0); -lean_inc(x_17); -lean_dec(x_11); -x_18 = lean_usize_shift_right(x_2, x_6); -x_1 = x_17; -x_2 = x_18; -goto _start; -} -default: -{ -lean_object* x_20; -lean_free_object(x_1); -x_20 = lean_box(0); -return x_20; -} -} -} -else -{ -lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_21 = lean_ctor_get(x_1, 0); -lean_inc(x_21); -lean_dec(x_1); -x_22 = 5; -x_23 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; -x_24 = lean_usize_land(x_2, x_23); -x_25 = lean_usize_to_nat(x_24); -x_26 = lean_box(2); -x_27 = lean_array_get(x_26, x_21, x_25); -lean_dec(x_25); -lean_dec(x_21); -switch (lean_obj_tag(x_27)) { -case 0: -{ -lean_object* x_28; lean_object* x_29; size_t x_30; uint8_t x_31; -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_27); -x_30 = lean_unbox_usize(x_28); -lean_dec(x_28); -x_31 = lean_usize_dec_eq(x_3, x_30); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_29); -x_32 = lean_box(0); -return x_32; -} -else -{ -lean_object* x_33; -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_29); -return x_33; -} -} -case 1: -{ -lean_object* x_34; size_t x_35; -x_34 = lean_ctor_get(x_27, 0); -lean_inc(x_34); -lean_dec(x_27); -x_35 = lean_usize_shift_right(x_2, x_22); -x_1 = x_34; -x_2 = x_35; -goto _start; -} -default: -{ -lean_object* x_37; -x_37 = lean_box(0); -return x_37; -} -} -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_1, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_1, 1); -lean_inc(x_39); -lean_dec(x_1); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__3(x_38, x_39, lean_box(0), x_40, x_3); -lean_dec(x_39); -lean_dec(x_38); -return x_41; -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(lean_object* x_1, size_t x_2) { -_start: -{ -uint64_t x_3; size_t x_4; lean_object* x_5; -x_3 = lean_usize_to_uint64(x_2); -x_4 = lean_uint64_to_usize(x_3); -x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__2(x_1, x_4, x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7413,7 +11127,7 @@ switch (x_13) { case 0: { lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_9, x_2, x_3); +x_14 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_9, x_2, x_3); x_15 = 0; lean_ctor_set(x_1, 0, x_14); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_15); @@ -7433,7 +11147,7 @@ return x_1; default: { lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_12, x_2, x_3); +x_17 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_12, x_2, x_3); x_18 = 0; lean_ctor_set(x_1, 3, x_17); lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_18); @@ -7458,7 +11172,7 @@ switch (x_23) { case 0: { lean_object* x_24; uint8_t x_25; lean_object* x_26; -x_24 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_19, x_2, x_3); +x_24 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_19, x_2, x_3); x_25 = 0; x_26 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_26, 0, x_24); @@ -7485,7 +11199,7 @@ return x_28; default: { lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_29 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_22, x_2, x_3); +x_29 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_22, x_2, x_3); x_30 = 0; x_31 = lean_alloc_ctor(1, 4, 1); lean_ctor_set(x_31, 0, x_19); @@ -7514,7 +11228,7 @@ switch (x_37) { case 0: { lean_object* x_38; uint8_t x_39; -x_38 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_33, x_2, x_3); +x_38 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_33, x_2, x_3); x_39 = lean_ctor_get_uint8(x_38, sizeof(void*)*4); if (x_39 == 0) { @@ -8213,7 +11927,7 @@ return x_1; default: { lean_object* x_191; uint8_t x_192; -x_191 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_36, x_2, x_3); +x_191 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_36, x_2, x_3); x_192 = lean_ctor_get_uint8(x_191, sizeof(void*)*4); if (x_192 == 0) { @@ -8908,7 +12622,7 @@ switch (x_346) { case 0: { lean_object* x_347; uint8_t x_348; -x_347 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_342, x_2, x_3); +x_347 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_342, x_2, x_3); x_348 = lean_ctor_get_uint8(x_347, sizeof(void*)*4); if (x_348 == 0) { @@ -9337,7 +13051,7 @@ return x_423; default: { lean_object* x_424; uint8_t x_425; -x_424 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_345, x_2, x_3); +x_424 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_345, x_2, x_3); x_425 = lean_ctor_get_uint8(x_424, sizeof(void*)*4); if (x_425 == 0) { @@ -9755,7 +13469,7 @@ return x_498; } } } -LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -9763,19 +13477,19 @@ x_4 = l_Lean_RBNode_isRed___rarg(x_1); if (x_4 == 0) { lean_object* x_5; -x_5 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_1, x_2, x_3); +x_5 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_1, x_2, x_3); return x_5; } else { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__5(x_1, x_2, x_3); +x_6 = l_Lean_RBNode_ins___at_Lean_Meta_Grind_registerParent___spec__2(x_1, x_2, x_3); x_7 = l_Lean_RBNode_setBlack___rarg(x_6); return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__8(size_t 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_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5(size_t 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; @@ -9789,30 +13503,28 @@ return x_6; } else { -lean_object* x_9; size_t x_10; lean_object* x_11; uint64_t x_12; size_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; lean_object* x_21; +lean_object* x_9; lean_object* 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; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_unbox_usize(x_9); -lean_dec(x_9); -x_11 = lean_array_fget(x_3, x_5); -x_12 = lean_usize_to_uint64(x_10); -x_13 = lean_uint64_to_usize(x_12); -x_14 = 1; -x_15 = lean_usize_sub(x_1, x_14); -x_16 = 5; -x_17 = lean_usize_mul(x_16, x_15); -x_18 = lean_usize_shift_right(x_13, x_17); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_5, x_19); +x_10 = lean_array_fget(x_3, x_5); +x_11 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_9); +x_12 = lean_uint64_to_usize(x_11); +x_13 = 1; +x_14 = lean_usize_sub(x_1, x_13); +x_15 = 5; +x_16 = lean_usize_mul(x_15, x_14); +x_17 = lean_usize_shift_right(x_12, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); lean_dec(x_5); -x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_6, x_18, x_1, x_10, x_11); +x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_6, x_17, x_1, x_9, x_10); x_4 = lean_box(0); -x_5 = x_20; -x_6 = x_21; +x_5 = x_19; +x_6 = x_20; goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__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; uint8_t x_8; @@ -9830,86 +13542,81 @@ lean_dec(x_2); x_9 = !lean_is_exclusive(x_1); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_1, 1); lean_dec(x_10); x_11 = lean_ctor_get(x_1, 0); lean_dec(x_11); -x_12 = lean_box_usize(x_3); -x_13 = lean_array_push(x_5, x_12); -x_14 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_14); -lean_ctor_set(x_1, 0, x_13); +x_12 = lean_array_push(x_5, x_3); +x_13 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_13); +lean_ctor_set(x_1, 0, x_12); return x_1; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_1); -x_15 = lean_box_usize(x_3); -x_16 = lean_array_push(x_5, x_15); -x_17 = lean_array_push(x_6, x_4); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_14 = lean_array_push(x_5, x_3); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_19; size_t x_20; uint8_t x_21; -x_19 = lean_array_fget(x_5, x_2); -x_20 = lean_unbox_usize(x_19); -lean_dec(x_19); -x_21 = lean_usize_dec_eq(x_3, x_20); -if (x_21 == 0) +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_fget(x_5, x_2); +x_18 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_17); +lean_dec(x_17); +if (x_18 == 0) { -lean_object* x_22; lean_object* x_23; +lean_object* x_19; lean_object* x_20; lean_dec(x_6); lean_dec(x_5); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_2, x_19); lean_dec(x_2); -x_2 = x_23; +x_2 = x_20; goto _start; } else { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_1); -if (x_25 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_1); +if (x_22 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_1, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_1, 0); -lean_dec(x_27); -x_28 = lean_box_usize(x_3); -x_29 = lean_array_fset(x_5, x_2, x_28); -x_30 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_1, 1); +lean_dec(x_23); +x_24 = lean_ctor_get(x_1, 0); +lean_dec(x_24); +x_25 = lean_array_fset(x_5, x_2, x_3); +x_26 = lean_array_fset(x_6, x_2, x_4); lean_dec(x_2); -lean_ctor_set(x_1, 1, x_30); -lean_ctor_set(x_1, 0, x_29); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_25); return x_1; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_1); -x_31 = lean_box_usize(x_3); -x_32 = lean_array_fset(x_5, x_2, x_31); -x_33 = lean_array_fset(x_6, x_2, x_4); +x_27 = lean_array_fset(x_5, x_2, x_3); +x_28 = lean_array_fset(x_6, 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; +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_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(lean_object* x_1, size_t x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(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) @@ -9932,6 +13639,7 @@ if (x_14 == 0) { lean_dec(x_12); lean_dec(x_5); +lean_dec(x_4); return x_1; } else @@ -9947,120 +13655,113 @@ uint8_t x_18; x_18 = !lean_is_exclusive(x_15); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; size_t x_21; uint8_t x_22; +lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_15, 0); x_20 = lean_ctor_get(x_15, 1); -x_21 = lean_unbox_usize(x_19); -x_22 = lean_usize_dec_eq(x_4, x_21); -if (x_22 == 0) +x_21 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_19); +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_free_object(x_15); -x_23 = lean_box_usize(x_4); -x_24 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_23, x_5); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_array_fset(x_17, x_12, x_25); +x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_array_fset(x_17, x_12, x_23); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_26); +lean_ctor_set(x_1, 0, x_24); return x_1; } else { -lean_object* x_27; lean_object* x_28; +lean_object* x_25; lean_dec(x_20); lean_dec(x_19); -x_27 = lean_box_usize(x_4); lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_27); -x_28 = lean_array_fset(x_17, x_12, x_15); +lean_ctor_set(x_15, 0, x_4); +x_25 = lean_array_fset(x_17, x_12, x_15); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_28); +lean_ctor_set(x_1, 0, x_25); return x_1; } } else { -lean_object* x_29; lean_object* x_30; size_t x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_15); -x_31 = lean_unbox_usize(x_29); -x_32 = lean_usize_dec_eq(x_4, x_31); -if (x_32 == 0) +x_28 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_26); +if (x_28 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_box_usize(x_4); -x_34 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_29, x_30, x_33, x_5); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_array_fset(x_17, x_12, x_35); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_array_fset(x_17, x_12, x_30); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_36); +lean_ctor_set(x_1, 0, x_31); return x_1; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_30); -lean_dec(x_29); -x_37 = lean_box_usize(x_4); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_5); -x_39 = lean_array_fset(x_17, x_12, x_38); +lean_object* x_32; lean_object* x_33; +lean_dec(x_27); +lean_dec(x_26); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_fset(x_17, x_12, x_32); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +} +} +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; lean_object* x_39; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_usize_shift_right(x_2, x_9); +x_37 = lean_usize_add(x_3, x_8); +x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_35, x_36, x_37, x_4, x_5); +lean_ctor_set(x_15, 0, x_38); +x_39 = lean_array_fset(x_17, x_12, x_15); lean_dec(x_12); lean_ctor_set(x_1, 0, x_39); return x_1; } -} -} -case 1: +else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) -{ -lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_usize_shift_right(x_2, x_9); -x_43 = lean_usize_add(x_3, x_8); -x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_41, x_42, x_43, x_4, x_5); -lean_ctor_set(x_15, 0, x_44); -x_45 = lean_array_fset(x_17, x_12, x_15); +lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_15, 0); +lean_inc(x_40); +lean_dec(x_15); +x_41 = lean_usize_shift_right(x_2, x_9); +x_42 = lean_usize_add(x_3, x_8); +x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_40, x_41, x_42, x_4, x_5); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_array_fset(x_17, x_12, x_44); lean_dec(x_12); lean_ctor_set(x_1, 0, x_45); return x_1; } -else -{ -lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_15, 0); -lean_inc(x_46); -lean_dec(x_15); -x_47 = lean_usize_shift_right(x_2, x_9); -x_48 = lean_usize_add(x_3, x_8); -x_49 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_46, x_47, x_48, x_4, x_5); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_array_fset(x_17, x_12, x_50); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_51); -return x_1; -} } default: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_box_usize(x_4); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_5); -x_54 = lean_array_fset(x_17, x_12, x_53); +lean_object* x_46; lean_object* x_47; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_5); +x_47 = lean_array_fset(x_17, x_12, x_46); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_54); +lean_ctor_set(x_1, 0, x_47); return x_1; } } @@ -10068,124 +13769,121 @@ return x_1; } else { -lean_object* x_55; size_t x_56; size_t x_57; size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_55 = lean_ctor_get(x_1, 0); -lean_inc(x_55); +lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); lean_dec(x_1); -x_56 = 1; -x_57 = 5; -x_58 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; -x_59 = lean_usize_land(x_2, x_58); -x_60 = lean_usize_to_nat(x_59); -x_61 = lean_array_get_size(x_55); -x_62 = lean_nat_dec_lt(x_60, x_61); -lean_dec(x_61); -if (x_62 == 0) +x_49 = 1; +x_50 = 5; +x_51 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_52 = lean_usize_land(x_2, x_51); +x_53 = lean_usize_to_nat(x_52); +x_54 = lean_array_get_size(x_48); +x_55 = lean_nat_dec_lt(x_53, x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_63; -lean_dec(x_60); +lean_object* x_56; +lean_dec(x_53); lean_dec(x_5); -x_63 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_63, 0, x_55); -return x_63; +lean_dec(x_4); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_48); +return x_56; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_array_fget(x_55, x_60); -x_65 = lean_box(0); -x_66 = lean_array_fset(x_55, x_60, x_65); -switch (lean_obj_tag(x_64)) { +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_array_fget(x_48, x_53); +x_58 = lean_box(0); +x_59 = lean_array_fset(x_48, x_53, x_58); +switch (lean_obj_tag(x_57)) { case 0: { -lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; uint8_t x_71; -x_67 = lean_ctor_get(x_64, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_64, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_69 = x_64; +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_62 = x_57; } else { - lean_dec_ref(x_64); - x_69 = lean_box(0); + lean_dec_ref(x_57); + x_62 = lean_box(0); } -x_70 = lean_unbox_usize(x_67); -x_71 = lean_usize_dec_eq(x_4, x_70); -if (x_71 == 0) +x_63 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_60); +if (x_63 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_69); -x_72 = lean_box_usize(x_4); -x_73 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_67, x_68, x_72, x_5); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_73); -x_75 = lean_array_fset(x_66, x_60, x_74); -lean_dec(x_60); -x_76 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_76, 0, x_75); -return x_76; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_62); +x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_array_fset(x_59, x_53, x_65); +lean_dec(x_53); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_68); -lean_dec(x_67); -x_77 = lean_box_usize(x_4); -if (lean_is_scalar(x_69)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_69; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_5); -x_79 = lean_array_fset(x_66, x_60, x_78); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_61); lean_dec(x_60); -x_80 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_80, 0, x_79); -return x_80; +if (lean_is_scalar(x_62)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_62; +} +lean_ctor_set(x_68, 0, x_4); +lean_ctor_set(x_68, 1, x_5); +x_69 = lean_array_fset(x_59, x_53, x_68); +lean_dec(x_53); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +return x_70; } } case 1: { -lean_object* x_81; lean_object* x_82; size_t x_83; size_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_81 = lean_ctor_get(x_64, 0); -lean_inc(x_81); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - x_82 = x_64; +lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_71 = lean_ctor_get(x_57, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + x_72 = x_57; } else { - lean_dec_ref(x_64); - x_82 = lean_box(0); + lean_dec_ref(x_57); + x_72 = lean_box(0); } -x_83 = lean_usize_shift_right(x_2, x_57); -x_84 = lean_usize_add(x_3, x_56); -x_85 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_81, x_83, x_84, x_4, x_5); -if (lean_is_scalar(x_82)) { - x_86 = lean_alloc_ctor(1, 1, 0); +x_73 = lean_usize_shift_right(x_2, x_50); +x_74 = lean_usize_add(x_3, x_49); +x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_71, x_73, x_74, x_4, x_5); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(1, 1, 0); } else { - x_86 = x_82; + x_76 = x_72; } -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_array_fset(x_66, x_60, x_86); -lean_dec(x_60); -x_88 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_88, 0, x_87); -return x_88; +lean_ctor_set(x_76, 0, x_75); +x_77 = lean_array_fset(x_59, x_53, x_76); +lean_dec(x_53); +x_78 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_78, 0, x_77); +return x_78; } default: { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_89 = lean_box_usize(x_4); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_5); -x_91 = lean_array_fset(x_66, x_60, x_90); -lean_dec(x_60); -x_92 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_92, 0, x_91); -return x_92; +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_4); +lean_ctor_set(x_79, 1, x_5); +x_80 = lean_array_fset(x_59, x_53, x_79); +lean_dec(x_53); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; } } } @@ -10193,106 +13891,300 @@ return x_92; } else { -uint8_t x_93; -x_93 = !lean_is_exclusive(x_1); -if (x_93 == 0) +uint8_t x_82; +x_82 = !lean_is_exclusive(x_1); +if (x_82 == 0) { -lean_object* x_94; lean_object* x_95; size_t x_96; uint8_t x_97; -x_94 = lean_unsigned_to_nat(0u); -x_95 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9(x_1, x_94, x_4, x_5); -x_96 = 7; -x_97 = lean_usize_dec_le(x_96, x_3); -if (x_97 == 0) +lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; +x_83 = lean_unsigned_to_nat(0u); +x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__6(x_1, x_83, x_4, x_5); +x_85 = 7; +x_86 = lean_usize_dec_le(x_85, x_3); +if (x_86 == 0) { -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_95); -x_99 = lean_unsigned_to_nat(4u); -x_100 = lean_nat_dec_lt(x_98, x_99); -lean_dec(x_98); +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_dec_lt(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_84, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_dec(x_84); +x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5(x_3, x_90, x_91, lean_box(0), x_83, x_92); +lean_dec(x_91); +lean_dec(x_90); +return x_93; +} +else +{ +return x_84; +} +} +else +{ +return x_84; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; +x_94 = lean_ctor_get(x_1, 0); +x_95 = lean_ctor_get(x_1, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_1); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__6(x_96, x_97, x_4, x_5); +x_99 = 7; +x_100 = lean_usize_dec_le(x_99, x_3); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_95, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_95, 1); -lean_inc(x_102); -lean_dec(x_95); -x_103 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; -x_104 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__8(x_3, x_101, x_102, lean_box(0), x_94, x_103); -lean_dec(x_102); +lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); +x_102 = lean_unsigned_to_nat(4u); +x_103 = lean_nat_dec_lt(x_101, x_102); lean_dec(x_101); -return x_104; -} -else +if (x_103 == 0) { -return x_95; -} -} -else -{ -return x_95; -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; uint8_t x_111; -x_105 = lean_ctor_get(x_1, 0); -x_106 = lean_ctor_get(x_1, 1); -lean_inc(x_106); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); lean_inc(x_105); -lean_dec(x_1); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = lean_unsigned_to_nat(0u); -x_109 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9(x_107, x_108, x_4, x_5); -x_110 = 7; -x_111 = lean_usize_dec_le(x_110, x_3); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_109); -x_113 = lean_unsigned_to_nat(4u); -x_114 = lean_nat_dec_lt(x_112, x_113); -lean_dec(x_112); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_115 = lean_ctor_get(x_109, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_109, 1); -lean_inc(x_116); -lean_dec(x_109); -x_117 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; -x_118 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__8(x_3, x_115, x_116, lean_box(0), x_108, x_117); -lean_dec(x_116); -lean_dec(x_115); -return x_118; +lean_dec(x_98); +x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5(x_3, x_104, x_105, lean_box(0), x_97, x_106); +lean_dec(x_105); +lean_dec(x_104); +return x_107; } else { -return x_109; +return x_98; } } else { -return x_109; +return x_98; } } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(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 = lean_usize_to_uint64(x_2); +x_4 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_5 = lean_uint64_to_usize(x_4); x_6 = 1; -x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_1, x_5, x_6, x_2, x_3); +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_1, x_5, x_6, x_2, x_3); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_fget(x_1, x_4); +x_10 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_5, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_fget(x_2, x_4); +lean_dec(x_4); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8(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; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_8 = lean_usize_land(x_2, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(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(x_11); +x_14 = l_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(x_11); +x_17 = lean_usize_shift_right(x_2, x_6); +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; size_t x_21; size_t x_22; size_t x_23; lean_object* 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 = 5; +x_22 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_23 = lean_usize_land(x_2, x_22); +x_24 = lean_usize_to_nat(x_23); +x_25 = lean_box(2); +x_26 = lean_array_get(x_25, x_20, x_24); +lean_dec(x_24); +lean_dec(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(x_26); +x_29 = l_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(x_26); +x_33 = lean_usize_shift_right(x_2, x_21); +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(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +lean_dec(x_1); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9(x_36, x_37, lean_box(0), x_38, x_3); +lean_dec(x_37); +lean_dec(x_36); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(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_instHashableENodeKey_unsafe__1(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8(x_1, x_4, x_2); +return x_5; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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: { @@ -10329,301 +14221,219 @@ return x_19; } else { -lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_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_63; lean_object* x_64; x_20 = lean_ctor_get(x_12, 1); lean_inc(x_20); lean_dec(x_12); x_21 = lean_ctor_get(x_13, 0); lean_inc(x_21); lean_dec(x_13); -x_22 = lean_ptr_addr(x_21); -lean_dec(x_21); -x_23 = lean_st_ref_get(x_3, x_20); -x_24 = lean_ctor_get(x_23, 0); +x_22 = lean_st_ref_get(x_3, x_20); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 2); lean_inc(x_25); lean_dec(x_23); -x_26 = lean_ctor_get(x_24, 2); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(x_26, x_22); -x_28 = lean_st_ref_take(x_3, x_25); -if (lean_obj_tag(x_27) == 0) +x_63 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_25, x_21); +x_64 = lean_st_ref_take(x_3, x_24); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t 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(x_28); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_box(0); +x_26 = x_67; +x_27 = x_65; +x_28 = x_66; +goto block_62; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_63, 0); +lean_inc(x_68); +lean_dec(x_63); +x_69 = lean_ctor_get(x_64, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_64, 1); +lean_inc(x_70); +lean_dec(x_64); +x_26 = x_68; +x_27 = x_69; +x_28 = x_70; +goto block_62; +} +block_62: +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +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_30 = lean_ctor_get(x_27, 2); x_31 = lean_box(0); -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) +x_32 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_26, x_1, x_31); +x_33 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_30, x_21, x_32); +lean_ctor_set(x_27, 2, x_33); +x_34 = lean_st_ref_set(x_3, x_27, x_28); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_33 = lean_ctor_get(x_29, 2); -x_34 = lean_box(0); -x_35 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(x_31, x_1, x_34); -x_36 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_33, x_22, x_35); -lean_ctor_set(x_29, 2, x_36); -x_37 = lean_st_ref_set(x_3, x_29, x_30); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set(x_37, 0, x_34); -return x_37; +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_31); +return x_34; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_34); -lean_ctor_set(x_41, 1, x_40); -return x_41; +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_31); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } 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; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_42 = lean_ctor_get(x_29, 0); -x_43 = lean_ctor_get(x_29, 1); -x_44 = lean_ctor_get(x_29, 2); -x_45 = lean_ctor_get(x_29, 3); -x_46 = lean_ctor_get(x_29, 4); -x_47 = lean_ctor_get(x_29, 5); -x_48 = lean_ctor_get_uint8(x_29, sizeof(void*)*8); -x_49 = lean_ctor_get(x_29, 6); -x_50 = lean_ctor_get(x_29, 7); +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; 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_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +x_41 = lean_ctor_get(x_27, 2); +x_42 = lean_ctor_get(x_27, 3); +x_43 = lean_ctor_get(x_27, 4); +x_44 = lean_ctor_get(x_27, 5); +x_45 = lean_ctor_get_uint8(x_27, sizeof(void*)*14); +x_46 = lean_ctor_get(x_27, 6); +x_47 = lean_ctor_get(x_27, 7); +x_48 = lean_ctor_get(x_27, 8); +x_49 = lean_ctor_get(x_27, 9); +x_50 = lean_ctor_get(x_27, 10); +x_51 = lean_ctor_get(x_27, 11); +x_52 = lean_ctor_get(x_27, 12); +x_53 = lean_ctor_get(x_27, 13); +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_inc(x_44); lean_inc(x_43); lean_inc(x_42); -lean_dec(x_29); -x_51 = lean_box(0); -x_52 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(x_31, x_1, x_51); -x_53 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_44, x_22, x_52); -x_54 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_54, 0, x_42); -lean_ctor_set(x_54, 1, x_43); -lean_ctor_set(x_54, 2, x_53); -lean_ctor_set(x_54, 3, x_45); -lean_ctor_set(x_54, 4, x_46); -lean_ctor_set(x_54, 5, x_47); -lean_ctor_set(x_54, 6, x_49); -lean_ctor_set(x_54, 7, x_50); -lean_ctor_set_uint8(x_54, sizeof(void*)*8, x_48); -x_55 = lean_st_ref_set(x_3, x_54, x_30); -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; -} else { - lean_dec_ref(x_55); - x_57 = lean_box(0); -} -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_57; -} -lean_ctor_set(x_58, 0, x_51); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_28, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_27, 0); -lean_inc(x_60); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); lean_dec(x_27); -x_61 = lean_ctor_get(x_28, 1); -lean_inc(x_61); -lean_dec(x_28); -x_62 = !lean_is_exclusive(x_59); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_63 = lean_ctor_get(x_59, 2); -x_64 = lean_box(0); -x_65 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(x_60, x_1, x_64); -x_66 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_63, x_22, x_65); -lean_ctor_set(x_59, 2, x_66); -x_67 = lean_st_ref_set(x_3, x_59, x_61); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set(x_67, 0, x_64); -return x_67; -} -else -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_64); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -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; 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; lean_object* x_88; -x_72 = lean_ctor_get(x_59, 0); -x_73 = lean_ctor_get(x_59, 1); -x_74 = lean_ctor_get(x_59, 2); -x_75 = lean_ctor_get(x_59, 3); -x_76 = lean_ctor_get(x_59, 4); -x_77 = lean_ctor_get(x_59, 5); -x_78 = lean_ctor_get_uint8(x_59, sizeof(void*)*8); -x_79 = lean_ctor_get(x_59, 6); -x_80 = lean_ctor_get(x_59, 7); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_59); -x_81 = lean_box(0); -x_82 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(x_60, x_1, x_81); -x_83 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_74, x_22, x_82); -x_84 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_84, 0, x_72); -lean_ctor_set(x_84, 1, x_73); -lean_ctor_set(x_84, 2, x_83); -lean_ctor_set(x_84, 3, x_75); -lean_ctor_set(x_84, 4, x_76); -lean_ctor_set(x_84, 5, x_77); -lean_ctor_set(x_84, 6, x_79); -lean_ctor_set(x_84, 7, x_80); -lean_ctor_set_uint8(x_84, sizeof(void*)*8, x_78); -x_85 = lean_st_ref_set(x_3, x_84, x_61); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_87 = x_85; +x_54 = lean_box(0); +x_55 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_26, x_1, x_54); +x_56 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_41, x_21, x_55); +x_57 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_57, 0, x_39); +lean_ctor_set(x_57, 1, x_40); +lean_ctor_set(x_57, 2, x_56); +lean_ctor_set(x_57, 3, x_42); +lean_ctor_set(x_57, 4, x_43); +lean_ctor_set(x_57, 5, x_44); +lean_ctor_set(x_57, 6, x_46); +lean_ctor_set(x_57, 7, x_47); +lean_ctor_set(x_57, 8, x_48); +lean_ctor_set(x_57, 9, x_49); +lean_ctor_set(x_57, 10, x_50); +lean_ctor_set(x_57, 11, x_51); +lean_ctor_set(x_57, 12, x_52); +lean_ctor_set(x_57, 13, x_53); +lean_ctor_set_uint8(x_57, sizeof(void*)*14, x_45); +x_58 = lean_st_ref_set(x_3, x_57, x_28); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_60 = x_58; } else { - lean_dec_ref(x_85); - x_87 = lean_box(0); + lean_dec_ref(x_58); + x_60 = lean_box(0); } -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); } else { - x_88 = x_87; + x_61 = x_60; } -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_86); -return x_88; +lean_ctor_set(x_61, 0, x_54); +lean_ctor_set(x_61, 1, x_59); +return x_61; } } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__3___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_5); -lean_dec(x_5); -x_7 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__3(x_1, x_2, x_3, x_4, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__2___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_2); -lean_dec(x_2); -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__2(x_1, x_4, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -size_t x_3; lean_object* x_4; -x_3 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_4 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(x_1, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___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) { _start: { size_t x_7; lean_object* x_8; x_7 = lean_unbox_usize(x_1); lean_dec(x_1); -x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__8(x_7, x_2, x_3, x_4, x_5, x_6); +x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_registerParent___spec__5(x_7, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4___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_5; lean_object* x_6; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_registerParent___spec__9(x_1, x_2, x_5, x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7___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; size_t x_8; lean_object* x_9; +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 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_9 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__7(x_1, x_6, x_7, x_8, x_5); -return x_9; +x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_registerParent___spec__4(x_1, x_6, x_7, x_4, x_5); +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9___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_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_registerParent___spec__9(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8___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_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_1, x_4, x_3); +x_5 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_registerParent___spec__8(x_1, x_4, x_3); +lean_dec(x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7___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_registerParent___spec__7(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent___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: { @@ -10649,63 +14459,61 @@ x_11 = lean_st_ref_get(x_2, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; size_t x_15; lean_object* x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_13, 2); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_ptr_addr(x_1); -x_16 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(x_14, x_15); -if (lean_obj_tag(x_16) == 0) +x_15 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_14, x_1); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_box(0); +lean_ctor_set(x_11, 0, x_16); +return x_11; +} +else { lean_object* x_17; -x_17 = lean_box(0); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); lean_ctor_set(x_11, 0, x_17); return x_11; } -else -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_ctor_set(x_11, 0, x_18); -return x_11; -} } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); lean_inc(x_19); +lean_inc(x_18); lean_dec(x_11); -x_21 = lean_ctor_get(x_19, 2); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ptr_addr(x_1); -x_23 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(x_21, x_22); -if (lean_obj_tag(x_23) == 0) +x_20 = lean_ctor_get(x_18, 2); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_20, x_1); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +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_19); +return x_23; +} +else { lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_20); +lean_ctor_set(x_25, 1, x_19); return x_25; } -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_20); -return x_27; -} } } } @@ -10726,7 +14534,7 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10742,31 +14550,30 @@ return x_6; } else { -lean_object* x_7; size_t x_8; uint8_t x_9; +lean_object* x_7; uint8_t x_8; x_7 = lean_array_fget(x_1, x_3); -x_8 = lean_unbox_usize(x_7); +x_8 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_7, x_2); lean_dec(x_7); -x_9 = lean_usize_dec_eq(x_8, x_2); -if (x_9 == 0) +if (x_8 == 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_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); lean_dec(x_3); -x_3 = x_11; +x_3 = x_10; goto _start; } else { -lean_object* x_13; -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_3); -return x_13; +lean_object* x_12; +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_3); +return x_12; } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10783,14 +14590,13 @@ x_10 = lean_array_get(x_9, x_4, x_8); switch (lean_obj_tag(x_10)) { case 0: { -lean_object* x_11; size_t x_12; uint8_t x_13; +lean_object* x_11; uint8_t x_12; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); lean_dec(x_10); -x_12 = lean_unbox_usize(x_11); +x_12 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_11); lean_dec(x_11); -x_13 = lean_usize_dec_eq(x_3, x_12); -if (x_13 == 0) +if (x_12 == 0) { lean_dec(x_8); lean_dec(x_4); @@ -10798,212 +14604,212 @@ return x_1; } else { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_1); -if (x_14 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_1); +if (x_13 == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_1, 0); -lean_dec(x_15); -x_16 = lean_array_set(x_4, x_8, x_9); +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_dec(x_14); +x_15 = lean_array_set(x_4, x_8, x_9); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_16); +lean_ctor_set(x_1, 0, x_15); return x_1; } else { -lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_17 = lean_array_set(x_4, x_8, x_9); +x_16 = lean_array_set(x_4, x_8, x_9); lean_dec(x_8); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_17); -return x_18; +x_17 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; } } } case 1: { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_1); -if (x_19 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_1); +if (x_18 == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_1, 0); -lean_dec(x_20); -x_21 = !lean_is_exclusive(x_10); -if (x_21 == 0) +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_1, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_10); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; size_t x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_10, 0); -x_23 = lean_array_set(x_4, x_8, x_9); -x_24 = lean_usize_shift_right(x_2, x_5); -x_25 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_22, x_24, x_3); -lean_inc(x_25); -x_26 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_25); -if (lean_obj_tag(x_26) == 0) +lean_object* x_21; lean_object* x_22; size_t x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_array_set(x_4, x_8, x_9); +x_23 = lean_usize_shift_right(x_2, x_5); +x_24 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_21, x_23, x_3); +lean_inc(x_24); +x_25 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_24); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; -lean_ctor_set(x_10, 0, x_25); -x_27 = lean_array_set(x_23, x_8, x_10); +lean_object* x_26; +lean_ctor_set(x_10, 0, x_24); +x_26 = lean_array_set(x_22, x_8, x_10); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_27); +lean_ctor_set(x_1, 0, x_26); return x_1; } else { -lean_object* x_28; uint8_t x_29; -lean_dec(x_25); +lean_object* x_27; uint8_t x_28; +lean_dec(x_24); lean_free_object(x_10); -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -lean_dec(x_26); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_30; -x_30 = lean_array_set(x_23, x_8, x_28); +lean_object* x_29; +x_29 = lean_array_set(x_22, x_8, x_27); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_30); +lean_ctor_set(x_1, 0, x_29); return x_1; } else { -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_ctor_get(x_28, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_27, 0); +x_31 = lean_ctor_get(x_27, 1); lean_inc(x_31); -lean_dec(x_28); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_array_set(x_23, x_8, x_33); +lean_inc(x_30); +lean_dec(x_27); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_array_set(x_22, x_8, x_32); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_34); +lean_ctor_set(x_1, 0, x_33); return x_1; } } } else { -lean_object* x_35; lean_object* x_36; size_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_10, 0); -lean_inc(x_35); +lean_object* x_34; lean_object* x_35; size_t x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_10, 0); +lean_inc(x_34); lean_dec(x_10); -x_36 = lean_array_set(x_4, x_8, x_9); -x_37 = lean_usize_shift_right(x_2, x_5); -x_38 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_35, x_37, x_3); -lean_inc(x_38); -x_39 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_38); -if (lean_obj_tag(x_39) == 0) +x_35 = lean_array_set(x_4, x_8, x_9); +x_36 = lean_usize_shift_right(x_2, x_5); +x_37 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_34, x_36, x_3); +lean_inc(x_37); +x_38 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_37); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_38); -x_41 = lean_array_set(x_36, x_8, x_40); +lean_object* x_39; lean_object* x_40; +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_37); +x_40 = lean_array_set(x_35, x_8, x_39); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_41); +lean_ctor_set(x_1, 0, x_40); return x_1; } 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_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_37); +x_41 = lean_ctor_get(x_38, 0); +lean_inc(x_41); lean_dec(x_38); -x_42 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_ctor_get(x_42, 0); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_45 = x_42; +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_44 = x_41; } else { - lean_dec_ref(x_42); - x_45 = lean_box(0); + lean_dec_ref(x_41); + x_44 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_45; + x_45 = x_44; } -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -x_47 = lean_array_set(x_36, x_8, x_46); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +x_46 = lean_array_set(x_35, x_8, x_45); lean_dec(x_8); -lean_ctor_set(x_1, 0, x_47); +lean_ctor_set(x_1, 0, x_46); return x_1; } } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; size_t x_51; lean_object* x_52; lean_object* x_53; +lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; lean_object* x_51; lean_object* x_52; lean_dec(x_1); -x_48 = lean_ctor_get(x_10, 0); -lean_inc(x_48); +x_47 = lean_ctor_get(x_10, 0); +lean_inc(x_47); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); - x_49 = x_10; + x_48 = x_10; } else { lean_dec_ref(x_10); - x_49 = lean_box(0); + x_48 = lean_box(0); } -x_50 = lean_array_set(x_4, x_8, x_9); -x_51 = lean_usize_shift_right(x_2, x_5); -x_52 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_48, x_51, x_3); -lean_inc(x_52); -x_53 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_52); -if (lean_obj_tag(x_53) == 0) +x_49 = lean_array_set(x_4, x_8, x_9); +x_50 = lean_usize_shift_right(x_2, x_5); +x_51 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_47, x_50, x_3); +lean_inc(x_51); +x_52 = l_Lean_PersistentHashMap_isUnaryNode___rarg(x_51); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -if (lean_is_scalar(x_49)) { - x_54 = lean_alloc_ctor(1, 1, 0); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +if (lean_is_scalar(x_48)) { + x_53 = lean_alloc_ctor(1, 1, 0); } else { - x_54 = x_49; + x_53 = x_48; } -lean_ctor_set(x_54, 0, x_52); -x_55 = lean_array_set(x_50, x_8, x_54); +lean_ctor_set(x_53, 0, x_51); +x_54 = lean_array_set(x_49, x_8, x_53); lean_dec(x_8); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_55); -return x_56; +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +return x_55; } 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_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_dec(x_51); +lean_dec(x_48); +x_56 = lean_ctor_get(x_52, 0); +lean_inc(x_56); lean_dec(x_52); -lean_dec(x_49); -x_57 = lean_ctor_get(x_53, 0); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_53); -x_58 = lean_ctor_get(x_57, 0); +x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; } else { - lean_dec_ref(x_57); - x_60 = lean_box(0); + lean_dec_ref(x_56); + x_59 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_61 = x_60; + x_60 = x_59; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -x_62 = lean_array_set(x_50, x_8, x_61); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +x_61 = lean_array_set(x_49, x_8, x_60); lean_dec(x_8); -x_63 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_63, 0, x_62); -return x_63; +x_62 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_62, 0, x_61); +return x_62; } } } @@ -11017,64 +14823,64 @@ return x_1; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_1, 0); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_1, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_1, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_1, 1); -lean_inc(x_65); -x_66 = lean_unsigned_to_nat(0u); -x_67 = l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(x_64, x_3, x_66); -if (lean_obj_tag(x_67) == 0) +x_65 = lean_unsigned_to_nat(0u); +x_66 = l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(x_63, x_3, x_65); +if (lean_obj_tag(x_66) == 0) { -lean_dec(x_65); lean_dec(x_64); +lean_dec(x_63); return x_1; } else { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_1); -if (x_68 == 0) +uint8_t x_67; +x_67 = !lean_is_exclusive(x_1); +if (x_67 == 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_1, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_68 = lean_ctor_get(x_1, 1); +lean_dec(x_68); +x_69 = lean_ctor_get(x_1, 0); lean_dec(x_69); -x_70 = lean_ctor_get(x_1, 0); -lean_dec(x_70); -x_71 = lean_ctor_get(x_67, 0); -lean_inc(x_71); -lean_dec(x_67); -lean_inc(x_71); -x_72 = l_Array_eraseIdx___rarg(x_64, x_71, lean_box(0)); -x_73 = l_Array_eraseIdx___rarg(x_65, x_71, lean_box(0)); -lean_ctor_set(x_1, 1, x_73); -lean_ctor_set(x_1, 0, x_72); +x_70 = lean_ctor_get(x_66, 0); +lean_inc(x_70); +lean_dec(x_66); +lean_inc(x_70); +x_71 = l_Array_eraseIdx___rarg(x_63, x_70, lean_box(0)); +x_72 = l_Array_eraseIdx___rarg(x_64, x_70, lean_box(0)); +lean_ctor_set(x_1, 1, x_72); +lean_ctor_set(x_1, 0, x_71); return x_1; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_dec(x_1); -x_74 = lean_ctor_get(x_67, 0); -lean_inc(x_74); -lean_dec(x_67); -lean_inc(x_74); -x_75 = l_Array_eraseIdx___rarg(x_64, x_74, lean_box(0)); -x_76 = l_Array_eraseIdx___rarg(x_65, x_74, lean_box(0)); -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; +x_73 = lean_ctor_get(x_66, 0); +lean_inc(x_73); +lean_dec(x_66); +lean_inc(x_73); +x_74 = l_Array_eraseIdx___rarg(x_63, x_73, lean_box(0)); +x_75 = l_Array_eraseIdx___rarg(x_64, x_73, lean_box(0)); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(lean_object* x_1, size_t x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint64_t x_3; size_t x_4; lean_object* x_5; -x_3 = lean_usize_to_uint64(x_2); +x_3 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_4 = lean_uint64_to_usize(x_3); x_5 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_1, x_4, x_2); return x_5; @@ -11099,119 +14905,132 @@ lean_dec(x_14); x_17 = !lean_is_exclusive(x_15); if (x_17 == 0) { -lean_object* x_18; size_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_18 = lean_ctor_get(x_15, 2); -x_19 = lean_ptr_addr(x_1); -x_20 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_18, x_19); -lean_ctor_set(x_15, 2, x_20); -x_21 = lean_st_ref_set(x_2, x_15, x_16); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_19 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_18, x_1); +lean_ctor_set(x_15, 2, x_19); +x_20 = lean_st_ref_set(x_2, x_15, x_16); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_12); -return x_21; +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_12); +return x_20; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } 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; uint8_t x_32; lean_object* x_33; lean_object* x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); -x_28 = lean_ctor_get(x_15, 2); -x_29 = lean_ctor_get(x_15, 3); -x_30 = lean_ctor_get(x_15, 4); -x_31 = lean_ctor_get(x_15, 5); -x_32 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); -x_33 = lean_ctor_get(x_15, 6); -x_34 = lean_ctor_get(x_15, 7); +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; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +x_27 = lean_ctor_get(x_15, 2); +x_28 = lean_ctor_get(x_15, 3); +x_29 = lean_ctor_get(x_15, 4); +x_30 = lean_ctor_get(x_15, 5); +x_31 = lean_ctor_get_uint8(x_15, sizeof(void*)*14); +x_32 = lean_ctor_get(x_15, 6); +x_33 = lean_ctor_get(x_15, 7); +x_34 = lean_ctor_get(x_15, 8); +x_35 = lean_ctor_get(x_15, 9); +x_36 = lean_ctor_get(x_15, 10); +x_37 = lean_ctor_get(x_15, 11); +x_38 = lean_ctor_get(x_15, 12); +x_39 = lean_ctor_get(x_15, 13); +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_inc(x_33); -lean_inc(x_31); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); +lean_inc(x_25); lean_dec(x_15); -x_35 = lean_ptr_addr(x_1); -x_36 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_28, x_35); -x_37 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_37, 0, x_26); -lean_ctor_set(x_37, 1, x_27); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_29); -lean_ctor_set(x_37, 4, x_30); -lean_ctor_set(x_37, 5, x_31); -lean_ctor_set(x_37, 6, x_33); -lean_ctor_set(x_37, 7, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_32); -x_38 = lean_st_ref_set(x_2, x_37, x_16); -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; +x_40 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_27, x_1); +x_41 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_41, 0, x_25); +lean_ctor_set(x_41, 1, x_26); +lean_ctor_set(x_41, 2, x_40); +lean_ctor_set(x_41, 3, x_28); +lean_ctor_set(x_41, 4, x_29); +lean_ctor_set(x_41, 5, x_30); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_37); +lean_ctor_set(x_41, 12, x_38); +lean_ctor_set(x_41, 13, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*14, x_31); +x_42 = lean_st_ref_set(x_2, x_41, x_16); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_42); + x_44 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_40; + x_45 = x_44; } -lean_ctor_set(x_41, 0, x_12); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_ctor_set(x_45, 0, x_12); +lean_ctor_set(x_45, 1, x_43); +return x_45; } } } LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3___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_object* x_4; +x_4 = l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(x_1, x_2, x_3); lean_dec(x_2); -x_5 = l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(x_1, x_4, x_3); lean_dec(x_1); -return x_5; +return x_4; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2___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; +size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = lean_unbox_usize(x_3); +x_5 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_1, x_4, x_3); lean_dec(x_3); -x_6 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(x_1, x_4, x_5); -return x_6; +return x_5; } } LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -size_t x_3; lean_object* x_4; -x_3 = lean_unbox_usize(x_2); +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_1, x_2); lean_dec(x_2); -x_4 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_1, x_3); -return x_4; +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getParentsAndReset___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) { @@ -11264,7 +15083,7 @@ x_20 = lean_ctor_get(x_18, 0); lean_inc(x_20); lean_dec(x_18); x_21 = lean_box(0); -x_22 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__4(x_20, x_15, x_21); +x_22 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_20, x_15, x_21); x_1 = x_16; x_2 = x_22; x_11 = x_19; @@ -11275,42 +15094,22 @@ goto _start; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_copyParentsTo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_48; lean_object* x_49; -x_12 = lean_ptr_addr(x_2); -x_13 = lean_st_ref_get(x_3, x_11); -x_14 = lean_ctor_get(x_13, 0); +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_54; +x_12 = lean_st_ref_get(x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 2); lean_inc(x_15); lean_dec(x_13); -x_48 = lean_ctor_get(x_14, 2); -lean_inc(x_48); -lean_dec(x_14); -x_49 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__1(x_48, x_12); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_box(0); -x_51 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___spec__1(x_1, x_50, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -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(x_51); -x_54 = lean_ctor_get(x_52, 0); -lean_inc(x_54); -lean_dec(x_52); -x_16 = x_54; -x_17 = x_53; -goto block_47; -} -else +x_54 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_15, x_2); +if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_55 = lean_ctor_get(x_49, 0); -lean_inc(x_55); -lean_dec(x_49); -x_56 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___spec__1(x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_55 = lean_box(0); +x_56 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___spec__1(x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); @@ -11321,9 +15120,28 @@ lean_inc(x_59); lean_dec(x_57); x_16 = x_59; x_17 = x_58; -goto block_47; +goto block_53; } -block_47: +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_54, 0); +lean_inc(x_60); +lean_dec(x_54); +x_61 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_copyParentsTo___spec__1(x_1, x_60, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +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(x_61); +x_64 = lean_ctor_get(x_62, 0); +lean_inc(x_64); +lean_dec(x_62); +x_16 = x_64; +x_17 = x_63; +goto block_53; +} +block_53: { lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_18 = lean_st_ref_take(x_3, x_17); @@ -11337,7 +15155,7 @@ if (x_21 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; x_22 = lean_ctor_get(x_19, 2); -x_23 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_22, x_12, x_16); +x_23 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_22, x_2, x_16); lean_ctor_set(x_19, 2, x_23); x_24 = lean_st_ref_set(x_3, x_19, x_20); x_25 = !lean_is_exclusive(x_24); @@ -11365,16 +15183,28 @@ return x_30; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t 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_31; lean_object* x_32; 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; 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_31 = lean_ctor_get(x_19, 0); x_32 = lean_ctor_get(x_19, 1); x_33 = lean_ctor_get(x_19, 2); x_34 = lean_ctor_get(x_19, 3); x_35 = lean_ctor_get(x_19, 4); x_36 = lean_ctor_get(x_19, 5); -x_37 = lean_ctor_get_uint8(x_19, sizeof(void*)*8); +x_37 = lean_ctor_get_uint8(x_19, sizeof(void*)*14); x_38 = lean_ctor_get(x_19, 6); x_39 = lean_ctor_get(x_19, 7); +x_40 = lean_ctor_get(x_19, 8); +x_41 = lean_ctor_get(x_19, 9); +x_42 = lean_ctor_get(x_19, 10); +x_43 = lean_ctor_get(x_19, 11); +x_44 = lean_ctor_get(x_19, 12); +x_45 = lean_ctor_get(x_19, 13); +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_36); @@ -11384,37 +15214,43 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_19); -x_40 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__6(x_33, x_12, x_16); -x_41 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_41, 0, x_31); -lean_ctor_set(x_41, 1, x_32); -lean_ctor_set(x_41, 2, x_40); -lean_ctor_set(x_41, 3, x_34); -lean_ctor_set(x_41, 4, x_35); -lean_ctor_set(x_41, 5, x_36); -lean_ctor_set(x_41, 6, x_38); -lean_ctor_set(x_41, 7, x_39); -lean_ctor_set_uint8(x_41, sizeof(void*)*8, x_37); -x_42 = lean_st_ref_set(x_3, x_41, x_20); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_44 = x_42; +x_46 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_33, x_2, x_16); +x_47 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_47, 0, x_31); +lean_ctor_set(x_47, 1, x_32); +lean_ctor_set(x_47, 2, x_46); +lean_ctor_set(x_47, 3, x_34); +lean_ctor_set(x_47, 4, x_35); +lean_ctor_set(x_47, 5, x_36); +lean_ctor_set(x_47, 6, x_38); +lean_ctor_set(x_47, 7, x_39); +lean_ctor_set(x_47, 8, x_40); +lean_ctor_set(x_47, 9, x_41); +lean_ctor_set(x_47, 10, x_42); +lean_ctor_set(x_47, 11, x_43); +lean_ctor_set(x_47, 12, x_44); +lean_ctor_set(x_47, 13, x_45); +lean_ctor_set_uint8(x_47, sizeof(void*)*14, x_37); +x_48 = lean_st_ref_set(x_3, x_47, x_20); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_50 = x_48; } else { - lean_dec_ref(x_42); - x_44 = lean_box(0); + lean_dec_ref(x_48); + x_50 = lean_box(0); } -x_45 = lean_box(0); -if (lean_is_scalar(x_44)) { - x_46 = lean_alloc_ctor(0, 2, 0); +x_51 = lean_box(0); +if (lean_is_scalar(x_50)) { + x_52 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_44; + x_52 = x_50; } -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_49); +return x_52; } } } @@ -11448,29 +15284,10 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_12; } } -LEAN_EXPORT size_t l_Lean_Meta_Grind_setENode_unsafe__1(lean_object* x_1) { -_start: -{ -size_t x_2; -x_2 = lean_ptr_addr(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_setENode_unsafe__1(x_1); -lean_dec(x_1); -x_3 = lean_box_usize(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2___rarg(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg(lean_object* x_1) { _start: { lean_object* x_2; @@ -11479,28 +15296,28 @@ lean_inc(x_2); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_setENode_unsafe__2___rarg___boxed), 1, 0); +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_setENode_unsafe__1___rarg___boxed), 1, 0); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2___rarg___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Meta_Grind_setENode_unsafe__2___rarg(x_1); +x_2 = l_Lean_Meta_Grind_setENode_unsafe__1___rarg(x_1); lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Meta_Grind_setENode_unsafe__2(x_1, x_2); +x_3 = l_Lean_Meta_Grind_setENode_unsafe__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -11520,30 +15337,28 @@ return x_6; } else { -lean_object* x_9; size_t x_10; lean_object* x_11; uint64_t x_12; size_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; lean_object* x_21; +lean_object* x_9; lean_object* 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; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_9 = lean_array_fget(x_2, x_5); -x_10 = lean_unbox_usize(x_9); -lean_dec(x_9); -x_11 = lean_array_fget(x_3, x_5); -x_12 = lean_usize_to_uint64(x_10); -x_13 = lean_uint64_to_usize(x_12); -x_14 = 1; -x_15 = lean_usize_sub(x_1, x_14); -x_16 = 5; -x_17 = lean_usize_mul(x_16, x_15); -x_18 = lean_usize_shift_right(x_13, x_17); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_5, x_19); +x_10 = lean_array_fget(x_3, x_5); +x_11 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_9); +x_12 = lean_uint64_to_usize(x_11); +x_13 = 1; +x_14 = lean_usize_sub(x_1, x_13); +x_15 = 5; +x_16 = lean_usize_mul(x_15, x_14); +x_17 = lean_usize_shift_right(x_12, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); lean_dec(x_5); -x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_6, x_18, x_1, x_10, x_11); +x_20 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_6, x_17, x_1, x_9, x_10); x_4 = lean_box(0); -x_5 = x_20; -x_6 = x_21; +x_5 = x_19; +x_6 = x_20; goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(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; uint8_t x_8; @@ -11561,86 +15376,81 @@ lean_dec(x_2); x_9 = !lean_is_exclusive(x_1); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_ctor_get(x_1, 1); lean_dec(x_10); x_11 = lean_ctor_get(x_1, 0); lean_dec(x_11); -x_12 = lean_box_usize(x_3); -x_13 = lean_array_push(x_5, x_12); -x_14 = lean_array_push(x_6, x_4); -lean_ctor_set(x_1, 1, x_14); -lean_ctor_set(x_1, 0, x_13); +x_12 = lean_array_push(x_5, x_3); +x_13 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_13); +lean_ctor_set(x_1, 0, x_12); return x_1; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_1); -x_15 = lean_box_usize(x_3); -x_16 = lean_array_push(x_5, x_15); -x_17 = lean_array_push(x_6, x_4); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_14 = lean_array_push(x_5, x_3); +x_15 = lean_array_push(x_6, x_4); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_19; size_t x_20; uint8_t x_21; -x_19 = lean_array_fget(x_5, x_2); -x_20 = lean_unbox_usize(x_19); -lean_dec(x_19); -x_21 = lean_usize_dec_eq(x_3, x_20); -if (x_21 == 0) +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_fget(x_5, x_2); +x_18 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_3, x_17); +lean_dec(x_17); +if (x_18 == 0) { -lean_object* x_22; lean_object* x_23; +lean_object* x_19; lean_object* x_20; lean_dec(x_6); lean_dec(x_5); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_2, x_19); lean_dec(x_2); -x_2 = x_23; +x_2 = x_20; goto _start; } else { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_1); -if (x_25 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_1); +if (x_22 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_1, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_1, 0); -lean_dec(x_27); -x_28 = lean_box_usize(x_3); -x_29 = lean_array_fset(x_5, x_2, x_28); -x_30 = lean_array_fset(x_6, x_2, x_4); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_1, 1); +lean_dec(x_23); +x_24 = lean_ctor_get(x_1, 0); +lean_dec(x_24); +x_25 = lean_array_fset(x_5, x_2, x_3); +x_26 = lean_array_fset(x_6, x_2, x_4); lean_dec(x_2); -lean_ctor_set(x_1, 1, x_30); -lean_ctor_set(x_1, 0, x_29); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_25); return x_1; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_1); -x_31 = lean_box_usize(x_3); -x_32 = lean_array_fset(x_5, x_2, x_31); -x_33 = lean_array_fset(x_6, x_2, x_4); +x_27 = lean_array_fset(x_5, x_2, x_3); +x_28 = lean_array_fset(x_6, 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; +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_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(lean_object* x_1, size_t x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(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) @@ -11663,6 +15473,7 @@ if (x_14 == 0) { lean_dec(x_12); lean_dec(x_5); +lean_dec(x_4); return x_1; } else @@ -11678,120 +15489,113 @@ uint8_t x_18; x_18 = !lean_is_exclusive(x_15); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; size_t x_21; uint8_t x_22; +lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_15, 0); x_20 = lean_ctor_get(x_15, 1); -x_21 = lean_unbox_usize(x_19); -x_22 = lean_usize_dec_eq(x_4, x_21); -if (x_22 == 0) +x_21 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_19); +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_free_object(x_15); -x_23 = lean_box_usize(x_4); -x_24 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_23, x_5); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_array_fset(x_17, x_12, x_25); +x_22 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_array_fset(x_17, x_12, x_23); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_26); +lean_ctor_set(x_1, 0, x_24); return x_1; } else { -lean_object* x_27; lean_object* x_28; +lean_object* x_25; lean_dec(x_20); lean_dec(x_19); -x_27 = lean_box_usize(x_4); lean_ctor_set(x_15, 1, x_5); -lean_ctor_set(x_15, 0, x_27); -x_28 = lean_array_fset(x_17, x_12, x_15); +lean_ctor_set(x_15, 0, x_4); +x_25 = lean_array_fset(x_17, x_12, x_15); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_28); +lean_ctor_set(x_1, 0, x_25); return x_1; } } else { -lean_object* x_29; lean_object* x_30; size_t x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_15); -x_31 = lean_unbox_usize(x_29); -x_32 = lean_usize_dec_eq(x_4, x_31); -if (x_32 == 0) +x_28 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_26); +if (x_28 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_box_usize(x_4); -x_34 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_29, x_30, x_33, x_5); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_array_fset(x_17, x_12, x_35); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_array_fset(x_17, x_12, x_30); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_36); +lean_ctor_set(x_1, 0, x_31); return x_1; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_30); -lean_dec(x_29); -x_37 = lean_box_usize(x_4); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_5); -x_39 = lean_array_fset(x_17, x_12, x_38); +lean_object* x_32; lean_object* x_33; +lean_dec(x_27); +lean_dec(x_26); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_5); +x_33 = lean_array_fset(x_17, x_12, x_32); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_33); +return x_1; +} +} +} +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; lean_object* x_39; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_usize_shift_right(x_2, x_9); +x_37 = lean_usize_add(x_3, x_8); +x_38 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_35, x_36, x_37, x_4, x_5); +lean_ctor_set(x_15, 0, x_38); +x_39 = lean_array_fset(x_17, x_12, x_15); lean_dec(x_12); lean_ctor_set(x_1, 0, x_39); return x_1; } -} -} -case 1: +else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) -{ -lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_usize_shift_right(x_2, x_9); -x_43 = lean_usize_add(x_3, x_8); -x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_41, x_42, x_43, x_4, x_5); -lean_ctor_set(x_15, 0, x_44); -x_45 = lean_array_fset(x_17, x_12, x_15); +lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_15, 0); +lean_inc(x_40); +lean_dec(x_15); +x_41 = lean_usize_shift_right(x_2, x_9); +x_42 = lean_usize_add(x_3, x_8); +x_43 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_40, x_41, x_42, x_4, x_5); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_array_fset(x_17, x_12, x_44); lean_dec(x_12); lean_ctor_set(x_1, 0, x_45); return x_1; } -else -{ -lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_15, 0); -lean_inc(x_46); -lean_dec(x_15); -x_47 = lean_usize_shift_right(x_2, x_9); -x_48 = lean_usize_add(x_3, x_8); -x_49 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_46, x_47, x_48, x_4, x_5); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_array_fset(x_17, x_12, x_50); -lean_dec(x_12); -lean_ctor_set(x_1, 0, x_51); -return x_1; -} } default: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_box_usize(x_4); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_5); -x_54 = lean_array_fset(x_17, x_12, x_53); +lean_object* x_46; lean_object* x_47; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_5); +x_47 = lean_array_fset(x_17, x_12, x_46); lean_dec(x_12); -lean_ctor_set(x_1, 0, x_54); +lean_ctor_set(x_1, 0, x_47); return x_1; } } @@ -11799,124 +15603,121 @@ return x_1; } else { -lean_object* x_55; size_t x_56; size_t x_57; size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_55 = lean_ctor_get(x_1, 0); -lean_inc(x_55); +lean_object* x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); lean_dec(x_1); -x_56 = 1; -x_57 = 5; -x_58 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; -x_59 = lean_usize_land(x_2, x_58); -x_60 = lean_usize_to_nat(x_59); -x_61 = lean_array_get_size(x_55); -x_62 = lean_nat_dec_lt(x_60, x_61); -lean_dec(x_61); -if (x_62 == 0) +x_49 = 1; +x_50 = 5; +x_51 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__2; +x_52 = lean_usize_land(x_2, x_51); +x_53 = lean_usize_to_nat(x_52); +x_54 = lean_array_get_size(x_48); +x_55 = lean_nat_dec_lt(x_53, x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_63; -lean_dec(x_60); +lean_object* x_56; +lean_dec(x_53); lean_dec(x_5); -x_63 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_63, 0, x_55); -return x_63; +lean_dec(x_4); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_48); +return x_56; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_array_fget(x_55, x_60); -x_65 = lean_box(0); -x_66 = lean_array_fset(x_55, x_60, x_65); -switch (lean_obj_tag(x_64)) { +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_array_fget(x_48, x_53); +x_58 = lean_box(0); +x_59 = lean_array_fset(x_48, x_53, x_58); +switch (lean_obj_tag(x_57)) { case 0: { -lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; uint8_t x_71; -x_67 = lean_ctor_get(x_64, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_64, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_69 = x_64; +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_62 = x_57; } else { - lean_dec_ref(x_64); - x_69 = lean_box(0); + lean_dec_ref(x_57); + x_62 = lean_box(0); } -x_70 = lean_unbox_usize(x_67); -x_71 = lean_usize_dec_eq(x_4, x_70); -if (x_71 == 0) +x_63 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_4, x_60); +if (x_63 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_69); -x_72 = lean_box_usize(x_4); -x_73 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_67, x_68, x_72, x_5); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_73); -x_75 = lean_array_fset(x_66, x_60, x_74); -lean_dec(x_60); -x_76 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_76, 0, x_75); -return x_76; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_62); +x_64 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_array_fset(x_59, x_53, x_65); +lean_dec(x_53); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_68); -lean_dec(x_67); -x_77 = lean_box_usize(x_4); -if (lean_is_scalar(x_69)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_69; -} -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_5); -x_79 = lean_array_fset(x_66, x_60, x_78); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_61); lean_dec(x_60); -x_80 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_80, 0, x_79); -return x_80; +if (lean_is_scalar(x_62)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_62; +} +lean_ctor_set(x_68, 0, x_4); +lean_ctor_set(x_68, 1, x_5); +x_69 = lean_array_fset(x_59, x_53, x_68); +lean_dec(x_53); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +return x_70; } } case 1: { -lean_object* x_81; lean_object* x_82; size_t x_83; size_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_81 = lean_ctor_get(x_64, 0); -lean_inc(x_81); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - x_82 = x_64; +lean_object* x_71; lean_object* x_72; size_t x_73; size_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_71 = lean_ctor_get(x_57, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + x_72 = x_57; } else { - lean_dec_ref(x_64); - x_82 = lean_box(0); + lean_dec_ref(x_57); + x_72 = lean_box(0); } -x_83 = lean_usize_shift_right(x_2, x_57); -x_84 = lean_usize_add(x_3, x_56); -x_85 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_81, x_83, x_84, x_4, x_5); -if (lean_is_scalar(x_82)) { - x_86 = lean_alloc_ctor(1, 1, 0); +x_73 = lean_usize_shift_right(x_2, x_50); +x_74 = lean_usize_add(x_3, x_49); +x_75 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_71, x_73, x_74, x_4, x_5); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(1, 1, 0); } else { - x_86 = x_82; + x_76 = x_72; } -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_array_fset(x_66, x_60, x_86); -lean_dec(x_60); -x_88 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_88, 0, x_87); -return x_88; +lean_ctor_set(x_76, 0, x_75); +x_77 = lean_array_fset(x_59, x_53, x_76); +lean_dec(x_53); +x_78 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_78, 0, x_77); +return x_78; } default: { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_89 = lean_box_usize(x_4); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_5); -x_91 = lean_array_fset(x_66, x_60, x_90); -lean_dec(x_60); -x_92 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_92, 0, x_91); -return x_92; +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_4); +lean_ctor_set(x_79, 1, x_5); +x_80 = lean_array_fset(x_59, x_53, x_79); +lean_dec(x_53); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; } } } @@ -11924,100 +15725,100 @@ return x_92; } else { -uint8_t x_93; -x_93 = !lean_is_exclusive(x_1); -if (x_93 == 0) +uint8_t x_82; +x_82 = !lean_is_exclusive(x_1); +if (x_82 == 0) { -lean_object* x_94; lean_object* x_95; size_t x_96; uint8_t x_97; -x_94 = lean_unsigned_to_nat(0u); -x_95 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_1, x_94, x_4, x_5); -x_96 = 7; -x_97 = lean_usize_dec_le(x_96, x_3); -if (x_97 == 0) +lean_object* x_83; lean_object* x_84; size_t x_85; uint8_t x_86; +x_83 = lean_unsigned_to_nat(0u); +x_84 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_1, x_83, x_4, x_5); +x_85 = 7; +x_86 = lean_usize_dec_le(x_85, x_3); +if (x_86 == 0) { -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_95); -x_99 = lean_unsigned_to_nat(4u); -x_100 = lean_nat_dec_lt(x_98, x_99); -lean_dec(x_98); +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_84); +x_88 = lean_unsigned_to_nat(4u); +x_89 = lean_nat_dec_lt(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_84, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_dec(x_84); +x_92 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_93 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_90, x_91, lean_box(0), x_83, x_92); +lean_dec(x_91); +lean_dec(x_90); +return x_93; +} +else +{ +return x_84; +} +} +else +{ +return x_84; +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; size_t x_99; uint8_t x_100; +x_94 = lean_ctor_get(x_1, 0); +x_95 = lean_ctor_get(x_1, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_1); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_96, x_97, x_4, x_5); +x_99 = 7; +x_100 = lean_usize_dec_le(x_99, x_3); if (x_100 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_95, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_95, 1); -lean_inc(x_102); -lean_dec(x_95); -x_103 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; -x_104 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_101, x_102, lean_box(0), x_94, x_103); -lean_dec(x_102); +lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_101 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_98); +x_102 = lean_unsigned_to_nat(4u); +x_103 = lean_nat_dec_lt(x_101, x_102); lean_dec(x_101); -return x_104; -} -else +if (x_103 == 0) { -return x_95; -} -} -else -{ -return x_95; -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; uint8_t x_111; -x_105 = lean_ctor_get(x_1, 0); -x_106 = lean_ctor_get(x_1, 1); -lean_inc(x_106); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); lean_inc(x_105); -lean_dec(x_1); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = lean_unsigned_to_nat(0u); -x_109 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_107, x_108, x_4, x_5); -x_110 = 7; -x_111 = lean_usize_dec_le(x_110, x_3); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_109); -x_113 = lean_unsigned_to_nat(4u); -x_114 = lean_nat_dec_lt(x_112, x_113); -lean_dec(x_112); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_115 = lean_ctor_get(x_109, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_109, 1); -lean_inc(x_116); -lean_dec(x_109); -x_117 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; -x_118 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_115, x_116, lean_box(0), x_108, x_117); -lean_dec(x_116); -lean_dec(x_115); -return x_118; +lean_dec(x_98); +x_106 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__2___closed__3; +x_107 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_104, x_105, lean_box(0), x_97, x_106); +lean_dec(x_105); +lean_dec(x_104); +return x_107; } else { -return x_109; +return x_98; } } else { -return x_109; +return x_98; } } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(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 = lean_usize_to_uint64(x_2); +x_4 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_5 = lean_uint64_to_usize(x_4); x_6 = 1; x_7 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_1, x_5, x_6, x_2, x_3); @@ -12037,88 +15838,104 @@ lean_dec(x_12); x_15 = !lean_is_exclusive(x_13); if (x_15 == 0) { -lean_object* x_16; size_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ptr_addr(x_1); -x_18 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_16, x_17, x_2); -lean_ctor_set(x_13, 1, x_18); -x_19 = lean_st_ref_set(x_3, x_13, x_14); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_16, x_1, x_2); +lean_ctor_set(x_13, 1, x_17); +x_18 = lean_st_ref_set(x_3, x_13, x_14); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -lean_dec(x_21); -x_22 = lean_box(0); -lean_ctor_set(x_19, 0, x_22); -return x_19; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_18, 0, x_21); +return x_18; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -lean_dec(x_19); -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_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_box(0); +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 { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_26 = lean_ctor_get(x_13, 0); -x_27 = lean_ctor_get(x_13, 1); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get(x_13, 4); -x_31 = lean_ctor_get(x_13, 5); -x_32 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -x_33 = lean_ctor_get(x_13, 6); -x_34 = lean_ctor_get(x_13, 7); +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; 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; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_13, 2); +x_28 = lean_ctor_get(x_13, 3); +x_29 = lean_ctor_get(x_13, 4); +x_30 = lean_ctor_get(x_13, 5); +x_31 = lean_ctor_get_uint8(x_13, sizeof(void*)*14); +x_32 = lean_ctor_get(x_13, 6); +x_33 = lean_ctor_get(x_13, 7); +x_34 = lean_ctor_get(x_13, 8); +x_35 = lean_ctor_get(x_13, 9); +x_36 = lean_ctor_get(x_13, 10); +x_37 = lean_ctor_get(x_13, 11); +x_38 = lean_ctor_get(x_13, 12); +x_39 = lean_ctor_get(x_13, 13); +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_inc(x_33); -lean_inc(x_31); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); +lean_inc(x_25); lean_dec(x_13); -x_35 = lean_ptr_addr(x_1); -x_36 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_27, x_35, x_2); -x_37 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_37, 0, x_26); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_28); -lean_ctor_set(x_37, 3, x_29); -lean_ctor_set(x_37, 4, x_30); -lean_ctor_set(x_37, 5, x_31); -lean_ctor_set(x_37, 6, x_33); -lean_ctor_set(x_37, 7, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_32); -x_38 = lean_st_ref_set(x_3, x_37, x_14); -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; +x_40 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_26, x_1, x_2); +x_41 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_41, 0, x_25); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_27); +lean_ctor_set(x_41, 3, x_28); +lean_ctor_set(x_41, 4, x_29); +lean_ctor_set(x_41, 5, x_30); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_37); +lean_ctor_set(x_41, 12, x_38); +lean_ctor_set(x_41, 13, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*14, x_31); +x_42 = lean_st_ref_set(x_3, x_41, x_14); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_42); + x_44 = lean_box(0); } -x_41 = lean_box(0); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); +x_45 = lean_box(0); +if (lean_is_scalar(x_44)) { + x_46 = lean_alloc_ctor(0, 2, 0); } else { - x_42 = x_40; + x_46 = x_44; } -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +return x_46; } } } @@ -12134,38 +15951,16 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4___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_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_1, x_2, x_5, x_4); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___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; size_t x_8; lean_object* x_9; +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 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_9 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_1, x_6, x_7, x_8, x_5); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1___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_insert___at_Lean_Meta_Grind_setENode___spec__1(x_1, x_4, x_3); -return x_5; +x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_1, x_6, x_7, x_4, x_5); +return x_8; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode___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) { @@ -12181,7 +15976,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); return x_12; } } @@ -12229,7 +16023,6 @@ lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 2, x_3); lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 3, x_21); lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 4, x_24); x_27 = l_Lean_Meta_Grind_setENode(x_1, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -lean_dec(x_1); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); @@ -12273,16 +16066,28 @@ return x_41; } 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; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 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_42 = lean_ctor_get(x_30, 0); x_43 = lean_ctor_get(x_30, 1); x_44 = lean_ctor_get(x_30, 2); x_45 = lean_ctor_get(x_30, 3); x_46 = lean_ctor_get(x_30, 4); x_47 = lean_ctor_get(x_30, 5); -x_48 = lean_ctor_get_uint8(x_30, sizeof(void*)*8); +x_48 = lean_ctor_get_uint8(x_30, sizeof(void*)*14); x_49 = lean_ctor_get(x_30, 6); x_50 = lean_ctor_get(x_30, 7); +x_51 = lean_ctor_get(x_30, 8); +x_52 = lean_ctor_get(x_30, 9); +x_53 = lean_ctor_get(x_30, 10); +x_54 = lean_ctor_get(x_30, 11); +x_55 = lean_ctor_get(x_30, 12); +x_56 = lean_ctor_get(x_30, 13); +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_inc(x_50); lean_inc(x_49); lean_inc(x_47); @@ -12292,38 +16097,44 @@ lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_dec(x_30); -x_51 = lean_nat_add(x_50, x_25); +x_57 = lean_nat_add(x_50, x_25); lean_dec(x_50); -x_52 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_52, 0, x_42); -lean_ctor_set(x_52, 1, x_43); -lean_ctor_set(x_52, 2, x_44); -lean_ctor_set(x_52, 3, x_45); -lean_ctor_set(x_52, 4, x_46); -lean_ctor_set(x_52, 5, x_47); -lean_ctor_set(x_52, 6, x_49); -lean_ctor_set(x_52, 7, x_51); -lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_48); -x_53 = lean_st_ref_set(x_5, x_52, x_31); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; +x_58 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_58, 0, x_42); +lean_ctor_set(x_58, 1, x_43); +lean_ctor_set(x_58, 2, x_44); +lean_ctor_set(x_58, 3, x_45); +lean_ctor_set(x_58, 4, x_46); +lean_ctor_set(x_58, 5, x_47); +lean_ctor_set(x_58, 6, x_49); +lean_ctor_set(x_58, 7, x_57); +lean_ctor_set(x_58, 8, x_51); +lean_ctor_set(x_58, 9, x_52); +lean_ctor_set(x_58, 10, x_53); +lean_ctor_set(x_58, 11, x_54); +lean_ctor_set(x_58, 12, x_55); +lean_ctor_set(x_58, 13, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*14, x_48); +x_59 = lean_st_ref_set(x_5, x_58, x_31); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_61 = x_59; } else { - lean_dec_ref(x_53); - x_55 = lean_box(0); + lean_dec_ref(x_59); + x_61 = lean_box(0); } -x_56 = lean_box(0); -if (lean_is_scalar(x_55)) { - x_57 = lean_alloc_ctor(0, 2, 0); +x_62 = lean_box(0); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_55; + x_63 = x_61; } -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_54); -return x_57; +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; } } } @@ -12542,6 +16353,92 @@ lean_dec(x_3); return x_12; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongrRoot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_inc(x_1); +x_11 = l_Lean_Meta_Grind_getENode(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) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 3); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_14); +lean_dec(x_14); +lean_dec(x_1); +x_16 = lean_box(x_15); +lean_ctor_set(x_11, 0, x_16); +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_ctor_get(x_17, 3); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_19); +lean_dec(x_19); +lean_dec(x_1); +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_11); +if (x_23 == 0) +{ +return x_11; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_11); +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_Lean_Meta_Grind_isCongrRoot___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_isCongrRoot(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(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); +return x_11; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInconsistent(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -12552,7 +16449,7 @@ if (x_11 == 0) { lean_object* x_12; uint8_t x_13; lean_object* x_14; x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*8); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*14); lean_dec(x_12); x_14 = lean_box(x_13); lean_ctor_set(x_10, 0, x_14); @@ -12566,7 +16463,7 @@ x_16 = lean_ctor_get(x_10, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_10); -x_17 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); +x_17 = lean_ctor_get_uint8(x_15, sizeof(void*)*14); lean_dec(x_15); x_18 = lean_box(x_17); x_19 = lean_alloc_ctor(0, 2, 0); @@ -12600,6 +16497,85 @@ x_12 = lean_grind_mk_eq_proof(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, return x_12; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHEqProof___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 = lean_grind_mk_heq_proof(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_mkEqHEqProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +lean_inc(x_1); +x_12 = l_Lean_Meta_Grind_hasSameType(x_1, x_2, 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; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_grind_mk_heq_proof(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_dec(x_12); +x_18 = lean_grind_mk_eq_proof(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +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); +lean_dec(x_2); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqTrueProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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: { @@ -12643,7 +16619,7 @@ if (x_13 == 0) { uint8_t x_14; lean_object* x_15; uint8_t x_16; x_14 = 1; -lean_ctor_set_uint8(x_11, sizeof(void*)*8, x_14); +lean_ctor_set_uint8(x_11, sizeof(void*)*14, x_14); x_15 = lean_st_ref_set(x_1, x_11, x_12); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) @@ -12670,7 +16646,7 @@ return x_21; } else { -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; uint8_t 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_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; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_22 = lean_ctor_get(x_11, 0); x_23 = lean_ctor_get(x_11, 1); x_24 = lean_ctor_get(x_11, 2); @@ -12679,6 +16655,18 @@ x_26 = lean_ctor_get(x_11, 4); x_27 = lean_ctor_get(x_11, 5); x_28 = lean_ctor_get(x_11, 6); x_29 = lean_ctor_get(x_11, 7); +x_30 = lean_ctor_get(x_11, 8); +x_31 = lean_ctor_get(x_11, 9); +x_32 = lean_ctor_get(x_11, 10); +x_33 = lean_ctor_get(x_11, 11); +x_34 = lean_ctor_get(x_11, 12); +x_35 = lean_ctor_get(x_11, 13); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -12688,37 +16676,43 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_11); -x_30 = 1; -x_31 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_31, 0, x_22); -lean_ctor_set(x_31, 1, x_23); -lean_ctor_set(x_31, 2, x_24); -lean_ctor_set(x_31, 3, x_25); -lean_ctor_set(x_31, 4, x_26); -lean_ctor_set(x_31, 5, x_27); -lean_ctor_set(x_31, 6, x_28); -lean_ctor_set(x_31, 7, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_30); -x_32 = lean_st_ref_set(x_1, x_31, x_12); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; +x_36 = 1; +x_37 = lean_alloc_ctor(0, 14, 1); +lean_ctor_set(x_37, 0, x_22); +lean_ctor_set(x_37, 1, x_23); +lean_ctor_set(x_37, 2, x_24); +lean_ctor_set(x_37, 3, x_25); +lean_ctor_set(x_37, 4, x_26); +lean_ctor_set(x_37, 5, x_27); +lean_ctor_set(x_37, 6, x_28); +lean_ctor_set(x_37, 7, x_29); +lean_ctor_set(x_37, 8, x_30); +lean_ctor_set(x_37, 9, x_31); +lean_ctor_set(x_37, 10, x_32); +lean_ctor_set(x_37, 11, x_33); +lean_ctor_set(x_37, 12, x_34); +lean_ctor_set(x_37, 13, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*14, x_36); +x_38 = lean_st_ref_set(x_1, x_37, x_12); +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_32); - x_34 = lean_box(0); + lean_dec_ref(x_38); + x_40 = lean_box(0); } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); +x_41 = lean_box(0); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); } else { - x_36 = x_34; + x_42 = x_40; } -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; } } } @@ -13195,16 +17189,15 @@ x_4 = l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignm return x_4; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box_usize(x_2); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -x_6 = lean_array_push(x_1, x_5); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +x_5 = lean_array_push(x_1, x_4); +return x_5; } } static lean_object* _init_l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___closed__1() { @@ -13220,7 +17213,7 @@ static lean_object* _init_l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1), 3, 0); return x_1; } } @@ -13449,16 +17442,6 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1___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_toArray___at_Lean_Meta_Grind_getENodes___spec__1___lambda__1(x_1, x_4, x_3); -return x_5; -} -} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_getENodes___spec__1___boxed(lean_object* x_1) { _start: { @@ -14523,6 +18506,8 @@ lean_dec(x_1); return x_10; } } +lean_object* initialize_Init_Grind_Tactics(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Queue(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Util_ShareCommon(uint8_t builtin, lean_object*); lean_object* initialize_Lean_HeadIndex(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); @@ -14532,11 +18517,18 @@ lean_object* initialize_Lean_Meta_Tactic_Simp_Types(uint8_t builtin, lean_object lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Canon(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Attr(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Types(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_Init_Grind_Tactics(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_Queue(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Util_ShareCommon(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -14564,6 +18556,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Attr(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Meta_Grind_congrPlaceholderProof___closed__1 = _init_l_Lean_Meta_Grind_congrPlaceholderProof___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_congrPlaceholderProof___closed__1); l_Lean_Meta_Grind_congrPlaceholderProof___closed__2 = _init_l_Lean_Meta_Grind_congrPlaceholderProof___closed__2(); @@ -14633,114 +18628,114 @@ l_Lean_Meta_Grind_instInhabitedENode___closed__2 = _init_l_Lean_Meta_Grind_instI lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedENode___closed__2); l_Lean_Meta_Grind_instInhabitedENode = _init_l_Lean_Meta_Grind_instInhabitedENode(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedENode); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__1); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__2); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__3); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__4); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__5); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__6); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__7); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__8); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__9); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__10); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__11); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__12); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__13); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__14); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__15); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__16); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__17); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__18); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__19); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__20); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__21); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__22); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__23); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__24); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__25); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__26); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__27); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__28); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__29); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__30); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__31); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__32); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__33); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__34); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__35); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__36); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__37); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__38); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__39); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__40); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__41); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__42); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__43); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__44); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__45); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__46); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__47); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__48); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__49); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__50); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__51); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__52); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__53); -l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1389____closed__54); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__1); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__2); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__3); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__4); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__5); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__6); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__7); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__8); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__9); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__10); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__11); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__12); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__13); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__14); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__15); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__16); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__17); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__18); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__19); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__20); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__21); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__22); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__23); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__24); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__25); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__26); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__27); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__28); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__29); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__30); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__31); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__32); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__33); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__34); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__35); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__36); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__37); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__38); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__39); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__40); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__41); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__42); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__43); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__44); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__45); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__46); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__47); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__48); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__49); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__50); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__51); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__52); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__53); +l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54 = _init_l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1532____closed__54); l_Lean_Meta_Grind_instReprENode___closed__1 = _init_l_Lean_Meta_Grind_instReprENode___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instReprENode___closed__1); l_Lean_Meta_Grind_instReprENode = _init_l_Lean_Meta_Grind_instReprENode(); @@ -14749,12 +18744,33 @@ l_Lean_Meta_Grind_congrHash___closed__1 = _init_l_Lean_Meta_Grind_congrHash___cl lean_mark_persistent(l_Lean_Meta_Grind_congrHash___closed__1); l_Lean_Meta_Grind_congrHash___closed__2 = _init_l_Lean_Meta_Grind_congrHash___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_congrHash___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_instBEqPreInstance___spec__1___closed__1); +l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__1); +l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2 = _init_l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___closed__2); +l_Lean_Meta_Grind_instInhabitedNewFact___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedNewFact___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedNewFact___closed__1); +l_Lean_Meta_Grind_instInhabitedNewFact = _init_l_Lean_Meta_Grind_instInhabitedNewFact(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedNewFact); l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__1 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__1(); lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__1); +l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2 = _init_l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2(); +lean_mark_persistent(l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2); l_Lean_Meta_Grind_instInhabitedGoal___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__1); +l_Lean_Meta_Grind_instInhabitedGoal___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__2); +l_Lean_Meta_Grind_instInhabitedGoal___closed__3 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__3(); +l_Lean_Meta_Grind_instInhabitedGoal___closed__4 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__4); +l_Lean_Meta_Grind_instInhabitedGoal___closed__5 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__5); l_Lean_Meta_Grind_instInhabitedGoal = _init_l_Lean_Meta_Grind_instInhabitedGoal(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal); +l_Lean_Meta_Grind_GoalM_run_x27___closed__1 = _init_l_Lean_Meta_Grind_GoalM_run_x27___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_GoalM_run_x27___closed__1); l_Lean_Meta_Grind_getENode___closed__1 = _init_l_Lean_Meta_Grind_getENode___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_getENode___closed__1); l_Lean_Meta_Grind_getENode___closed__2 = _init_l_Lean_Meta_Grind_getENode___closed__2(); diff --git a/stage0/stdlib/Lean/ToExpr.c b/stage0/stdlib/Lean/ToExpr.c index d11f41c1a7..86b7e9a0c4 100644 --- a/stage0/stdlib/Lean/ToExpr.c +++ b/stage0/stdlib/Lean/ToExpr.c @@ -2030,7 +2030,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_ToExpr_0__Lean_Name_toExprAux_mkStr___closed__5; x_2 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux_mkStr___closed__6; -x_3 = lean_unsigned_to_nat(131u); +x_3 = lean_unsigned_to_nat(136u); x_4 = lean_unsigned_to_nat(11u); x_5 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux_mkStr___closed__7; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);